Package com.sun.corba.ee.impl.oa.poa
Class POAPolicyMediatorBase_R
- java.lang.Object
-
- com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
-
- com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase_R
-
- All Implemented Interfaces:
POAPolicyMediator
- Direct Known Subclasses:
POAPolicyMediatorImpl_R_AOM,POAPolicyMediatorImpl_R_UDS,POAPolicyMediatorImpl_R_USM
public abstract class POAPolicyMediatorBase_R extends POAPolicyMediatorBase
-
-
Field Summary
Fields Modifier and Type Field Description protected ActiveObjectMapactiveObjectMap-
Fields inherited from class com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
isImplicit, isSystemId, isUnique, omgWrapper, orb, poa, wrapper
-
-
Constructor Summary
Constructors Constructor Description POAPolicyMediatorBase_R(Policies policies, POAImpl poa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateObject(byte[] id, Servant servant)protected voidactivateServant(ActiveObjectMap.Key key, AOMEntry entry, Servant servant)voidclearAOM()Delete everything in the active object map.protected voiddeactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant s)ServantdeactivateObject(byte[] id)Deactivate the object that is associated with the given id.ServantdeactivateObject(ActiveObjectMap.Key key)private voiddeactivatingObject(Servant s, POAImpl poa)protected ServantinternalIdToServant(byte[] id)protected ServantinternalKeyToServant(ActiveObjectMap.Key key)voidreturnServant()Release a servant that was obtained from getInvocationServant.byte[]servantToId(Servant servant)-
Methods inherited from class com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
getInvocationServant, getPolicies, getScid, getServerId, internalGetServant, newSystemId, setDelegate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.corba.ee.impl.oa.poa.POAPolicyMediator
etherealizeAll, getDefaultServant, getServantManager, idToServant, setDefaultServant, setServantManager
-
-
-
-
Field Detail
-
activeObjectMap
protected ActiveObjectMap activeObjectMap
-
-
Method Detail
-
returnServant
public void returnServant()
Description copied from interface:POAPolicyMediatorRelease a servant that was obtained from getInvocationServant.
-
clearAOM
public void clearAOM()
Description copied from interface:POAPolicyMediatorDelete everything in the active object map.
-
internalKeyToServant
protected Servant internalKeyToServant(ActiveObjectMap.Key key)
-
internalIdToServant
protected Servant internalIdToServant(byte[] id)
-
activateServant
protected void activateServant(ActiveObjectMap.Key key, AOMEntry entry, Servant servant)
-
activateObject
public final void activateObject(byte[] id, Servant servant) throws WrongPolicy, ServantAlreadyActive, ObjectAlreadyActive
-
deactivateObject
public Servant deactivateObject(byte[] id) throws ObjectNotActive, WrongPolicy
Description copied from interface:POAPolicyMediatorDeactivate the object that is associated with the given id. Returns the servant for id.- Parameters:
id- ID of the object to deactivate- Returns:
- Servant for the ID
- Throws:
ObjectNotActive- if the object was not activeWrongPolicy- if not supported by the current policy
-
deactivateHelper
protected void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant s) throws ObjectNotActive, WrongPolicy
- Throws:
ObjectNotActiveWrongPolicy
-
deactivateObject
public Servant deactivateObject(ActiveObjectMap.Key key) throws ObjectNotActive, WrongPolicy
- Throws:
ObjectNotActiveWrongPolicy
-
servantToId
public byte[] servantToId(Servant servant) throws ServantNotActive, WrongPolicy
- Throws:
ServantNotActiveWrongPolicy
-
-