Package com.sun.corba.ee.impl.oa.poa
Class POAPolicyMediatorImpl_NR_UDS
- java.lang.Object
-
- com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
-
- com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorImpl_NR_UDS
-
- All Implemented Interfaces:
POAPolicyMediator
public class POAPolicyMediatorImpl_NR_UDS extends POAPolicyMediatorBase
Implementation of POAPolicyMediator that provides policy specific operations on the POA.
-
-
Field Summary
Fields Modifier and Type Field Description private Servant
defaultServant
-
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_NR_UDS(Policies policies, POAImpl poa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateObject(byte[] id, Servant servant)
void
clearAOM()
Delete everything in the active object map.Servant
deactivateObject(byte[] id)
Deactivate the object that is associated with the given id.void
etherealizeAll()
Etherealize all servants associated with this POAPolicyMediator.Servant
getDefaultServant()
Return the default servant.ServantManager
getServantManager()
Return the servant manager.Servant
idToServant(byte[] id)
protected java.lang.Object
internalGetServant(byte[] id, java.lang.String operation)
void
returnServant()
Release a servant that was obtained from getInvocationServant.byte[]
servantToId(Servant servant)
void
setDefaultServant(Servant servant)
Set the default servant.void
setServantManager(ServantManager servantManager)
Set the servant manager.-
Methods inherited from class com.sun.corba.ee.impl.oa.poa.POAPolicyMediatorBase
getInvocationServant, getPolicies, getScid, getServerId, newSystemId, setDelegate
-
-
-
-
Field Detail
-
defaultServant
private Servant defaultServant
-
-
Method Detail
-
internalGetServant
protected java.lang.Object internalGetServant(byte[] id, java.lang.String operation) throws ForwardRequest
- Specified by:
internalGetServant
in classPOAPolicyMediatorBase
- Throws:
ForwardRequest
-
returnServant
public void returnServant()
Description copied from interface:POAPolicyMediator
Release a servant that was obtained from getInvocationServant.
-
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.
-
clearAOM
public void clearAOM()
Description copied from interface:POAPolicyMediator
Delete everything in the active object map.
-
getServantManager
public ServantManager getServantManager() throws WrongPolicy
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
public void setServantManager(ServantManager servantManager) throws WrongPolicy
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
public Servant getDefaultServant() throws NoServant, WrongPolicy
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
public void setDefaultServant(Servant servant) throws WrongPolicy
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.
-
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:POAPolicyMediator
Deactivate 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
-
servantToId
public byte[] servantToId(Servant servant) throws ServantNotActive, WrongPolicy
- Throws:
ServantNotActive
WrongPolicy
-
idToServant
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive
- Throws:
WrongPolicy
ObjectNotActive
-
-