- java.lang.Object
-
- java.rmi.activation.ActivationGroupDesc
-
- All Implemented Interfaces:
- Serializable
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 name,
- the group's code location (the location of the group's class), and
- a "marshalled" object that can contain group specific initialization data.
The group's class must be a concrete subclass of
ActivationGroup
. A subclass ofActivationGroup
is created/recreated via theActivationGroup.createGroup
static method that invokes a special constructor that takes two arguments:- the group's
ActivationGroupID
, and - the group's initialization data (in a
java.rmi.MarshalledObject
)
- Since:
- 1.2
- See Also:
ActivationGroup
,ActivationGroupID
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
ActivationGroupDesc.CommandEnvironment
Startup options for ActivationGroup implementations.
-
Constructor Summary
Constructors Constructor and Description ActivationGroupDesc(Properties overrides, ActivationGroupDesc.CommandEnvironment cmd)
Constructs a group descriptor that uses the system defaults for group implementation and code location.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
Methods Modifier and Type Method and Description boolean
equals(Object obj)
Compares two activation group descriptors for content equality.String
getClassName()
Returns the group's class name (possiblynull
).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.int
hashCode()
Produce identical numbers for similarActivationGroupDesc
s.
-
-
-
Constructor Detail
-
ActivationGroupDesc
public ActivationGroupDesc(Properties overrides, ActivationGroupDesc.CommandEnvironment cmd)
Constructs a group descriptor that uses the system defaults for group implementation and code location. Properties specify Java environment overrides (which will override system properties in the group implementation's VM). The command environment can control the exact command/options used in starting the child VM, or can benull
to accept rmid's default.This constructor will create an
ActivationGroupDesc
with anull
group class name, which indicates the system's defaultActivationGroup
implementation.- Parameters:
overrides
- the set of properties to set when the group is recreated.cmd
- the controlling options for executing the VM in another process (ornull
).- Since:
- 1.2
-
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 package qualified class name ornull
. Anull
group class name indicates the system's defaultActivationGroup
implementation.location
- the location from where to load the group's classdata
- 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), ornull
.cmd
- the controlling options for executing the VM in another process (ornull
).- Since:
- 1.2
-
-
Method Detail
-
getClassName
public String getClassName()
Returns the group's class name (possiblynull
). Anull
group class name indicates the system's defaultActivationGroup
implementation.- Returns:
- the group's class name
- Since:
- 1.2
-
getLocation
public String getLocation()
Returns the group's code location.- Returns:
- the group's code location
- Since:
- 1.2
-
getData
public MarshalledObject<?> getData()
Returns the group's initialization data.- Returns:
- the group's initialization data
- Since:
- 1.2
-
getPropertyOverrides
public Properties getPropertyOverrides()
Returns the group's property-override list.- Returns:
- the property-override list, or
null
- Since:
- 1.2
-
getCommandEnvironment
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment()
Returns the group's command-environment control object.- Returns:
- the command-environment object, or
null
- Since:
- 1.2
-
equals
public boolean equals(Object obj)
Compares two activation group descriptors for content equality.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/rmi/activation/activationgroupdesc.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.