java.rmi.activation
public abstract class ActivationGroup extends UnicastRemoteObject implements ActivationInstantiator
Constructor Summary | |
---|---|
protected | ActivationGroup(ActivationGroupID aGroupId)
Create the new activation group with the given group id.
|
Method Summary | |
---|---|
abstract void | activeObject(ActivationID id, Remote obj)
The method is called when the object is exported. |
protected void | activeObject(ActivationID id, MarshalledObject mObject)
Makes the call back to the groups {@link ActivationMonitor}.
|
static ActivationGroup | createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation)
Create the new instance of the activation group, using the class name and
location information, stored in the passed descriptor. |
static ActivationGroupID | currentGroupID()
Get the id of current activation group.
|
static ActivationSystem | getSystem()
Get the current activation system. |
protected void | inactiveGroup()
Makes the call back to the groups {@link ActivationMonitor} and sets
the current group to null. |
boolean | inactiveObject(ActivationID id)
Notifies the monitor about the object being inactivated.
|
static void | setSystem(ActivationSystem aSystem)
Set the activation system for this virtual machine. |
Parameters: aGroupId the group Id.
Throws: RemoteException if the group export fails.
Parameters: id the object activation id obj the remote object implementation
Throws: ActivationException if the group is inactive UnknownObjectException if such object is not known RemoteException if the call to monitor fails
Parameters: id the id obj the object being activated mObject the marshalled object, contains the activated remote object stub.
Throws: ActivationException on activation error UnknownObjectException if such object is not registered RemoteException on remote call (to monitor) error
Parameters: id the activation group id desc the group descriptor, providing the information, necessary to create the group incarnation the incarnation number
Returns: the created group instance
Throws: ActivationException if the activation fails due any reason
Returns: the id of the current activation group or null if none exists.
Returns: the activation system for this virtual machine
Throws: ActivationException
Parameters: id the object being inactivated.
Returns: true always (must be overridden to return other values).
Throws: ActivationException never UnknownObjectException if the object is not known RemoteException if the remote call to monitor fails
Parameters: aSystem the system to set
Throws: ActivationException if some group is active now.