GeezerVison is showing docs.oracle.com — ActivationSystem (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact2, compact3
java.rmi.activation
Interface ActivationSystem
-
- All Superinterfaces:
- Remote
public interface ActivationSystem
extends Remote
The 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.
- Since:
- 1.2
- See Also:
Activator,
ActivationMonitor
-
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
static int |
SYSTEM_PORT |
The port to lookup the activation system.
|
-
Method Summary
All Methods Instance Methods Abstract Methods
| Modifier and Type |
Method |
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.
|
-
-
Method Detail
-
activeGroup
ActivationMonitor activeGroup(ActivationGroupID id,
ActivationInstantiator group,
long incarnation)
throws UnknownGroupException,
ActivationException,
RemoteException
Callback to inform activation system that group is now
active. This call is made internally by the
ActivationGroup.createGroup method to inform
the ActivationSystem that the group is now
active.
- Parameters:
id - the activation group's identifier
group - the group's instantiator
incarnation - the group's incarnation number
- Returns:
- monitor for activation group
- Throws:
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
- Since:
- 1.2
-
unregisterGroup
void unregisterGroup(ActivationGroupID id)
throws ActivationException,
UnknownGroupException,
RemoteException
Remove the activation group. An activation group makes this call back
to inform the activator that the group should be removed (destroyed).
If this call completes successfully, objects can no longer be
registered or activated within the group. All information of the
group and its associated objects is removed from the system.
- Parameters:
id - the activation group's identifier
- Throws:
ActivationException - if unregister fails (e.g., database
update failure, etc).
UnknownGroupException - if group is not registered
RemoteException - if remote call fails
- Since:
- 1.2
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|