com.bigdata.jini.start.config
Class BigdataServiceConfiguration

java.lang.Object
  extended by com.bigdata.jini.start.config.ServiceConfiguration
      extended by com.bigdata.jini.start.config.JavaServiceConfiguration
          extended by com.bigdata.jini.start.config.ManagedServiceConfiguration
              extended by com.bigdata.jini.start.config.JiniServiceConfiguration
                  extended by com.bigdata.jini.start.config.BigdataServiceConfiguration
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientServerConfiguration, DataServerConfiguration, LoadBalancerConfiguration, MetadataServerConfiguration, ServicesManagerConfiguration, TransactionServerConfiguration

public class BigdataServiceConfiguration
extends JiniServiceConfiguration

A bigdata service. Most services have additional parameters which must be specified. Those services are handled by subclasses.

Version:
$Id$
Author:
Bryan Thompson
See Also:
Serialized Form

Nested Class Summary
 class BigdataServiceConfiguration.BigdataServiceStarter<V extends JiniServiceProcessHelper>
           
static interface BigdataServiceConfiguration.Options
          Options for the bigdata services.
 
Nested classes/interfaces inherited from class com.bigdata.jini.start.config.JiniServiceConfiguration
JiniServiceConfiguration.JiniServiceStarter<V extends JiniServiceProcessHelper>
 
Nested classes/interfaces inherited from class com.bigdata.jini.start.config.ManagedServiceConfiguration
ManagedServiceConfiguration.ManagedServiceStarter<V extends ProcessHelper>
 
Nested classes/interfaces inherited from class com.bigdata.jini.start.config.JavaServiceConfiguration
JavaServiceConfiguration.JavaServiceStarter<V extends ProcessHelper>
 
Nested classes/interfaces inherited from class com.bigdata.jini.start.config.ServiceConfiguration
ServiceConfiguration.AbstractServiceStarter<V extends ProcessHelper>
 
Field Summary
 
Fields inherited from class com.bigdata.jini.start.config.JiniServiceConfiguration
entries, groups, jiniOptions, locators, properties
 
Fields inherited from class com.bigdata.jini.start.config.JavaServiceConfiguration
classpath, defaultJavaArgs, javaHome, log4j
 
Fields inherited from class com.bigdata.jini.start.config.ServiceConfiguration
args, className, constraints, log, options, replicationCount, serviceCount, serviceDir, timeout
 
Constructor Summary
BigdataServiceConfiguration(Class<? extends AbstractServer> cls, net.jini.config.Configuration config)
           
 
Method Summary
 BigdataServiceConfiguration.BigdataServiceStarter newServiceStarter(JiniFederation fed, IServiceListener listener, String logicalServiceZPath, net.jini.core.entry.Entry[] attributes)
          Factory method returns an object that may be used to (re-)start a service.
protected  void toString(StringBuilder sb)
          May be extended to add more properties to the ServiceConfiguration.toString() representation.
 
Methods inherited from class com.bigdata.jini.start.config.JiniServiceConfiguration
getJiniOptions
 
Methods inherited from class com.bigdata.jini.start.config.ManagedServiceConfiguration
newLogicalServiceTask, newServiceStarter
 
Methods inherited from class com.bigdata.jini.start.config.JavaServiceConfiguration
getClassName, getClasspath, getDefaultJavaArgs, getJavaHome, getLog4j
 
Methods inherited from class com.bigdata.jini.start.config.ServiceConfiguration
canStartService, canStartService, concat, getArgs, getClassPath, getConstraints, getDefaultTimeout, getOptions, getReplicationCount, getServiceCount, getServiceDir, getStringArray, getTimeout, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BigdataServiceConfiguration

public BigdataServiceConfiguration(Class<? extends AbstractServer> cls,
                                   net.jini.config.Configuration config)
                            throws net.jini.config.ConfigurationException
Parameters:
cls -
config -
Throws:
net.jini.config.ConfigurationException
Method Detail

toString

protected void toString(StringBuilder sb)
Description copied from class: ServiceConfiguration
May be extended to add more properties to the ServiceConfiguration.toString() representation.

Overrides:
toString in class JiniServiceConfiguration

newServiceStarter

public BigdataServiceConfiguration.BigdataServiceStarter newServiceStarter(JiniFederation fed,
                                                                           IServiceListener listener,
                                                                           String logicalServiceZPath,
                                                                           net.jini.core.entry.Entry[] attributes)
                                                                    throws Exception
Description copied from class: ManagedServiceConfiguration
Factory method returns an object that may be used to (re-)start a service.

Overrides:
newServiceStarter in class JiniServiceConfiguration
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 service instance will be restarted.
Throws:
Exception - if there is a problem creating the service starter.


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