FileDocCategorySizeDatePackage
POAPolicyMediator.javaAPI DocJava SE 5 API4018Fri Aug 26 14:54:26 BST 2005com.sun.corba.se.impl.oa.poa

POAPolicyMediator

public interface POAPolicyMediator
POAPolicyMediator defines an interface to which the POA delegates all policy specific operations. This permits code paths for different policies to be optimized by creating the correct code at POA creation time. Also note that as much as possible, this interface does not do any concurrency control, except as noted. The POA is responsible for concurrency control.

Fields Summary
Constructors Summary
Methods Summary
public voidactivateObject(byte[] id, org.omg.PortableServer.Servant servant)

public voidclearAOM()
Delete everything in the active object map.

public org.omg.PortableServer.ServantdeactivateObject(byte[] id)
Deactivate the object that is associated with the given id. Returns the servant for id.

public voidetherealizeAll()
Etherealize all servants associated with this POAPolicyMediator. Does nothing if the retention policy is non-retain.

public org.omg.PortableServer.ServantgetDefaultServant()
Return the default servant. Will throw WrongPolicy if the request processing policy is not USE_DEFAULT_SERVANT.

public java.lang.ObjectgetInvocationServant(byte[] id, java.lang.String operation)
Get the servant to use for an invocation with the given id and operation.

param
id the object ID for which we are requesting a servant
param
operation the name of the operation to be performed on the servant
return
the resulting Servant.

public PoliciesgetPolicies()
Return the policies object that was used to create this POAPolicyMediator.

public intgetScid()
Return the subcontract ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA. This is initialized according to the policies and the POA used to construct this POAPolicyMediator in the POAPolicyMediatorFactory.

public org.omg.PortableServer.ServantManagergetServantManager()
Return the servant manager. Will throw WrongPolicy if the request processing policy is not USE_SERVANT_MANAGER.

public intgetServerId()
Return the server ID to use in the IIOP profile in IORs created by this POAPolicyMediator's POA. This is initialized according to the policies and the POA used to construct this POAPolicyMediator in the POAPolicyMediatorFactory.

public org.omg.PortableServer.ServantidToServant(byte[] id)

public byte[]newSystemId()
Allocate a new, unique system ID. Requires the ID assignment policy to be SYSTEM.

public voidreturnServant()
Release a servant that was obtained from getInvocationServant.

public byte[]servantToId(org.omg.PortableServer.Servant servant)

public voidsetDefaultServant(org.omg.PortableServer.Servant servant)
Set the default servant. Will throw WrongPolicy if the request processing policy is not USE_DEFAULT_SERVANT.

public voidsetServantManager(org.omg.PortableServer.ServantManager servantManager)
Set the servant manager. Will throw WrongPolicy if the request processing policy is not USE_SERVANT_MANAGER.