Java Platform 1.2
Beta 4

java.rmi.activation
Class ActivationGroupDesc

java.lang.Object
  |
  +--java.rmi.activation.ActivationGroupDesc

public final class ActivationGroupDesc
extends Object
implements Serializable

An activation group descriptor contains the information necessary to create/recreate an activation group in which to activate objects. Such a descriptor contains:

The group's class must be a concrete subclass of ActivationGroup. A subclass of ActivationGroup is created/recreated via the ActivationGroup.createGroup static method that invokes a special constructor that takes two arguments:

Since:
JDK1.2
See Also:
ActivationGroup, ActivationGroupID, Serialized Form

Inner Class Summary
static class ActivationGroupDesc.CommandEnvironment
          Startup options for ActivationGroup implementations.
 
Constructor Summary
ActivationGroupDesc(Properties overrides, ActivationGroupDesc.CommandEnvironment cmd)
          Constructs a group descriptor that uses system default for group implementation and code location.
ActivationGroupDesc(String className, String location, MarshalledObject data)
          Specifies an alternate group implementation to be used for the group.
ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd)
          Specifies an alternate group implementation and execution environment to be used for the group.
 
Method Summary
 boolean equals(Object obj)
          Compares two activation group descriptors for content equality.
 String getClassName()
          Returns the group's class name.
 ActivationGroupDesc.CommandEnvironment getCommandEnvironment()
          Returns the group's command-environment control object.
 MarshalledObject getData()
          Returns the group's initialization data.
 String getLocation()
          Returns the group's code location.
 Properties getPropertyOverrides()
          Returns the group's property-override list.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationGroupDesc

public ActivationGroupDesc(Properties overrides,
                           ActivationGroupDesc.CommandEnvironment cmd)
Constructs a group descriptor that uses system default for group implementation and code location. Properties specify Java environment overrides (which will override system properties in the group implementation's VM). The additional properties java.rmi.activation.security.class and java.rmi.activation.security.codebase specify (respectively) the class name of the security manager, and the codebase (the location) of the class. If the former property is not set, then the java.rmi.RMISecurityManager will be used as the security manager for the group. The command environment can control the exact command/options used in starting the child VM, or can be null to accept rmid's default.
Parameters:
properties - the set of properties to set when the group is recreated.
cmd - the controlling options for executing the VM in another process (or null).

ActivationGroupDesc

public ActivationGroupDesc(String className,
                           String location,
                           MarshalledObject data,
                           Properties overrides,
                           ActivationGroupDesc.CommandEnvironment cmd)
Specifies an alternate group implementation and execution environment to be used for the group.
Parameters:
className - the group's fully package qualified className
location - the location from where to load the group's class
data - the group's initialization data contained in marshalled form (could contain properties, for example)
overrides - a properties map which will override those set by default in the subprocess environment (will be translated into -D options), or null.
cmd - the controlling options for executing the VM in another process (or null).

ActivationGroupDesc

public ActivationGroupDesc(String className,
                           String location,
                           MarshalledObject data)
Specifies an alternate group implementation to be used for the group.
Parameters:
className - the group's fully package qualified className
location - the location from where to load the group's class
data - the group's initialization data contained in marshalled form (could contain properties, for example)
Method Detail

getClassName

public String getClassName()
Returns the group's class name.
Returns:
the group's class name

getLocation

public String getLocation()
Returns the group's code location.
Returns:
the group's code location

getData

public MarshalledObject getData()
Returns the group's initialization data.
Returns:
the group's initialization data

getPropertyOverrides

public Properties getPropertyOverrides()
Returns the group's property-override list.
Returns:
the property-override list, or null

getCommandEnvironment

public ActivationGroupDesc.CommandEnvironment getCommandEnvironment()
Returns the group's command-environment control object.
Returns:
the command-environment object, or null

equals

public boolean equals(Object obj)
Compares two activation group descriptors for content equality.
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
Overrides:
equals in class Object
See Also:
Hashtable

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.