org.jacorb.poa
Class AOM
java.lang.Object
org.jacorb.poa.AOM
public class AOM
- extends java.lang.Object
This class maps object id's to servants and vice versa.
A oid/servant pair can be added/removed using add(),remove().
The data can be retrieved using getServant() or getObjectId().
- Version:
- $Id: AOM.java,v 1.33 2006/07/27 13:50:35 nick.cross Exp $
- Author:
- Reimo Tiedemann, FU Berlin
Constructor Summary |
protected |
AOM(boolean _unique,
org.apache.avalon.framework.logger.Logger _logger)
|
Method Summary |
protected void |
add(byte[] oid,
org.omg.PortableServer.Servant servant)
add is called by the POA when activating an object
to add a Servant into the Active Object Map. |
protected void |
addAOMListener(AOMListener listener)
|
protected boolean |
contains(org.omg.PortableServer.Servant servant)
|
protected StringPair[] |
deliverContent()
|
protected byte[] |
getObjectId(org.omg.PortableServer.Servant servant)
|
protected org.omg.PortableServer.Servant |
getServant(byte[] oid)
|
protected org.omg.PortableServer.Servant |
incarnate(byte[] oid,
org.omg.PortableServer.ServantActivator servant_activator,
org.omg.PortableServer.POA poa)
|
protected void |
remove(byte[] oid,
RequestController requestController,
org.omg.PortableServer.ServantActivator servantActivator,
POA poa,
boolean cleanupInProgress)
|
protected void |
removeAll(org.omg.PortableServer.ServantActivator servant_activator,
POA poa,
boolean cleanup_in_progress)
|
protected void |
removeAOMListener(AOMListener listener)
|
protected int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AOM
protected AOM(boolean _unique,
org.apache.avalon.framework.logger.Logger _logger)
add
protected void add(byte[] oid,
org.omg.PortableServer.Servant servant)
throws org.omg.PortableServer.POAPackage.ObjectAlreadyActive,
org.omg.PortableServer.POAPackage.ServantAlreadyActive
add
is called by the POA when activating an object
to add a Servant into the Active Object Map.
- Parameters:
oid
- a byte[]
, the id to use.servant
- a Servant
, the servant to store.
- Throws:
org.omg.PortableServer.POAPackage.ObjectAlreadyActive
- if an error occurs
org.omg.PortableServer.POAPackage.ServantAlreadyActive
- if an error occurs
addAOMListener
protected void addAOMListener(AOMListener listener)
contains
protected boolean contains(org.omg.PortableServer.Servant servant)
deliverContent
protected StringPair[] deliverContent()
getObjectId
protected byte[] getObjectId(org.omg.PortableServer.Servant servant)
getServant
protected org.omg.PortableServer.Servant getServant(byte[] oid)
incarnate
protected org.omg.PortableServer.Servant incarnate(byte[] oid,
org.omg.PortableServer.ServantActivator servant_activator,
org.omg.PortableServer.POA poa)
throws org.omg.PortableServer.ForwardRequest
- Throws:
org.omg.PortableServer.ForwardRequest
remove
protected void remove(byte[] oid,
RequestController requestController,
org.omg.PortableServer.ServantActivator servantActivator,
POA poa,
boolean cleanupInProgress)
throws org.omg.PortableServer.POAPackage.ObjectNotActive
- Throws:
org.omg.PortableServer.POAPackage.ObjectNotActive
removeAll
protected void removeAll(org.omg.PortableServer.ServantActivator servant_activator,
POA poa,
boolean cleanup_in_progress)
removeAOMListener
protected void removeAOMListener(AOMListener listener)
size
protected int size()