org.jacorb.poa
Class AOM

java.lang.Object
  extended byorg.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.29 2004/05/06 12:40:00 nicolas Exp $
Author:
Reimo Tiedemann, FU Berlin

Constructor Summary
protected AOM(boolean _unique, boolean single_threaded, org.apache.avalon.framework.logger.Logger _logger)
           
 
Method Summary
protected  void add(byte[] oid, 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(Servant servant)
           
protected  StringPair[] deliverContent()
           
protected  byte[] getObjectId(Servant servant)
           
protected  Servant getServant(byte[] oid)
           
protected  Servant incarnate(byte[] oid, ServantActivator servant_activator, POA poa)
           
protected  void remove(byte[] oid, RequestController requestController, ServantActivator servantActivator, POA poa, boolean cleanupInProgress)
           
protected  void removeAll(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
 

Constructor Detail

AOM

protected AOM(boolean _unique,
              boolean single_threaded,
              org.apache.avalon.framework.logger.Logger _logger)
Method Detail

add

protected void add(byte[] oid,
                   Servant servant)
            throws ObjectAlreadyActive,
                   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:
ObjectAlreadyActive - if an error occurs
ServantAlreadyActive - if an error occurs

addAOMListener

protected void addAOMListener(AOMListener listener)

contains

protected boolean contains(Servant servant)

deliverContent

protected StringPair[] deliverContent()

getObjectId

protected byte[] getObjectId(Servant servant)

getServant

protected Servant getServant(byte[] oid)

incarnate

protected Servant incarnate(byte[] oid,
                            ServantActivator servant_activator,
                            POA poa)
                     throws ForwardRequest
Throws:
ForwardRequest

remove

protected void remove(byte[] oid,
                      RequestController requestController,
                      ServantActivator servantActivator,
                      POA poa,
                      boolean cleanupInProgress)
               throws ObjectNotActive
Throws:
ObjectNotActive

removeAll

protected void removeAll(ServantActivator servant_activator,
                         POA poa,
                         boolean cleanup_in_progress)

removeAOMListener

protected void removeAOMListener(AOMListener listener)

size

protected int size()