com.bigdata.jini.start.config
Class JiniCoreServicesConfiguration

java.lang.Object
  extended by com.bigdata.jini.start.config.ServiceConfiguration
      extended by com.bigdata.jini.start.config.JiniCoreServicesConfiguration
All Implemented Interfaces:
Serializable

public class JiniCoreServicesConfiguration
extends ServiceConfiguration

Somewhat specialized configuration for starting the core jini services (reggie, etc) using "Launch-All" or a similar script.

Note: The jini core services must be bootstrapped. There is NO dependency on zookeeper. You can start the jini core services or zookeeper independently. They should both be running before you start bigdata services.

Version:
$Id$
Author:
Bryan Thompson
See Also:
JiniCoreServicesProcessHelper, JiniCoreServicesConfiguration.JiniCoreServicesStarter, Serialized Form

Nested Class Summary
 class JiniCoreServicesConfiguration.JiniCoreServicesStarter<V extends JiniCoreServicesProcessHelper>
          Used to start the core jini services (reggie, etc).
static interface JiniCoreServicesConfiguration.Options
          Configuration options.
 
Nested classes/interfaces inherited from class com.bigdata.jini.start.config.ServiceConfiguration
ServiceConfiguration.AbstractServiceStarter<V extends ProcessHelper>
 
Field Summary
 File configFile
          The main configuration file for the jini services.
 
Fields inherited from class com.bigdata.jini.start.config.ServiceConfiguration
args, className, constraints, log, options, replicationCount, serviceCount, serviceDir, timeout
 
Constructor Summary
JiniCoreServicesConfiguration(net.jini.config.Configuration config)
           
 
Method Summary
protected  long getDefaultTimeout()
          Jini core services should start very quickly (2000 ms)
static net.jini.core.lookup.ServiceRegistrar[] getServiceRegistrars(int maxCount, String[] groups, net.jini.core.discovery.LookupLocator[] locators, long timeout, TimeUnit unit)
          Return Jini registrars discovered within the specified timeout.
 JiniCoreServicesConfiguration.JiniCoreServicesStarter newServiceStarter(IServiceListener listener)
          Not supported.
 JiniCoreServicesConfiguration.JiniCoreServicesStarter newServiceStarter(IServiceListener listener, JiniClientConfig clientConfig)
           
 
Methods inherited from class com.bigdata.jini.start.config.ServiceConfiguration
canStartService, canStartService, concat, getArgs, getClassPath, getConstraints, getOptions, getReplicationCount, getServiceCount, getServiceDir, getStringArray, getTimeout, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

configFile

public final File configFile
The main configuration file for the jini services.

Constructor Detail

JiniCoreServicesConfiguration

public JiniCoreServicesConfiguration(net.jini.config.Configuration config)
                              throws net.jini.config.ConfigurationException
Parameters:
config -
Throws:
net.jini.config.ConfigurationException
Method Detail

getDefaultTimeout

protected long getDefaultTimeout()
Jini core services should start very quickly (2000 ms)

Overrides:
getDefaultTimeout in class ServiceConfiguration
Returns:
The default timeout in milliseconds.

newServiceStarter

public JiniCoreServicesConfiguration.JiniCoreServicesStarter newServiceStarter(IServiceListener listener)
                                                                        throws Exception
Not supported.

Specified by:
newServiceStarter in class ServiceConfiguration
Throws:
UnsupportedOperationException
Exception - if there is a problem creating the service starter.
See Also:
#newServiceStarter(IServiceListener, JiniClientConfig)}

newServiceStarter

public JiniCoreServicesConfiguration.JiniCoreServicesStarter newServiceStarter(IServiceListener listener,
                                                                               JiniClientConfig clientConfig)
                                                                        throws Exception
Parameters:
listener -
clientConfig - The client configuration gives us the groups and locators.
Returns:
Throws:
Exception

getServiceRegistrars

public static net.jini.core.lookup.ServiceRegistrar[] getServiceRegistrars(int maxCount,
                                                                           String[] groups,
                                                                           net.jini.core.discovery.LookupLocator[] locators,
                                                                           long timeout,
                                                                           TimeUnit unit)
                                                                    throws InterruptedException,
                                                                           IOException
Return Jini registrars discovered within the specified timeout.

Parameters:
maxCount - The maximum #of registrars to discover.
groups - An array of groups or LookupDiscovery.ALL_GROUPS if you will be using multicast discovery.
locators - An array of LookupLocators. These use URIs of the form jini://host/ or jini://host:port/. This MAY be an empty array if you want to use multicast discovery.
Throws:
IOException
InterruptedException


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.