| 
GigaSpaces XAP 9.5 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jini.start.SharedActivationGroupDescriptor
public class SharedActivationGroupDescriptor
Class used to create a shared activation group. 
 Clients construct this object with the details
 of the activation group to be launched, then call create
 to register the activation system group with the activation system
 
 This class, in conjunction with the ActivateWrapper class,
 creates an activation group suitable for hosting
 multiple service objects, with each object 
 maintaining a distinct codebase and policy.
| Constructor Summary | |
|---|---|
SharedActivationGroupDescriptor(String policy,
                                String classpath,
                                String log,
                                String serverCommand,
                                String[] serverOptions,
                                String[] serverProperties)
Trivial constructor.  | 
|
SharedActivationGroupDescriptor(String policy,
                                String classpath,
                                String log,
                                String serverCommand,
                                String[] serverOptions,
                                String[] serverProperties,
                                String host,
                                int port)
Trivial constructor.  | 
|
| Method Summary | |
|---|---|
 Object | 
create(Configuration config)
Method that attempts to create a shared activation system group from the description information provided via constructor parameters.  | 
 String | 
getActivationSystemHost()
Activation system host accessor method.  | 
 int | 
getActivationSystemPort()
Activation system port accessor method.  | 
 String | 
getClasspath()
Classpath accessor method.  | 
 String | 
getLog()
Shared group log accessor method.  | 
 String | 
getPolicy()
Policy accessor method.  | 
 String | 
getServerCommand()
Command accessor method.  | 
 String[] | 
getServerOptions()
Command options accessor method.  | 
 Properties | 
getServerProperties()
Properties accessor method.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SharedActivationGroupDescriptor(String policy,
                                       String classpath,
                                       String log,
                                       String serverCommand,
                                       String[] serverOptions,
                                       String[] serverProperties)
host and port parameters set to 
 null and 0, respectively.
public SharedActivationGroupDescriptor(String policy,
                                       String classpath,
                                       String log,
                                       String serverCommand,
                                       String[] serverOptions,
                                       String[] serverProperties,
                                       String host,
                                       int port)
policy - location of VM policy filename or URLclasspath - location where shared VM
     classes can be found. Classpath components must be separated 
     by path separators.log - location where group identifier information will be persistedserverCommand - VM command to useserverOptions - array of command line options to pass on the VM's
     command lineserverProperties - array of property/value string pairs to 
     pass on the VMs command line (as in -D<property>=value). This
     array must have an even number of elements.host - hostname of desired activation system. If null,
     defaults to the localhost.port - port of desired activation system. If value is <= 0, then
     defaults to  
     ActivationSystem.SYSTEM_PORT.| Method Detail | 
|---|
public final String getPolicy()
public final String getClasspath()
public final String getLog()
public final String getServerCommand()
public final String[] getServerOptions()
public final Properties getServerProperties()
public final String getActivationSystemHost()
public final int getActivationSystemPort()
public Object create(Configuration config)
              throws Exception
This method:
ActivationGroupDesc with
      the provided constructor parameter information
 ActivationSystem.registerGroup() with the constructed 
      ActivationGroupDesc
 activation group identifier
      to the shared group log.
 ActivationSystem.unregisterGroup()
      if an exception occurs while persisting the 
      ActivationGroupID.
 "java.security.policy" property with the provided
     policy setting to server properties.
 
create in interface ServiceDescriptorconfig - The Configuration object
     used to configure the creation of the returned object.
ActivationGroupID for the newly 
      created activation system group instance.
Exception - Thrown if there was any problem 
     creating the object.public String toString()
toString in class Object
  | 
GigaSpaces XAP 9.5 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||