|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object_POALocalBase
org.jacorb.poa.POA
public class POA
The main POA class, an implementation of
org.omg.PortableServer.POA
Field Summary | |
---|---|
protected BidirectionalPolicy |
bidirectionalPolicy
|
protected org.omg.PortableServer.IdAssignmentPolicy |
idAssignmentPolicy
|
protected org.omg.PortableServer.IdUniquenessPolicy |
idUniquenessPolicy
|
protected org.omg.PortableServer.ImplicitActivationPolicy |
implicitActivationPolicy
|
protected org.omg.PortableServer.LifespanPolicy |
lifespanPolicy
|
protected org.omg.PortableServer.RequestProcessingPolicy |
requestProcessingPolicy
|
protected org.omg.PortableServer.ServantRetentionPolicy |
servantRetentionPolicy
|
protected SSLPolicy |
sslPolicy
|
protected org.omg.PortableServer.ThreadPolicy |
threadPolicy
|
Method Summary | |
---|---|
void |
_addPOAEventListener(EventListener listener)
Everybody who is interested in poa events can use this method to register an event listener. |
POA |
_getChildPOA(java.lang.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 |
java.lang.String |
_getQualifiedName()
returns the complete poa name |
org.omg.PortableServer.Servant |
_incarnateServant(byte[] oid,
org.omg.PortableServer.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. |
void |
activate_object_with_id(byte[] oid,
org.omg.PortableServer.Servant servant)
|
byte[] |
activate_object(org.omg.PortableServer.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(org.omg.CORBA.Object obj)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration myConfiguration)
|
org.omg.PortableServer.IdAssignmentPolicy |
create_id_assignment_policy(org.omg.PortableServer.IdAssignmentPolicyValue value)
|
org.omg.PortableServer.IdUniquenessPolicy |
create_id_uniqueness_policy(org.omg.PortableServer.IdUniquenessPolicyValue value)
|
org.omg.PortableServer.ImplicitActivationPolicy |
create_implicit_activation_policy(org.omg.PortableServer.ImplicitActivationPolicyValue value)
|
org.omg.PortableServer.LifespanPolicy |
create_lifespan_policy(org.omg.PortableServer.LifespanPolicyValue value)
|
org.omg.PortableServer.POA |
create_POA(java.lang.String adapter_name,
org.omg.PortableServer.POAManager a_POAManager,
org.omg.CORBA.Policy[] policies)
additionally raises an org.omg.CORBA.BAD_INV_ORDER exception if the poa goes shutdown and this method will called (not spec.) |
org.omg.CORBA.Object |
create_reference_with_id(byte[] oid,
java.lang.String intf_rep_id)
The specified repository id, which may be a null string, will become the type_id of the generated object reference |
org.omg.CORBA.Object |
create_reference(java.lang.String intf_rep_id)
The specified repository id, which may be a null string, will become the type_id of the generated object reference |
org.omg.PortableServer.RequestProcessingPolicy |
create_request_processing_policy(org.omg.PortableServer.RequestProcessingPolicyValue value)
|
org.omg.PortableServer.ServantRetentionPolicy |
create_servant_retention_policy(org.omg.PortableServer.ServantRetentionPolicyValue value)
|
org.omg.PortableServer.ThreadPolicy |
create_thread_policy(org.omg.PortableServer.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)
|
org.omg.PortableServer.POA |
find_POA(java.lang.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. |
org.omg.PortableServer.ServantManager |
get_servant_manager()
|
org.omg.PortableServer.Servant |
get_servant()
|
protected POAMonitor |
getMonitor()
|
int |
getNumberOfObjects()
|
protected ORB |
getORB()
|
byte[] |
getPOAId()
|
org.omg.CORBA.Policy |
getPolicy(int type)
|
protected org.omg.CORBA.Object |
getReference(byte[] oid,
java.lang.String intf_rep_id,
boolean cache)
|
protected RequestController |
getRequestController()
|
protected org.omg.PortableServer.POAManagerPackage.State |
getState()
|
org.omg.CORBA.Object |
id_to_reference(byte[] oid)
|
org.omg.PortableServer.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(org.omg.CORBA.Object reference)
|
org.omg.PortableServer.Servant |
reference_to_servant(org.omg.CORBA.Object reference)
|
void |
removeLocalRequest()
|
protected void |
removePOAListener(POAListener listener)
|
byte[] |
servant_to_id(org.omg.PortableServer.Servant servant)
|
org.omg.CORBA.Object |
servant_to_reference(org.omg.PortableServer.Servant servant)
|
void |
set_servant_manager(org.omg.PortableServer.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.) |
void |
set_servant(org.omg.PortableServer.Servant _defaultServant)
|
protected void |
setMonitor(POAMonitor _monitor)
|
org.omg.PortableServer.AdapterActivator |
the_activator()
it is system-dependent whether the root POA initially has an adapter activator. |
void |
the_activator(org.omg.PortableServer.AdapterActivator adapter_activator)
|
org.omg.PortableServer.POA[] |
the_children()
|
java.lang.String |
the_name()
|
org.omg.PortableServer.POA |
the_parent()
|
org.omg.PortableServer.POAManager |
the_POAManager()
|
protected void |
unregisterChild(java.lang.String name)
notified the completion of a child destruction |
boolean |
useDefaultServant()
called from Delegate |
protected boolean |
useServantManager()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.omg.PortableServer.ThreadPolicy threadPolicy
protected org.omg.PortableServer.LifespanPolicy lifespanPolicy
protected org.omg.PortableServer.IdUniquenessPolicy idUniquenessPolicy
protected org.omg.PortableServer.IdAssignmentPolicy idAssignmentPolicy
protected org.omg.PortableServer.ServantRetentionPolicy servantRetentionPolicy
protected org.omg.PortableServer.RequestProcessingPolicy requestProcessingPolicy
protected org.omg.PortableServer.ImplicitActivationPolicy implicitActivationPolicy
protected BidirectionalPolicy bidirectionalPolicy
protected SSLPolicy sslPolicy
Method Detail |
---|
public void configure(org.apache.avalon.framework.configuration.Configuration myConfiguration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void _addPOAEventListener(EventListener listener)
public org.omg.PortableServer.Servant _incarnateServant(byte[] oid, org.omg.PortableServer.ServantActivator sa) throws org.omg.PortableServer.ForwardRequest
org.omg.PortableServer.ForwardRequest
public POA _getChildPOA(java.lang.String adapter_name) throws ParentIsHolding
ParentIsHolding
public java.lang.String _getQualifiedName()
public void _invoke(ServerRequest request) throws org.omg.PortableServer.POAPackage.WrongAdapter
org.omg.PortableServer.POAPackage.WrongAdapter
public static POA _POA_init(ORB orb)
public void _removePOAEventListener(EventListener listener)
public byte[] activate_object(org.omg.PortableServer.Servant servant) throws org.omg.PortableServer.POAPackage.ServantAlreadyActive, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantAlreadyActive
org.omg.PortableServer.POAPackage.WrongPolicy
public void activate_object_with_id(byte[] oid, org.omg.PortableServer.Servant servant) throws org.omg.PortableServer.POAPackage.ServantAlreadyActive, org.omg.PortableServer.POAPackage.ObjectAlreadyActive, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantAlreadyActive
org.omg.PortableServer.POAPackage.ObjectAlreadyActive
org.omg.PortableServer.POAPackage.WrongPolicy
protected void addPOAListener(POAListener listener)
protected void changeToActive()
protected void changeToDiscarding()
protected void changeToHolding()
protected void changeToInactive(boolean etherealize_objects)
public org.omg.PortableServer.IdAssignmentPolicy create_id_assignment_policy(org.omg.PortableServer.IdAssignmentPolicyValue value)
public org.omg.PortableServer.IdUniquenessPolicy create_id_uniqueness_policy(org.omg.PortableServer.IdUniquenessPolicyValue value)
public org.omg.PortableServer.ImplicitActivationPolicy create_implicit_activation_policy(org.omg.PortableServer.ImplicitActivationPolicyValue value)
public org.omg.PortableServer.LifespanPolicy create_lifespan_policy(org.omg.PortableServer.LifespanPolicyValue value)
public org.omg.PortableServer.POA create_POA(java.lang.String adapter_name, org.omg.PortableServer.POAManager a_POAManager, org.omg.CORBA.Policy[] policies) throws org.omg.PortableServer.POAPackage.AdapterAlreadyExists, org.omg.PortableServer.POAPackage.InvalidPolicy
org.omg.PortableServer.POAPackage.AdapterAlreadyExists
org.omg.PortableServer.POAPackage.InvalidPolicy
public org.omg.CORBA.Object create_reference(java.lang.String intf_rep_id) throws org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.WrongPolicy
public org.omg.CORBA.Object create_reference_with_id(byte[] oid, java.lang.String intf_rep_id) throws org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.WrongPolicy
public org.omg.PortableServer.RequestProcessingPolicy create_request_processing_policy(org.omg.PortableServer.RequestProcessingPolicyValue value)
public org.omg.PortableServer.ServantRetentionPolicy create_servant_retention_policy(org.omg.PortableServer.ServantRetentionPolicyValue value)
public org.omg.PortableServer.ThreadPolicy create_thread_policy(org.omg.PortableServer.ThreadPolicyValue value)
public void deactivate_object(byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ObjectNotActive
org.omg.PortableServer.POAPackage.WrongPolicy
public void destroy(boolean etherealize_objects, boolean wait_for_completion)
public org.omg.PortableServer.POA find_POA(java.lang.String adapter_name, boolean activate_it) throws org.omg.PortableServer.POAPackage.AdapterNonExistent
org.omg.PortableServer.POAPackage.AdapterNonExistent
public org.omg.PortableServer.Servant get_servant() throws org.omg.PortableServer.POAPackage.NoServant, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.NoServant
org.omg.PortableServer.POAPackage.WrongPolicy
public org.omg.PortableServer.ServantManager get_servant_manager() throws org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.WrongPolicy
protected POAMonitor getMonitor()
protected ORB getORB()
public byte[] getPOAId()
protected org.omg.CORBA.Object getReference(byte[] oid, java.lang.String intf_rep_id, boolean cache)
protected RequestController getRequestController()
protected org.omg.PortableServer.POAManagerPackage.State getState()
public org.omg.CORBA.Object id_to_reference(byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ObjectNotActive
org.omg.PortableServer.POAPackage.WrongPolicy
public org.omg.PortableServer.Servant id_to_servant(byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ObjectNotActive
org.omg.PortableServer.POAPackage.WrongPolicy
protected boolean isActive()
protected void checkDestructionApparent()
protected static void checkNotLocal(org.omg.CORBA.Object obj) throws org.omg.PortableServer.POAPackage.WrongAdapter
org.omg.PortableServer.POAPackage.WrongAdapter
protected boolean isDestructionApparent()
public boolean isDestructionComplete()
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.
boolean
value.protected boolean isDiscarding()
protected boolean isHolding()
protected boolean isImplicitActivation()
protected boolean isInactive()
protected boolean isMultipleId()
public boolean isPersistent()
public boolean isRetain()
protected boolean isShutdownInProgress()
protected boolean isSingleThreadModel()
public boolean isSystemId()
protected boolean isUniqueId()
protected boolean isUseDefaultServant()
public boolean isUseServantManager()
public boolean isSSLRequired()
public boolean previouslyGeneratedObjectId(byte[] oid)
public boolean previouslyGeneratedObjectKey(byte[] object_key)
public byte[] reference_to_id(org.omg.CORBA.Object reference) throws org.omg.PortableServer.POAPackage.WrongAdapter, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.WrongAdapter
org.omg.PortableServer.POAPackage.WrongPolicy
public org.omg.PortableServer.Servant reference_to_servant(org.omg.CORBA.Object reference) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongAdapter, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ObjectNotActive
org.omg.PortableServer.POAPackage.WrongAdapter
org.omg.PortableServer.POAPackage.WrongPolicy
protected void removePOAListener(POAListener listener)
public byte[] servant_to_id(org.omg.PortableServer.Servant servant) throws org.omg.PortableServer.POAPackage.ServantNotActive, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantNotActive
org.omg.PortableServer.POAPackage.WrongPolicy
public org.omg.CORBA.Object servant_to_reference(org.omg.PortableServer.Servant servant) throws org.omg.PortableServer.POAPackage.ServantNotActive, org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantNotActive
org.omg.PortableServer.POAPackage.WrongPolicy
public void set_servant(org.omg.PortableServer.Servant _defaultServant) throws org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.WrongPolicy
public void set_servant_manager(org.omg.PortableServer.ServantManager servant_manager) throws org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.WrongPolicy
protected void setMonitor(POAMonitor _monitor)
public org.omg.PortableServer.AdapterActivator the_activator()
public void the_activator(org.omg.PortableServer.AdapterActivator adapter_activator)
public java.lang.String the_name()
public org.omg.PortableServer.POA the_parent()
public org.omg.PortableServer.POA[] the_children()
public org.omg.PortableServer.POAManager the_POAManager()
protected void unregisterChild(java.lang.String name)
public boolean useDefaultServant()
protected boolean useServantManager()
public org.omg.CORBA.Policy getPolicy(int type)
public void addLocalRequest()
public void removeLocalRequest()
public int getNumberOfObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |