com.bigdata.jini.start.config
Class JiniServiceConfiguration

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BigdataServiceConfiguration

public abstract class JiniServiceConfiguration
extends ManagedServiceConfiguration

Abstract implementation for jini-based services.

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

Nested Class Summary
 class JiniServiceConfiguration.JiniServiceStarter<V extends JiniServiceProcessHelper>
           
static interface JiniServiceConfiguration.Options
          Additional Configuration options understood by JiniServiceConfiguration.
 
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
 net.jini.core.entry.Entry[] entries
           
 String[] groups
           
 String[] jiniOptions
           
 net.jini.core.discovery.LookupLocator[] locators
           
 Properties 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
JiniServiceConfiguration(String className, net.jini.config.Configuration config)
           
 
Method Summary
static String[] getJiniOptions(String className, net.jini.config.Configuration config)
          Reads options from (a) the JiniClient component and concatenates options from the className component.
 JiniServiceConfiguration.JiniServiceStarter newServiceStarter(JiniFederation fed, IServiceListener listener, String zpath, 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.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
 

Field Detail

entries

public final net.jini.core.entry.Entry[] entries

groups

public final String[] groups

locators

public final net.jini.core.discovery.LookupLocator[] locators

properties

public final Properties properties

jiniOptions

public final String[] jiniOptions
Constructor Detail

JiniServiceConfiguration

public JiniServiceConfiguration(String className,
                                net.jini.config.Configuration config)
                         throws net.jini.config.ConfigurationException
Parameters:
className -
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 JavaServiceConfiguration

newServiceStarter

public JiniServiceConfiguration.JiniServiceStarter newServiceStarter(JiniFederation fed,
                                                                     IServiceListener listener,
                                                                     String zpath,
                                                                     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 ManagedServiceConfiguration
Parameters:
fed -
listener -
logicalServiceZPath - This zpath of the logicalService instance.
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.

getJiniOptions

public static String[] getJiniOptions(String className,
                                      net.jini.config.Configuration config)
                               throws net.jini.config.ConfigurationException
Reads options from (a) the JiniClient component and concatenates options from the className component.

Parameters:
className -
config -
Returns:
Throws:
net.jini.config.ConfigurationException


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