public class SharedActivationGroupDescriptor extends Object implements ServiceDescriptor, Serializable
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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
.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 ServiceDescriptor
config
- 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.Copyright © GigaSpaces.