|
From: Bryan T. <tho...@us...> - 2007-04-23 13:09:55
|
Update of /cvsroot/cweb/bigdata/src/resources/config/standalone In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20436/src/resources/config/standalone Modified Files: ServerStarter.config Added Files: MetadataServer0.properties MetadataServer0.config Log Message: The metadata server now tracks join/leaves of data services within a managed set of registrars and has a test case for this feature. Index: ServerStarter.config =================================================================== RCS file: /cvsroot/cweb/bigdata/src/resources/config/standalone/ServerStarter.config,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ServerStarter.config 23 Mar 2007 20:01:25 -0000 1.1 --- ServerStarter.config 23 Apr 2007 13:09:29 -0000 1.2 *************** *** 74,77 **** --- 74,84 ---- static serviceDescriptors = new ServiceDescriptor[] { /* + * metadata server(s) + */ + new NonActivatableServiceDescriptor( + codebase, policy, classpath, + "com.bigdata.service.MetadataServer", + new String[] { "src/resources/config/standalone/MetadataServer0.config" }) + /* * data server(s) */ --- NEW FILE: MetadataServer0.config --- import java.io.File; import net.jini.jeri.BasicILFactory; import net.jini.jeri.BasicJeriExporter; import net.jini.jeri.tcp.TcpServerEndpoint; import net.jini.discovery.LookupDiscovery; import net.jini.core.discovery.LookupLocator; import net.jini.core.entry.Entry; import net.jini.lookup.entry.Name; import net.jini.lookup.entry.Comment; import net.jini.lookup.entry.Address; import net.jini.lookup.entry.Location; import net.jini.lookup.entry.ServiceInfo; /* * Declares how the service will provision itself. */ ServiceDescription { /* * This object is used to export the service proxy. The choice here effects * the protocol that will be used for communications between the clients and * the service. * * @todo Explore JERI nio option and customization support for serialization. */ exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0), new BasicILFactory()); /* * The name of the property file containing the configuration information for * the service itself (where it will locate its files, etc). */ propertyFile = new File("src/resources/config/standalone/MetadataServer0.properties"); /* * The file on which the serviceID will be written. */ serviceIdFile = new File("MetadataServer0.id"); } /* * Declares how the service will advertise itself. */ AdvertDescription { /* * Entry attributes used to describe the service. */ entries = new Entry[] { new Name("MetadataService0"), // human facing name. new ServiceInfo("bigdata", // product or package name "SYSTAP,LLC", // manufacturer "SYSTAP,LLC", // vendor "0.1-beta", // version "MetadataService", // model "serial#" // serialNumber ) }; /* * Note: multicast discovery is always used if LookupDiscovery.ALL_GROUPS is * specified. */ // groups = LookupDiscovery.ALL_GROUPS; groups = new String[]{"bigdata"}; /* * One or more unicast URIs of the form jini://host/ or jini://host:port/. * This MAY be an empty array if you want to use multicast discovery _and_ * you have specified LookupDiscovery.ALL_GROUPS above. */ unicastLocators = new LookupLocator[] { // empty new LookupLocator("jini://localhost/") }; } --- NEW FILE: MetadataServer0.properties --- # DataServer configuration. file=MetadataServer0.jnl |