public class POAImpl extends ObjectAdapterBase implements POA
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<Object> |
isDestroying |
Modifier and Type | Method and Description |
---|---|
void |
activate_object_with_id(byte[] id,
Servant servant)
activate_object_with_id Section 3.3.8.15 |
byte[] |
activate_object(Servant servant)
activate_object Section 3.3.8.14 |
IdAssignmentPolicy |
create_id_assignment_policy(IdAssignmentPolicyValue value)
create_id_assignment_policy Section 3.3.8.5 |
IdUniquenessPolicy |
create_id_uniqueness_policy(IdUniquenessPolicyValue value)
create_id_uniqueness_policy Section 3.3.8.5 |
ImplicitActivationPolicy |
create_implicit_activation_policy(ImplicitActivationPolicyValue value)
create_implicit_activation_policy Section 3.3.8.5 |
LifespanPolicy |
create_lifespan_policy(LifespanPolicyValue value)
create_lifespan_policy Section 3.3.8.5 |
POA |
create_POA(String name,
POAManager theManager,
Policy[] policies)
create_POA Section 3.3.8.2 |
Object |
create_reference_with_id(byte[] oid,
String repId)
create_reference_with_id 3.3.8.18 |
Object |
create_reference(String repId)
create_reference 3.3.8.17 |
RequestProcessingPolicy |
create_request_processing_policy(RequestProcessingPolicyValue value)
create_request_processing_policy Section 3.3.8.5 |
ServantRetentionPolicy |
create_servant_retention_policy(ServantRetentionPolicyValue value)
create_servant_retention_policy Section 3.3.8.5 |
ThreadPolicy |
create_thread_policy(ThreadPolicyValue value)
create_thread_policy Section 3.3.8.5 |
void |
deactivate_object(byte[] id)
deactivate_object 3.3.8.16 |
void |
destroy(boolean etherealize,
boolean wait_for_completion)
destroy Section 3.3.8.4 |
void |
enter()
enter must be called before each request is invoked on a servant.
|
void |
exit()
exit must be called after each request has been completed.
|
POA |
find_POA(String name,
boolean activate)
find_POA Section 3.3.8.3 |
ServantManager |
get_servant_manager()
get_servant_manager Section 3.3.8.10 |
Servant |
get_servant()
get_servant Section 3.3.8.12 |
Policy |
getEffectivePolicy(int type) |
String[] |
getInterfaces(Object servant,
byte[] objectId)
Return the most derived interface for the given servant and objectId.
|
void |
getInvocationServant(OAInvocationInfo info)
Get the servant for the request given by the parameters.
|
Object |
getLocalServant(byte[] objectId)
Get the servant corresponding to the given objectId, if this is supported.
|
int |
getManagerId()
Return the ID of the AdapterManager for this object adapter.
|
protected ObjectCopierFactory |
getObjectCopierFactory() |
short |
getState()
Return the current state of this object adapter (see org.omg.PortableInterceptors for states.
|
Object |
id_to_reference(byte[] id)
id_to_reference 3.3.8.24 |
Servant |
id_to_servant(byte[] id)
id_to_servant 3.3.8.23 |
byte[] |
id()
id 11.3.8.26 in ptc/00-08-06 |
byte[] |
reference_to_id(Object reference)
reference_to_id 3.3.8.22 |
Servant |
reference_to_servant(Object reference)
reference_to_servant 3.3.8.21 |
void |
returnServant()
Called from the subcontract to let this POA cleanup after an invocation.
|
byte[] |
servant_to_id(Servant servant)
servant_to_id 3.3.8.19 |
Object |
servant_to_reference(Servant servant)
servant_to_reference 3.3.8.20 |
void |
set_servant_manager(ServantManager servantManager)
set_servant_manager Section 3.3.8.10 |
void |
set_servant(Servant defaultServant)
set_servant Section 3.3.8.13 |
AdapterActivator |
the_activator()
the_activator Section 3.3.8.9 |
void |
the_activator(AdapterActivator activator)
the_activator Section 3.3.8.9 |
POA[] |
the_children()
the_children |
String |
the_name()
the_name Section 3.3.8.6 |
POA |
the_parent()
the_parent Section 3.3.8.7 |
POAManager |
the_POAManager()
the_POAManager Section 3.3.8.8 |
String |
toString() |
getAdapterId, getAdapterTemplate, getCurrentFactory, getIORTemplate, getORB, initializeTemplate, invocationWrapper, iorWrapper, lifecycleWrapper, makeInvocationInfo, makeObject, omgInvocationWrapper, omgLifecycleWrapper, setCurrentFactory
_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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
protected ThreadLocal<Object> isDestroying
public POA create_POA(String name, POAManager theManager, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy
create_POA
Section 3.3.8.2create_POA
in interface POAOperations
AdapterAlreadyExists
InvalidPolicy
public POA find_POA(String name, boolean activate) throws AdapterNonExistent
find_POA
Section 3.3.8.3find_POA
in interface POAOperations
AdapterNonExistent
public void destroy(boolean etherealize, boolean wait_for_completion)
destroy
Section 3.3.8.4destroy
in interface POAOperations
public ThreadPolicy create_thread_policy(ThreadPolicyValue value)
create_thread_policy
Section 3.3.8.5create_thread_policy
in interface POAOperations
public LifespanPolicy create_lifespan_policy(LifespanPolicyValue value)
create_lifespan_policy
Section 3.3.8.5create_lifespan_policy
in interface POAOperations
public IdUniquenessPolicy create_id_uniqueness_policy(IdUniquenessPolicyValue value)
create_id_uniqueness_policy
Section 3.3.8.5create_id_uniqueness_policy
in interface POAOperations
public IdAssignmentPolicy create_id_assignment_policy(IdAssignmentPolicyValue value)
create_id_assignment_policy
Section 3.3.8.5create_id_assignment_policy
in interface POAOperations
public ImplicitActivationPolicy create_implicit_activation_policy(ImplicitActivationPolicyValue value)
create_implicit_activation_policy
Section 3.3.8.5create_implicit_activation_policy
in interface POAOperations
public ServantRetentionPolicy create_servant_retention_policy(ServantRetentionPolicyValue value)
create_servant_retention_policy
Section 3.3.8.5create_servant_retention_policy
in interface POAOperations
public RequestProcessingPolicy create_request_processing_policy(RequestProcessingPolicyValue value)
create_request_processing_policy
Section 3.3.8.5create_request_processing_policy
in interface POAOperations
public String the_name()
the_name
Section 3.3.8.6the_name
in interface POAOperations
public POA the_parent()
the_parent
Section 3.3.8.7the_parent
in interface POAOperations
public POA[] the_children()
the_children
the_children
in interface POAOperations
public POAManager the_POAManager()
the_POAManager
Section 3.3.8.8the_POAManager
in interface POAOperations
public AdapterActivator the_activator()
the_activator
Section 3.3.8.9the_activator
in interface POAOperations
public void the_activator(AdapterActivator activator)
the_activator
Section 3.3.8.9the_activator
in interface POAOperations
public ServantManager get_servant_manager() throws WrongPolicy
get_servant_manager
Section 3.3.8.10get_servant_manager
in interface POAOperations
WrongPolicy
public void set_servant_manager(ServantManager servantManager) throws WrongPolicy
set_servant_manager
Section 3.3.8.10set_servant_manager
in interface POAOperations
WrongPolicy
public Servant get_servant() throws NoServant, WrongPolicy
get_servant
Section 3.3.8.12get_servant
in interface POAOperations
NoServant
WrongPolicy
public void set_servant(Servant defaultServant) throws WrongPolicy
set_servant
Section 3.3.8.13set_servant
in interface POAOperations
WrongPolicy
public byte[] activate_object(Servant servant) throws ServantAlreadyActive, WrongPolicy
activate_object
Section 3.3.8.14activate_object
in interface POAOperations
ServantAlreadyActive
WrongPolicy
public void activate_object_with_id(byte[] id, Servant servant) throws ObjectAlreadyActive, ServantAlreadyActive, WrongPolicy
activate_object_with_id
Section 3.3.8.15activate_object_with_id
in interface POAOperations
ObjectAlreadyActive
ServantAlreadyActive
WrongPolicy
public void deactivate_object(byte[] id) throws ObjectNotActive, WrongPolicy
deactivate_object
3.3.8.16deactivate_object
in interface POAOperations
ObjectNotActive
WrongPolicy
public Object create_reference(String repId) throws WrongPolicy
create_reference
3.3.8.17create_reference
in interface POAOperations
WrongPolicy
public Object create_reference_with_id(byte[] oid, String repId)
create_reference_with_id
3.3.8.18create_reference_with_id
in interface POAOperations
public byte[] servant_to_id(Servant servant) throws ServantNotActive, WrongPolicy
servant_to_id
3.3.8.19servant_to_id
in interface POAOperations
ServantNotActive
WrongPolicy
public Object servant_to_reference(Servant servant) throws ServantNotActive, WrongPolicy
servant_to_reference
3.3.8.20servant_to_reference
in interface POAOperations
ServantNotActive
WrongPolicy
public Servant reference_to_servant(Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter
reference_to_servant
3.3.8.21reference_to_servant
in interface POAOperations
ObjectNotActive
WrongPolicy
WrongAdapter
public byte[] reference_to_id(Object reference) throws WrongAdapter, WrongPolicy
reference_to_id
3.3.8.22reference_to_id
in interface POAOperations
WrongAdapter
WrongPolicy
public Servant id_to_servant(byte[] id) throws ObjectNotActive, WrongPolicy
id_to_servant
3.3.8.23id_to_servant
in interface POAOperations
ObjectNotActive
WrongPolicy
public Object id_to_reference(byte[] id) throws ObjectNotActive, WrongPolicy
id_to_reference
3.3.8.24id_to_reference
in interface POAOperations
ObjectNotActive
WrongPolicy
public byte[] id()
id
11.3.8.26 in ptc/00-08-06id
in interface POAOperations
public Policy getEffectivePolicy(int type)
getEffectivePolicy
in interface ObjectAdapter
getEffectivePolicy
in class ObjectAdapterBase
public int getManagerId()
ObjectAdapter
getManagerId
in interface ObjectAdapter
getManagerId
in class ObjectAdapterBase
public short getState()
ObjectAdapter
getState
in interface ObjectAdapter
getState
in class ObjectAdapterBase
public String[] getInterfaces(Object servant, byte[] objectId)
ObjectAdapter
getInterfaces
in interface ObjectAdapter
getInterfaces
in class ObjectAdapterBase
protected ObjectCopierFactory getObjectCopierFactory()
getObjectCopierFactory
in class ObjectAdapterBase
public void enter() throws OADestroyed
ObjectAdapter
enter
in interface ObjectAdapter
enter
in class ObjectAdapterBase
OADestroyed
- is thrown when an OA has been destroyed, which requires a retry in the case where an
AdapterActivator is present.public void exit()
ObjectAdapter
exit
in interface ObjectAdapter
exit
in class ObjectAdapterBase
public void getInvocationServant(OAInvocationInfo info)
ObjectAdapter
getInvocationServant
in interface ObjectAdapter
getInvocationServant
in class ObjectAdapterBase
info
- is the InvocationInfo object for the object referencepublic Object getLocalServant(byte[] objectId)
ObjectAdapter
getLocalServant
in interface ObjectAdapter
getLocalServant
in class ObjectAdapterBase
public void returnServant()
returnServant
in interface ObjectAdapter
returnServant
in class ObjectAdapterBase
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.