GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface ActivationSystem
extends Remote
AccessException
if called
from the client that is not reside on the same host as the activation system.
ActivationGroup.getSystem()
Field Summary | |
static int |
|
Method Summary | |
ActivationMonitor |
|
ActivationDesc |
|
ActivationGroupDesc |
|
ActivationGroupID |
|
ActivationID |
|
ActivationDesc |
|
ActivationGroupDesc |
|
void |
|
void |
|
void |
|
public static final int SYSTEM_PORT
The port, used by the activation system. The value is equal to 1098 by default, but it can be changed by putting the system property .
- Field Value:
- 1098
public ActivationMonitor activeGroup(ActivationGroupID id, ActivationInstantiator group, long incarnation) throws UnknownGroupException, ActivationException, RemoteException
This method is called from theActivationGroup
to inform the ActivatinSystem that the group is now active and there is theActivationInstantiator
for that group. This call is made internally from theActivationGroup.createGroup(ActivationGroupID,ActivationGroupDesc,long)
.
- Parameters:
id
- the group idgroup
- the group activation instantiatorincarnation
- the groups incarnatin number.
- Returns:
- the activation monitor that should be informed about the group state changes
- Throws:
UnknownGroupException
- if this group has not been registeredActivationException
- if this group is already activeRemoteException
- if the remote call fails
public ActivationDesc getActivationDesc(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException
Get the activation descriptor for the object with the given activation id.
- Parameters:
id
- the object activation id
- Returns:
- the activation descriptor for that object
- Throws:
ActivationException
- if the database access failsUnknownObjectException
- if this object is not knownRemoteException
- if the remote call fails
public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID groupId) throws ActivationException, UnknownGroupException, RemoteException
Get the group descriptor for the group with the given id.
- Parameters:
groupId
- the group id
- Returns:
- the group descriptor
- Throws:
ActivationException
- if the database access failsUnknownGroupException
- if the group with such id is not knownRemoteException
- if the remote call fails
public ActivationGroupID registerGroup(ActivationGroupDesc groupDesc) throws ActivationException, RemoteException
Register the new activation group. For instance, it can be one activation group per virtual machine.
- Parameters:
groupDesc
- the activation group descriptor.
- Returns:
- the created activation group ID for the activation group
- Throws:
ActivationException
- if the group registration failsRemoteException
- if the remote call fails
public ActivationID registerObject(ActivationDesc desc) throws ActivationException, UnknownGroupException, RemoteException
Registers the activation descriptor and creates (and returns) its activation identifier. The map entry (identifier to descriptor) is stored in the stable map and used when theActivator
receives the request to activate the object.
- Parameters:
desc
- the activation descriptor to register.
- Returns:
- the created activation identifier that is mapped to the passed descriptor.
- Throws:
ActivationException
- if the registration fails (database update problems, etc).UnknownGroupException
- the if group, specified in decriptor, is unknown.RemoteException
- if the remote call fails.
public ActivationDesc setActivationDesc(ActivationID id, ActivationDesc desc) throws ActivationException, UnknownObjectException, UnknownGroupException, RemoteException
Replace the activation descriptor for the object with the given activation id.
- Parameters:
id
- the activation iddesc
- the new activation descriptor
- Returns:
- the previous activation descriptor for that object.
- Throws:
ActivationException
- if the database update failsUnknownObjectException
- if the object with such id is not knownUnknownGroupException
- if the activation group (in desc) is not known.RemoteException
- if the remote call fails
public ActivationGroupDesc setActivationGroupDesc(ActivationGroupID groupId, ActivationGroupDesc groupDesc) throws ActivationException, UnknownGroupException, RemoteException
Replaces the group descriptor for the group with the given group activation id.
- Parameters:
groupId
- the group idgroupDesc
- the new group descriptor
- Returns:
- the previous group descriptor
- Throws:
ActivationException
- if the database update failsUnknownGroupException
- if such group is not knownRemoteException
- if the remote call fails
public void shutdown() throws RemoteException
Shutdown the activation system and all associated activation groups
- Throws:
RemoteException
- if the remote call fails
public void unregisterGroup(ActivationGroupID id) throws ActivationException, UnknownGroupException, RemoteException
Removes the activation group with the given identifier. The group calls back, informing the activator about the shutdown.
- Parameters:
id
- the group activation id.
- Throws:
ActivationException
- if the database update failsUnknownGroupException
- if such group is not registeredRemoteException
- if the remote call fails
public void unregisterObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException
Removes the stored identifier-description map entry. The object will no longer be activable using the passed activation id
- Parameters:
id
- the activation id to remove
- Throws:
ActivationException
- if the entry removing operation failed (database update problems, etc)UnknownObjectException
- if the passed id is not known to the systemRemoteException
- if the remote call fails
GNU Classpath (0.95) |