com.bigdata.jini.start.config
Class ManagedServiceConfiguration
java.lang.Object
com.bigdata.jini.start.config.ServiceConfiguration
com.bigdata.jini.start.config.JavaServiceConfiguration
com.bigdata.jini.start.config.ManagedServiceConfiguration
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- JiniServiceConfiguration
public abstract class ManagedServiceConfiguration
- extends JavaServiceConfiguration
Configuration of a managed service. These are generally jini services whose
ephemeral state is registered with zookeeper. Explicitly excluded are the
jini core services and zookeeper
itself.
- Version:
- $Id$
- Author:
- Bryan Thompson
- See Also:
- Serialized Form
| Methods inherited from class com.bigdata.jini.start.config.ServiceConfiguration |
canStartService, canStartService, concat, getArgs, getClassPath, getConstraints, getDefaultTimeout, getOptions, getReplicationCount, getServiceCount, getServiceDir, getStringArray, getTimeout, toString |
ManagedServiceConfiguration
public ManagedServiceConfiguration(String className,
net.jini.config.Configuration config)
throws net.jini.config.ConfigurationException
- Parameters:
className - config -
- Throws:
net.jini.config.ConfigurationException
newServiceStarter
public ManagedServiceConfiguration.ManagedServiceStarter newServiceStarter(IServiceListener listener)
throws Exception
- Not supported - use
#newServiceStarter(JiniFederation, IServiceListener, String)
instead.
- Overrides:
newServiceStarter in class JavaServiceConfiguration
- Throws:
UnsupportedOperationException - always.
Exception - if there is a problem creating the service starter.
newServiceStarter
public ManagedServiceConfiguration.ManagedServiceStarter newServiceStarter(JiniFederation fed,
IServiceListener listener,
String logicalServiceZPath,
net.jini.core.entry.Entry[] attributes)
throws Exception
- Factory method returns an object that may be used to (re-)start a
service.
- Parameters:
fed - listener - logicalServiceZPath - The path to the logical service whose instance will be
started.attributes - This provides the information required to restart a persistent
service. When not given a new service instance will be
started. When given, the same services instance will be
restarted.
- Throws:
Exception - if there is a problem creating the service starter.
newLogicalServiceTask
public ManageLogicalServiceTask<ManagedServiceConfiguration> newLogicalServiceTask(JiniFederation fed,
IServiceListener listener,
String configZPath,
List<String> children)
- Return a task that will correct any imbalance between the
ServiceConfiguration and the #of logical services.
- Parameters:
fed - listener - configZPath - The zpath of the ManagedServiceConfigurationchildren - The list of logical service instances. These are the children
of the ManagedServiceConfiguration znode.
- Returns:
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.