com.bigdata.jini.start.config
Class JiniCoreServicesConfiguration
java.lang.Object
com.bigdata.jini.start.config.ServiceConfiguration
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
|
Field Summary |
File |
configFile
The main configuration file for the jini services. |
| Methods inherited from class com.bigdata.jini.start.config.ServiceConfiguration |
canStartService, canStartService, concat, getArgs, getClassPath, getConstraints, getOptions, getReplicationCount, getServiceCount, getServiceDir, getStringArray, getTimeout, toString, toString |
configFile
public final File configFile
- The main configuration file for the jini services.
JiniCoreServicesConfiguration
public JiniCoreServicesConfiguration(net.jini.config.Configuration config)
throws net.jini.config.ConfigurationException
- Parameters:
config -
- Throws:
net.jini.config.ConfigurationException
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.