org.openorb.orb.net
Class ServerManagerImpl.AdapterManagerImpl

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.openorb.orb.net.ServerManagerImpl.AdapterManagerImpl
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.PortableServer.POAManager, org.omg.PortableServer.POAManagerOperations, AdapterManager
Enclosing class:
ServerManagerImpl

public class ServerManagerImpl.AdapterManagerImpl
extends org.omg.CORBA.LocalObject
implements org.omg.PortableServer.POAManager, AdapterManager

This class provides an implementation for the AdapterManager interface.

See Also:
Serialized Form

Method Summary
 void activate()
           
 void deactivate(boolean etherealize, boolean wait_for_completion)
           
 void discard_requests(boolean wait_for_completion)
           
 org.omg.PortableServer.POAManagerPackage.State get_state()
          Return the current state of the state machine.
 void hold_requests(boolean wait_for_completion)
          Put the AdapterManager into the HOLDING state.
 void setMaxManagerHeldRequests(int max)
          Set the maximum number of requests a manager accepts.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setMaxManagerHeldRequests

public void setMaxManagerHeldRequests(int max)
Set the maximum number of requests a manager accepts.

Specified by:
setMaxManagerHeldRequests in interface AdapterManager

get_state

public org.omg.PortableServer.POAManagerPackage.State get_state()
Return the current state of the state machine.

Specified by:
get_state in interface org.omg.PortableServer.POAManagerOperations

deactivate

public void deactivate(boolean etherealize,
                       boolean wait_for_completion)
                throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
Specified by:
deactivate in interface org.omg.PortableServer.POAManagerOperations
Throws:
org.omg.PortableServer.POAManagerPackage.AdapterInactive

discard_requests

public void discard_requests(boolean wait_for_completion)
                      throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
Specified by:
discard_requests in interface org.omg.PortableServer.POAManagerOperations
Throws:
org.omg.PortableServer.POAManagerPackage.AdapterInactive

hold_requests

public void hold_requests(boolean wait_for_completion)
                   throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
Put the AdapterManager into the HOLDING state.

Specified by:
hold_requests in interface org.omg.PortableServer.POAManagerOperations
Parameters:
wait_for_completion - If this flag is true the operation will not return until the POAs associated with this manager have completed any pending requests and also entered the HOLDING state.
Throws:
org.omg.PortableServer.POAManagerPackage.AdapterInactive

activate

public void activate()
              throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
Specified by:
activate in interface org.omg.PortableServer.POAManagerOperations
Throws:
org.omg.PortableServer.POAManagerPackage.AdapterInactive