Package com.sun.corba.ee.impl.oa.poa
Class POAPolicyMediatorImpl_R_USM
- java.lang.Object
-
- com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
-
- com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase_R
-
- com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorImpl_R_USM
-
- All Implemented Interfaces:
POAPolicyMediator
public class POAPolicyMediatorImpl_R_USM extends POAPolicyMediatorBase_R
Implementation of POARequesHandler that provides policy specific operations on the POA.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classPOAPolicyMediatorImpl_R_USM.Etherealizer
-
Field Summary
Fields Modifier and Type Field Description protected ServantActivatoractivator-
Fields inherited from class com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase_R
activeObjectMap
-
Fields inherited from class com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
isImplicit, isSystemId, isUnique, omgWrapper, orb, poa, wrapper
-
-
Constructor Summary
Constructors Constructor Description POAPolicyMediatorImpl_R_USM(Policies policies, POAImpl poa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant servant)private AOMEntryenterEntry(ActiveObjectMap.Key key)voidetherealizeAll()Etherealize all servants associated with this POAPolicyMediator.ServantgetDefaultServant()Return the default servant.ServantManagergetServantManager()Return the servant manager.ServantidToServant(byte[] id)private voidincarnateComplete()private voidincarnateFailed()protected java.lang.ObjectinternalGetServant(byte[] id, java.lang.String operation)voidreturnServant()Release a servant that was obtained from getInvocationServant.private voidservantAlreadyActivated()private voidservantAlreadyAssignedToID()voidsetDefaultServant(Servant servant)Set the default servant.voidsetServantManager(ServantManager servantManager)Set the servant manager.private voidupcallToIncarnate()-
Methods inherited from class com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase_R
activateObject, activateServant, clearAOM, deactivateObject, deactivateObject, internalIdToServant, internalKeyToServant, servantToId
-
Methods inherited from class com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
getInvocationServant, getPolicies, getScid, getServerId, newSystemId, setDelegate
-
-
-
-
Field Detail
-
activator
protected ServantActivator activator
-
-
Method Detail
-
enterEntry
private AOMEntry enterEntry(ActiveObjectMap.Key key)
-
servantAlreadyActivated
@InfoMethod private void servantAlreadyActivated()
-
upcallToIncarnate
@InfoMethod private void upcallToIncarnate()
-
incarnateFailed
@InfoMethod private void incarnateFailed()
-
incarnateComplete
@InfoMethod private void incarnateComplete()
-
servantAlreadyAssignedToID
@InfoMethod private void servantAlreadyAssignedToID()
-
internalGetServant
protected java.lang.Object internalGetServant(byte[] id, java.lang.String operation) throws ForwardRequest- Specified by:
internalGetServantin classPOAPolicyMediatorBase- Throws:
ForwardRequest
-
returnServant
public void returnServant()
Description copied from interface:POAPolicyMediatorRelease a servant that was obtained from getInvocationServant.- Specified by:
returnServantin interfacePOAPolicyMediator- Overrides:
returnServantin classPOAPolicyMediatorBase_R
-
etherealizeAll
public void etherealizeAll()
Description copied from interface:POAPolicyMediatorEtherealize all servants associated with this POAPolicyMediator. Does nothing if the retention policy is non-retain.
-
getServantManager
public ServantManager getServantManager() throws WrongPolicy
Description copied from interface:POAPolicyMediatorReturn the servant manager. Will throw WrongPolicy if the request processing policy is not USE_SERVANT_MANAGER.- Returns:
- The current ServantManager
- Throws:
WrongPolicy- If the request processing policy is not USE_SERVANT_MANAGER
-
setServantManager
public void setServantManager(ServantManager servantManager) throws WrongPolicy
Description copied from interface:POAPolicyMediatorSet the servant manager. Will throw WrongPolicy if the request processing policy is not USE_SERVANT_MANAGER.- Parameters:
servantManager- The ServantManager- Throws:
WrongPolicy- if the request processing policy is not USE_SERVANT_MANAGER.
-
getDefaultServant
public Servant getDefaultServant() throws NoServant, WrongPolicy
Description copied from interface:POAPolicyMediatorReturn the default servant. Will throw WrongPolicy if the request processing policy is not USE_DEFAULT_SERVANT.- Returns:
- the default Servant
- Throws:
NoServant- if no Servant has been setWrongPolicy- if the policy is not USE_DEFAULT_SERVANT
-
setDefaultServant
public void setDefaultServant(Servant servant) throws WrongPolicy
Description copied from interface:POAPolicyMediatorSet the default servant. Will throw WrongPolicy if the request processing policy is not USE_DEFAULT_SERVANT.- Parameters:
servant- The default Servant- Throws:
WrongPolicy- if the request processing policy is not USE_DEFAULT_SERVANT.
-
deactivateHelper
public void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) throws ObjectNotActive, WrongPolicy
- Overrides:
deactivateHelperin classPOAPolicyMediatorBase_R- Throws:
ObjectNotActiveWrongPolicy
-
idToServant
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive
- Throws:
WrongPolicyObjectNotActive
-
-