Class 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
    • Field Detail

      • exportedServantsToPOA

        private java.util.Map<Servant,​POA> exportedServantsToPOA
      • poaManagers

        private java.util.concurrent.ConcurrentHashMap<POAManager,​java.lang.Boolean> poaManagers
      • poaManagerId

        private int poaManagerId
      • poaId

        private int poaId
      • orb

        private ORB orb
      • isShuttingDown

        private boolean isShuttingDown
      • mom

        private org.glassfish.gmbal.ManagedObjectManager mom
    • Constructor Detail

      • POAFactory

        public POAFactory()
        All object adapter factories must have a no-arg constructor.
    • Method Detail

      • 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()
      • lookupPOA

        public POA lookupPOA​(Servant servant)
      • registerPOAForServant

        public void registerPOAForServant​(POA poa,
                                          Servant servant)
      • unregisterPOAForServant

        public void unregisterPOAForServant​(POA poa,
                                            Servant servant)
      • init

        public void init​(ORB orb)
        Description copied from interface: ObjectAdapterFactory
        Initialize this object adapter factory instance.
        Specified by:
        init in interface ObjectAdapterFactory
        Parameters:
        orb - to use for initalisation
      • shutdown

        public void shutdown​(boolean waitForCompletion)
        Description copied from interface: ObjectAdapterFactory
        Shutdown all object adapters and other state associated with this factory.
        Specified by:
        shutdown in interface ObjectAdapterFactory
        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()