org.jacorb.poa

Class AOM

public class AOM extends 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, Logger _logger)
Method Summary
protected voidadd(byte[] oid, Servant servant)
add is called by the POA when activating an object to add a Servant into the Active Object Map.
protected voidaddAOMListener(AOMListener listener)
protected booleancontains(Servant servant)
protected StringPair[]deliverContent()
protected byte[]getObjectId(Servant servant)
protected ServantgetServant(byte[] oid)
protected Servantincarnate(byte[] oid, ServantActivator servant_activator, POA poa)
protected voidremove(byte[] oid, RequestController requestController, ServantActivator servantActivator, POA poa, boolean cleanupInProgress)
protected voidremoveAll(ServantActivator servant_activator, POA poa, boolean cleanup_in_progress)
protected voidremoveAOMListener(AOMListener listener)
protected intsize()

Constructor Detail

AOM

protected AOM(boolean _unique, Logger _logger)

Method Detail

add

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.

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)

remove

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

removeAll

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

removeAOMListener

protected void removeAOMListener(AOMListener listener)

size

protected int size()