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
Implementation of POARequesHandler that provides policy specific
operations on the POA.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
deactivateHelper
(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) private AOMEntry
void
Etherealize all servants associated with this POAPolicyMediator.Return the default servant.Return the servant manager.idToServant
(byte[] id) private void
private void
protected Object
internalGetServant
(byte[] id, String operation) void
Release a servant that was obtained from getInvocationServant.private void
private void
void
setDefaultServant
(Servant servant) Set the default servant.void
setServantManager
(ServantManager servantManager) Set the servant manager.private void
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 Details
-
activator
-
-
Constructor Details
-
POAPolicyMediatorImpl_R_USM
-
-
Method Details
-
enterEntry
-
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
- Specified by:
internalGetServant
in classPOAPolicyMediatorBase
- Throws:
ForwardRequest
-
returnServant
public void returnServant()Description copied from interface:POAPolicyMediator
Release a servant that was obtained from getInvocationServant.- Specified by:
returnServant
in interfacePOAPolicyMediator
- Overrides:
returnServant
in classPOAPolicyMediatorBase_R
-
etherealizeAll
public void etherealizeAll()Description copied from interface:POAPolicyMediator
Etherealize all servants associated with this POAPolicyMediator. Does nothing if the retention policy is non-retain. -
getServantManager
Description copied from interface:POAPolicyMediator
Return 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
Description copied from interface:POAPolicyMediator
Set 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
Description copied from interface:POAPolicyMediator
Return 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
Description copied from interface:POAPolicyMediator
Set 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:
deactivateHelper
in classPOAPolicyMediatorBase_R
- Throws:
ObjectNotActive
WrongPolicy
-
idToServant
- Throws:
WrongPolicy
ObjectNotActive
-