org.jacorb.poa
public class POA extends _POALocalBase implements Configurable
org.omg.PortableServer.POA
Version: $Id: POA.java,v 1.65 2006/07/13 08:46:37 nick.cross Exp $
| Field Summary | |
|---|---|
| protected BidirectionalPolicy | bidirectionalPolicy |
| protected IdAssignmentPolicy | idAssignmentPolicy |
| protected IdUniquenessPolicy | idUniquenessPolicy |
| protected ImplicitActivationPolicy | implicitActivationPolicy |
| protected LifespanPolicy | lifespanPolicy |
| protected RequestProcessingPolicy | requestProcessingPolicy |
| protected ServantRetentionPolicy | servantRetentionPolicy |
| protected SSLPolicy | sslPolicy |
| protected ThreadPolicy | threadPolicy |
| Method Summary | |
|---|---|
| byte[] | activate_object(Servant servant) |
| void | activate_object_with_id(byte[] oid, Servant servant) |
| void | addLocalRequest() |
| protected void | addPOAListener(POAListener listener) |
| protected void | changeToActive() |
| protected void | changeToDiscarding() |
| protected void | changeToHolding() |
| protected void | changeToInactive(boolean etherealize_objects) |
| protected void | checkDestructionApparent() |
| protected static void | checkNotLocal(Object obj) |
| void | configure(Configuration myConfiguration) |
| IdAssignmentPolicy | create_id_assignment_policy(IdAssignmentPolicyValue value) |
| IdUniquenessPolicy | create_id_uniqueness_policy(IdUniquenessPolicyValue value) |
| ImplicitActivationPolicy | create_implicit_activation_policy(ImplicitActivationPolicyValue value) |
| LifespanPolicy | create_lifespan_policy(LifespanPolicyValue value) |
| POA | create_POA(String adapter_name, POAManager a_POAManager, Policy[] policies)
additionally raises an org.omg.CORBA.BAD_INV_ORDER exception if the poa
goes shutdown and this method will called (not spec.) |
| Object | create_reference(String intf_rep_id)
The specified repository id, which may be a null string, will become the
type_id of the generated object reference |
| Object | create_reference_with_id(byte[] oid, String intf_rep_id)
The specified repository id, which may be a null string, will become the
type_id of the generated object reference |
| RequestProcessingPolicy | create_request_processing_policy(RequestProcessingPolicyValue value) |
| ServantRetentionPolicy | create_servant_retention_policy(ServantRetentionPolicyValue value) |
| ThreadPolicy | create_thread_policy(ThreadPolicyValue value) |
| void | deactivate_object(byte[] oid)
The operation does not wait for requests or etherealization to complete
and always returns immediately (after deactivating the oid?) |
| void | destroy(boolean etherealize_objects, boolean wait_for_completion) |
| POA | find_POA(String adapter_name, boolean activate_it)
If the intended child poa is not found and activate_it is TRUE,
it is possible for another thread to create the same poa with
create_POA at the same time in a race condition. |
| protected POAMonitor | getMonitor() |
| int | getNumberOfObjects() |
| protected ORB | getORB() |
| Policy | getPolicy(int type) |
| byte[] | getPOAId() |
| protected Object | getReference(byte[] oid, String intf_rep_id, boolean cache) |
| protected RequestController | getRequestController() |
| protected State | getState() |
| Servant | get_servant() |
| ServantManager | get_servant_manager() |
| Object | id_to_reference(byte[] oid) |
| Servant | id_to_servant(byte[] oid) |
| protected boolean | isActive() |
| protected boolean | isDestructionApparent() |
| boolean | isDestructionComplete()isDestructionComplete returns whether the POA has been
completely destroyed (including finishing outstanding requests). |
| protected boolean | isDiscarding() |
| protected boolean | isHolding() |
| protected boolean | isImplicitActivation() |
| protected boolean | isInactive() |
| protected boolean | isMultipleId() |
| boolean | isPersistent() |
| boolean | isRetain()
also called from Delegate |
| protected boolean | isShutdownInProgress() |
| protected boolean | isSingleThreadModel() |
| boolean | isSSLRequired() |
| boolean | isSystemId() |
| protected boolean | isUniqueId() |
| protected boolean | isUseDefaultServant() |
| boolean | isUseServantManager() |
| boolean | previouslyGeneratedObjectId(byte[] oid) |
| boolean | previouslyGeneratedObjectKey(byte[] object_key) |
| byte[] | reference_to_id(Object reference) |
| Servant | reference_to_servant(Object reference) |
| void | removeLocalRequest() |
| protected void | removePOAListener(POAListener listener) |
| byte[] | servant_to_id(Servant servant) |
| Object | servant_to_reference(Servant servant) |
| protected void | setMonitor(POAMonitor _monitor) |
| void | set_servant(Servant _defaultServant) |
| void | set_servant_manager(ServantManager servant_manager)
this method makes a additional check: if the POA has the RETAIN
policy and _servantManager is not a instance of
ServantActivator or if the POA has the NON_RETAIN policy and
_servantManager is not a instance of ServantLocator this method
raises also the WrongPolicy Exception (not spec.) |
| AdapterActivator | the_activator()
it is system-dependent whether the root POA initially has an adapter
activator. a newly created POA has not an adapter activator (null) |
| void | the_activator(AdapterActivator adapter_activator) |
| POA[] | the_children() |
| String | the_name() |
| POA | the_parent() |
| POAManager | the_POAManager() |
| protected void | unregisterChild(String name)
notified the completion of a child destruction |
| boolean | useDefaultServant()
called from Delegate |
| protected boolean | useServantManager() |
| void | _addPOAEventListener(EventListener listener)
Everybody who is interested in poa events can use this method
to register an event listener. |
| POA | _getChildPOA(String adapter_name)
called from orb, returns a registered child poa,
if no child poa exists a adapter activator will used
to create a new poa unter this name |
| String | _getQualifiedName()
returns the complete poa name |
| Servant | _incarnateServant(byte[] oid, ServantActivator sa)
Called from Delegate. |
| void | _invoke(ServerRequest request)
called from orb for handing over a request |
| static POA | _POA_init(ORB orb)
called from orb to obtain the RootPOA |
| void | _removePOAEventListener(EventListener listener)
Unregister an event listener. |
isDestructionComplete returns whether the POA has been
completely destroyed (including finishing outstanding requests). This
is public not protected as it is called from orb/Delegate.
Returns: a boolean value.