Class POAManagerImpl

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.impl.oa.poa.POAManagerImpl
All Implemented Interfaces:
Serializable, Object, IDLEntity, POAManager, POAManagerOperations

public class POAManagerImpl extends LocalObject implements POAManager
POAManagerImpl is the implementation of the POAManager interface. Its public methods are activate(), hold_requests(), discard_requests() and deactivate().
See Also:
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getManagerId

      public int getManagerId()
    • getORTState

      public short getORTState()
    • activate

      public void activate() throws AdapterInactive
      activate Spec: pages 3-14 thru 3-18
      Specified by:
      activate in interface POAManagerOperations
      Throws:
      AdapterInactive
    • hold_requests

      public void hold_requests(boolean wait_for_completion) throws AdapterInactive
      hold_requests Spec: pages 3-14 thru 3-18
      Specified by:
      hold_requests in interface POAManagerOperations
      Parameters:
      wait_for_completion - if FALSE, the operation returns immediately after changing state. If TRUE, it waits for all active requests to complete.
      Throws:
      AdapterInactive
    • discard_requests

      public void discard_requests(boolean wait_for_completion) throws AdapterInactive
      discard_requests Spec: pages 3-14 thru 3-18
      Specified by:
      discard_requests in interface POAManagerOperations
      Parameters:
      wait_for_completion - if FALSE, the operation returns immediately after changing state. If TRUE, it waits for all active requests to complete.
      Throws:
      AdapterInactive
    • deactivate

      public void deactivate(boolean etherealize_objects, boolean wait_for_completion) throws AdapterInactive
      deactivate Spec: pages 3-14 thru 3-18 Note: INACTIVE is a permanent state.
      Specified by:
      deactivate in interface POAManagerOperations
      Parameters:
      etherealize_objects - a flag to indicate whether to invoke the etherealize operation of the associated servant manager for all active objects.
      wait_for_completion - if FALSE, the operation returns immediately after changing state. If TRUE, it waits for all active requests to complete.
      Throws:
      AdapterInactive
    • get_state

      public State get_state()
      Added according to the spec CORBA V2.3; this returns the state of the POAManager
      Specified by:
      get_state in interface POAManagerOperations
    • implicitActivation

      public void implicitActivation()
      Activate the POAManager if no explicit state change has ever been previously invoked.