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 id,
ActivationInstantiator group,
long incarnation)
Callback to inform activation system that group is now
active.
|
ActivationDesc |
getActivationDesc(ActivationID id)
Returns the activation descriptor, for the object with the activation
identifier,
id. |
ActivationGroupDesc |
getActivationGroupDesc(ActivationGroupID id)
Returns the activation group descriptor, for the group
with the activation group identifier,
id. |
ActivationGroupID |
registerGroup(ActivationGroupDesc desc)
Register the activation group.
|
ActivationID |
registerObject(ActivationDesc desc)
The
registerObject method is used to register an
activation descriptor, desc, and obtain an
activation identifier for a activatable remote object. |
ActivationDesc |
setActivationDesc(ActivationID id,
ActivationDesc desc)
Set the activation descriptor,
desc for the object with
the activation identifier, id. |
ActivationGroupDesc |
setActivationGroupDesc(ActivationGroupID id,
ActivationGroupDesc desc)
Set the activation group descriptor,
desc for the object
with the activation group identifier, id. |
void |
shutdown()
Shutdown the activation system.
|
void |
unregisterGroup(ActivationGroupID id)
Remove the activation group.
|
void |
unregisterObject(ActivationID id)
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
ActivationID registerObject(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. ActivationException - if registration fails (e.g., database
update failure, etc).UnknownGroupException - if group referred to in
desc is not registered with this systemRemoteException - if remote call failsdesc - the object's activation descriptorvoid unregisterObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException
ActivationSystem; the object
can no longer be activated via the object's activation id.ActivationException - if unregister fails (e.g., database
update failure, etc).UnknownObjectException - if object is unknown (not registered)RemoteException - if remote call failsid - the object's activation id (from previous registration)ActivationGroupID registerGroup(ActivationGroupDesc desc) throws ActivationException, RemoteException
ActivationSystem before objects
can be registered within that group.ActivationException - if group registration failsRemoteException - if remote call failsdesc - the group's descriptorActivationMonitor activeGroup(ActivationGroupID id, ActivationInstantiator group, long incarnation) throws UnknownGroupException, ActivationException, RemoteException
ActivationGroup.createGroup method to inform
the ActivationSystem that the group is now
active.UnknownGroupException - if group is not registeredActivationException - 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 groupRemoteException - if remote call failsid - the activation group's identifiergroup - the group's instantiatorincarnation - the group's incarnation numbervoid unregisterGroup(ActivationGroupID id) throws ActivationException, UnknownGroupException, RemoteException
ActivationException - if unregister fails (e.g., database
update failure, etc).UnknownGroupException - if group is not registeredRemoteException - if remote call failsid - the activation group's identifiervoid shutdown()
throws RemoteException
RemoteException - if failed to contact/shutdown the activation
daemonActivationDesc setActivationDesc(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.UnknownGroupException - the group associated with
desc is not a registered groupUnknownObjectException - the activation id
is not registeredActivationException - for general failure (e.g., unable
to update log)RemoteException - if remote call failsid - the activation identifier for the activatable objectdesc - the activation descriptor for the activatable objectgetActivationDesc(java.rmi.activation.ActivationID)ActivationGroupDesc setActivationGroupDesc(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.UnknownGroupException - the group associated with
id is not a registered groupActivationException - for general failure (e.g., unable
to update log)RemoteException - if remote call failsid - the activation group identifier for the activation groupdesc - the activation group descriptor for the activation groupgetActivationGroupDesc(java.rmi.activation.ActivationGroupID)ActivationDesc getActivationDesc(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException
id.UnknownObjectException - if id is not registeredActivationException - for general failureRemoteException - if remote call failsid - the activation identifier for the activatable objectsetActivationDesc(java.rmi.activation.ActivationID, java.rmi.activation.ActivationDesc)ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id) throws ActivationException, UnknownGroupException, RemoteException
id.UnknownGroupException - if id is not registeredActivationException - for general failureRemoteException - if remote call failsid - the activation group identifier for the groupsetActivationGroupDesc(java.rmi.activation.ActivationGroupID, java.rmi.activation.ActivationGroupDesc)aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2016 aicas GmbH. All Rights Reserved.