Package com.sun.corba.ee.impl.oa.poa
Class POAFactory
- java.lang.Object
-
- com.sun.corba.ee.impl.oa.poa.POAFactory
-
- All Implemented Interfaces:
ObjectAdapterFactory
@ManagedObject @Description("The factory for all POAs and POAManagers") @AMXMetadata(isSingleton=true) public class POAFactory extends java.lang.Object implements ObjectAdapterFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPOAFactory.ServantPOAPair
-
Field Summary
Fields Modifier and Type Field Description private DelegateImpldelegateImplprivate java.util.Map<Servant,POA>exportedServantsToPOAprivate booleanisShuttingDownprivate org.glassfish.gmbal.ManagedObjectManagermomprivate static OMGSystemExceptionomgWrapperprivate ORBorbprivate intpoaIdprivate intpoaManagerIdprivate java.util.concurrent.ConcurrentHashMap<POAManager,java.lang.Boolean>poaManagersprivate POAImplrootPOAprivate static POASystemExceptionwrapper
-
Constructor Summary
Constructors Constructor Description POAFactory()All object adapter factories must have a no-arg constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPoaManager(POAManager manager)ObjectAdapterfind(ObjectAdapterId oaid)Find the ObjectAdapter instance that corresponds to the given ObjectAdapterId.DelegategetDelegateImpl()private POAImplgetDisplayRootPOA()private java.util.List<POAFactory.ServantPOAPair>getExportedServants()ORBgetORB()private intgetPOAId()private intgetPOAManagerId()private java.util.Set<POAManager>getPOAManagers()POAgetRootPOA()POASystemExceptiongetWrapper()voidinit(ORB orb)Initialize this object adapter factory instance.POAlookupPOA(Servant servant)intnewPOAId()intnewPOAManagerId()voidregisterPOAForServant(POA poa, Servant servant)voidregisterRootPOA()voidremovePoaManager(POAManager manager)voidshutdown(boolean waitForCompletion)Shutdown all object adapters and other state associated with this factory.voidunregisterPOAForServant(POA poa, Servant servant)
-
-
-
Field Detail
-
wrapper
private static final POASystemException wrapper
-
omgWrapper
private static final OMGSystemException omgWrapper
-
poaManagers
private java.util.concurrent.ConcurrentHashMap<POAManager,java.lang.Boolean> poaManagers
-
poaManagerId
private int poaManagerId
-
poaId
private int poaId
-
rootPOA
private POAImpl rootPOA
-
delegateImpl
private DelegateImpl delegateImpl
-
orb
private ORB orb
-
isShuttingDown
private boolean isShuttingDown
-
mom
private org.glassfish.gmbal.ManagedObjectManager mom
-
-
Method Detail
-
getWrapper
public POASystemException getWrapper()
-
getExportedServants
@ManagedAttribute @Description("The servants managed by a particular POA") private java.util.List<POAFactory.ServantPOAPair> getExportedServants()
-
getPOAManagers
@ManagedAttribute @Description("The POAManagers") private java.util.Set<POAManager> getPOAManagers()
-
getPOAManagerId
@ManagedAttribute @Description("The last allocated POAManager id") private int getPOAManagerId()
-
getPOAId
@ManagedAttribute @Description("The last allocated POAManager id") private int getPOAId()
-
getDisplayRootPOA
@ManagedAttribute(id="RootPOA") @Description("The root POA") private POAImpl getDisplayRootPOA()
-
init
public void init(ORB orb)
Description copied from interface:ObjectAdapterFactoryInitialize this object adapter factory instance.- Specified by:
initin interfaceObjectAdapterFactory- Parameters:
orb- to use for initalisation
-
find
public ObjectAdapter find(ObjectAdapterId oaid)
Description copied from interface:ObjectAdapterFactoryFind the ObjectAdapter instance that corresponds to the given ObjectAdapterId.- Specified by:
findin interfaceObjectAdapterFactory- Parameters:
oaid- id to look up- Returns:
- found ObjectAdapter
-
shutdown
public void shutdown(boolean waitForCompletion)
Description copied from interface:ObjectAdapterFactoryShutdown all object adapters and other state associated with this factory.- Specified by:
shutdownin interfaceObjectAdapterFactory- Parameters:
waitForCompletion- if true then wait for all ongoing requests to finish before shutting down, if false then shutdown immediatly.
-
removePoaManager
public void removePoaManager(POAManager manager)
-
addPoaManager
public void addPoaManager(POAManager manager)
-
newPOAManagerId
public int newPOAManagerId()
-
registerRootPOA
public void registerRootPOA()
-
getRootPOA
public POA getRootPOA()
-
getDelegateImpl
public Delegate getDelegateImpl()
-
newPOAId
public int newPOAId()
-
getORB
public ORB getORB()
- Specified by:
getORBin interfaceObjectAdapterFactory
-
-