public interface ActivationSystem extends Remote
ActivationSystem provides a means for registering groups and "activatable" objects to be activated within those groups. The
ActivationSystem works closely with the
Activator, which activates objects registered via the
ActivationSystem, and the
ActivationMonitor, which obtains information about active and inactive objects, and inactive groups.
Activator,
ActivationMonitor
| Modifier and Type | Field and Description |
|---|---|
static int |
SYSTEM_PORT
The port to lookup the activation system.
|
| Modifier and Type | Method and Description |
|---|---|
ActivationMonitor |
activeGroup(ActivationGroupID
Callback to inform activation system that group is now active.
|
ActivationDesc |
getActivationDesc(ActivationID
Returns the activation descriptor, for the object with the activation identifier,
id.
|
ActivationGroupDesc |
getActivationGroupDesc(ActivationGroupID
Returns the activation group descriptor, for the group with the activation group identifier,
id.
|
ActivationGroupID |
registerGroup(ActivationGroupDesc
Register the activation group.
|
ActivationID |
registerObject(ActivationDesc
The
registerObject method is used to register an activation descriptor,
desc, and obtain an activation identifier for a activatable remote object.
|
ActivationDesc |
setActivationDesc(ActivationID
Set the activation descriptor,
desc for the object with the activation identifier,
id.
|
ActivationGroupDesc |
setActivationGroupDesc(ActivationGroupID
Set the activation group descriptor,
desc for the object with the activation group identifier,
id.
|
void |
shutdown()
Shutdown the activation system.
|
void |
unregisterGroup(ActivationGroupID
Remove the activation group.
|
void |
unregisterObject(ActivationID
Remove the activation id and associated descriptor previously registered with the
ActivationSystem; the object can no longer be activated via the object's activation id.
|
static final int SYSTEM_PORT
ActivationIDregisterObject(ActivationDesc desc) throws ActivationException , UnknownGroupException , RemoteException
registerObject method is used to register an activation descriptor,
desc, and obtain an activation identifier for a activatable remote object. The
ActivationSystem creates an
ActivationID (a activation identifier) for the object specified by the descriptor,
desc, and records, in stable storage, the activation descriptor and its associated identifier for later use. When the
Activator receives an
activate request for a specific identifier, it looks up the activation descriptor (registered previously) for the specified identifier and uses that information to activate the object.
desc - the object's activation descriptor
ActivationException - if registration fails (e.g., database update failure, etc).
UnknownGroupException - if group referred to in
desc is not registered with this system
RemoteException - if remote call fails
void unregisterObject(ActivationIDid) throws ActivationException , UnknownObjectException , RemoteException
ActivationSystem; the object can no longer be activated via the object's activation id.
id - the object's activation id (from previous registration)
ActivationException - if unregister fails (e.g., database update failure, etc).
UnknownObjectException - if object is unknown (not registered)
RemoteException - if remote call fails
ActivationGroupIDregisterGroup(ActivationGroupDesc desc) throws ActivationException , RemoteException
ActivationSystem before objects can be registered within that group.
desc - the group's descriptor
ActivationException - if group registration fails
RemoteException - if remote call fails
ActivationMonitoractiveGroup(ActivationGroupID id, ActivationInstantiator group, long incarnation) throws UnknownGroupException , ActivationException , RemoteException
ActivationGroup.createGroup method to inform the
ActivationSystem that the group is now active.
id - the activation group's identifier
group - the group's instantiator
incarnation - the group's incarnation number
UnknownGroupException - if group is not registered
ActivationException - if a group for the specified
id is already active and that group is not equal to the specified
group or that group has a different
incarnation than the specified
group
RemoteException - if remote call fails
void unregisterGroup(ActivationGroupIDid) throws ActivationException , UnknownGroupException , RemoteException
id - the activation group's identifier
ActivationException - if unregister fails (e.g., database update failure, etc).
UnknownGroupException - if group is not registered
RemoteException - if remote call fails
void shutdown()
throws RemoteException
RemoteException - if failed to contact/shutdown the activation daemon
ActivationDescsetActivationDesc(ActivationID id, ActivationDesc desc) throws ActivationException , UnknownObjectException , UnknownGroupException , RemoteException
desc for the object with the activation identifier,
id. The change will take effect upon subsequent activation of the object.
id - the activation identifier for the activatable object
desc - the activation descriptor for the activatable object
UnknownGroupException - the group associated with
desc is not a registered group
UnknownObjectException - the activation
id is not registered
ActivationException - for general failure (e.g., unable to update log)
RemoteException - if remote call fails
getActivationDesc(java.rmi.activation.ActivationID)
ActivationGroupDescsetActivationGroupDesc(ActivationGroupID id, ActivationGroupDesc desc) throws ActivationException , UnknownGroupException , RemoteException
desc for the object with the activation group identifier,
id. The change will take effect upon subsequent activation of the group.
id - the activation group identifier for the activation group
desc - the activation group descriptor for the activation group
UnknownGroupException - the group associated with
id is not a registered group
ActivationException - for general failure (e.g., unable to update log)
RemoteException - if remote call fails
getActivationGroupDesc(java.rmi.activation.ActivationGroupID)
ActivationDescgetActivationDesc(ActivationID id) throws ActivationException , UnknownObjectException , RemoteException
id.
id - the activation identifier for the activatable object
UnknownObjectException - if
id is not registered
ActivationException - for general failure
RemoteException - if remote call fails
setActivationDesc(java.rmi.activation.ActivationID, java.rmi.activation.ActivationDesc)
ActivationGroupDescgetActivationGroupDesc(ActivationGroupID id) throws ActivationException , UnknownGroupException , RemoteException
id.
id - the activation group identifier for the group
UnknownGroupException - if
id is not registered
ActivationException - for general failure
RemoteException - if remote call fails
setActivationGroupDesc(java.rmi.activation.ActivationGroupID, java.rmi.activation.ActivationGroupDesc)