org.jacorb.poa

Class 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

AOM(boolean _unique, boolean single_threaded, 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
removeAOMListener(AOMListener listener)
protected void
removeAll(ServantActivator servant_activator, POA poa, boolean cleanup_in_progress)
protected int
size()

Constructor Details

AOM

protected AOM(boolean _unique,
              boolean single_threaded,
              Logger _logger)

Method Details

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


remove

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


removeAOMListener

protected void removeAOMListener(AOMListener listener)


removeAll

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


size

protected int size()