public class POA extends _POALocalBase implements Configurable
org.omg.PortableServer.POA
Modifier and Type | Field and Description |
---|---|
protected org.omg.BiDirPolicy.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 |
Modifier and Type | Method and Description |
---|---|
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 under 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.
|
void |
activate_object_with_id(byte[] oid,
Servant servant) |
byte[] |
activate_object(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_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
|
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
|
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.
|
ServantManager |
get_servant_manager() |
Servant |
get_servant() |
protected POAMonitor |
getMonitor() |
int |
getNumberOfObjects() |
protected ORB |
getORB() |
byte[] |
getPOAId() |
Policy |
getPolicy(int type) |
protected Object |
getReference(byte[] oid,
String intf_rep_id,
boolean cache) |
protected RequestController |
getRequestController() |
protected State |
getState() |
Object |
id_to_reference(byte[] oid) |
Servant |
id_to_servant(byte[] oid) |
byte[] |
id() |
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) |
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.)
|
void |
set_servant(Servant _defaultServant) |
protected void |
setMonitor(POAMonitor _monitor) |
AdapterActivator |
the_activator()
it is system-dependent whether the root POA initially has an adapter
activator.
|
void |
the_activator(AdapterActivator adapter_activator) |
POA[] |
the_children() |
String |
the_name() |
POA |
the_parent() |
POAManager |
the_POAManager() |
POAManagerFactory |
the_POAManagerFactory() |
protected void |
unregisterChild(String name)
notified the completion of a child destruction
|
boolean |
useDefaultServant()
called from Delegate
|
protected boolean |
useServantManager() |
_ids
_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, toString, 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 ThreadPolicy threadPolicy
protected LifespanPolicy lifespanPolicy
protected IdUniquenessPolicy idUniquenessPolicy
protected IdAssignmentPolicy idAssignmentPolicy
protected ServantRetentionPolicy servantRetentionPolicy
protected RequestProcessingPolicy requestProcessingPolicy
protected ImplicitActivationPolicy implicitActivationPolicy
protected org.omg.BiDirPolicy.BidirectionalPolicy bidirectionalPolicy
protected SSLPolicy sslPolicy
public void configure(Configuration myConfiguration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void _addPOAEventListener(EventListener listener)
public Servant _incarnateServant(byte[] oid, ServantActivator sa) throws ForwardRequest
ForwardRequest
public POA _getChildPOA(String adapter_name) throws ParentIsHolding
ParentIsHolding
public String _getQualifiedName()
public void _invoke(ServerRequest request) throws WrongAdapter
WrongAdapter
public void _removePOAEventListener(EventListener listener)
public byte[] activate_object(Servant servant) throws ServantAlreadyActive, WrongPolicy
activate_object
in interface POAOperations
ServantAlreadyActive
WrongPolicy
public void activate_object_with_id(byte[] oid, Servant servant) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy
activate_object_with_id
in interface POAOperations
ServantAlreadyActive
ObjectAlreadyActive
WrongPolicy
protected void addPOAListener(POAListener listener)
protected void changeToActive()
protected void changeToDiscarding()
protected void changeToHolding()
protected void changeToInactive(boolean etherealize_objects)
public IdAssignmentPolicy create_id_assignment_policy(IdAssignmentPolicyValue value)
create_id_assignment_policy
in interface POAOperations
public IdUniquenessPolicy create_id_uniqueness_policy(IdUniquenessPolicyValue value)
create_id_uniqueness_policy
in interface POAOperations
public ImplicitActivationPolicy create_implicit_activation_policy(ImplicitActivationPolicyValue value)
create_implicit_activation_policy
in interface POAOperations
public LifespanPolicy create_lifespan_policy(LifespanPolicyValue value)
create_lifespan_policy
in interface POAOperations
public POA create_POA(String adapter_name, POAManager a_POAManager, Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy
create_POA
in interface POAOperations
AdapterAlreadyExists
InvalidPolicy
public Object create_reference(String intf_rep_id) throws WrongPolicy
create_reference
in interface POAOperations
WrongPolicy
public Object create_reference_with_id(byte[] oid, String intf_rep_id) throws WrongPolicy
create_reference_with_id
in interface POAOperations
WrongPolicy
public RequestProcessingPolicy create_request_processing_policy(RequestProcessingPolicyValue value)
create_request_processing_policy
in interface POAOperations
public ServantRetentionPolicy create_servant_retention_policy(ServantRetentionPolicyValue value)
create_servant_retention_policy
in interface POAOperations
public ThreadPolicy create_thread_policy(ThreadPolicyValue value)
create_thread_policy
in interface POAOperations
public void deactivate_object(byte[] oid) throws ObjectNotActive, WrongPolicy
deactivate_object
in interface POAOperations
ObjectNotActive
WrongPolicy
public void destroy(boolean etherealize_objects, boolean wait_for_completion)
destroy
in interface POAOperations
public POA find_POA(String adapter_name, boolean activate_it) throws AdapterNonExistent
find_POA
in interface POAOperations
AdapterNonExistent
public Servant get_servant() throws NoServant, WrongPolicy
get_servant
in interface POAOperations
NoServant
WrongPolicy
public ServantManager get_servant_manager() throws WrongPolicy
get_servant_manager
in interface POAOperations
WrongPolicy
protected POAMonitor getMonitor()
protected ORB getORB()
public byte[] getPOAId()
protected RequestController getRequestController()
protected State getState()
public Object id_to_reference(byte[] oid) throws ObjectNotActive, WrongPolicy
id_to_reference
in interface POAOperations
ObjectNotActive
WrongPolicy
public Servant id_to_servant(byte[] oid) throws ObjectNotActive, WrongPolicy
id_to_servant
in interface POAOperations
ObjectNotActive
WrongPolicy
protected boolean isActive()
protected void checkDestructionApparent()
protected static void checkNotLocal(Object obj) throws WrongAdapter
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(Object reference) throws WrongAdapter, WrongPolicy
reference_to_id
in interface POAOperations
WrongAdapter
WrongPolicy
public Servant reference_to_servant(Object reference) throws ObjectNotActive, WrongAdapter, WrongPolicy
reference_to_servant
in interface POAOperations
ObjectNotActive
WrongAdapter
WrongPolicy
protected void removePOAListener(POAListener listener)
public byte[] servant_to_id(Servant servant) throws ServantNotActive, WrongPolicy
servant_to_id
in interface POAOperations
ServantNotActive
WrongPolicy
public Object servant_to_reference(Servant servant) throws ServantNotActive, WrongPolicy
servant_to_reference
in interface POAOperations
ServantNotActive
WrongPolicy
public void set_servant(Servant _defaultServant) throws WrongPolicy
set_servant
in interface POAOperations
WrongPolicy
public void set_servant_manager(ServantManager servant_manager) throws WrongPolicy
set_servant_manager
in interface POAOperations
WrongPolicy
protected void setMonitor(POAMonitor _monitor)
public AdapterActivator the_activator()
the_activator
in interface POAOperations
public void the_activator(AdapterActivator adapter_activator)
the_activator
in interface POAOperations
public String the_name()
the_name
in interface POAOperations
public byte[] id()
id
in interface POAOperations
public POA the_parent()
the_parent
in interface POAOperations
public POA[] the_children()
the_children
in interface POAOperations
public POAManager the_POAManager()
the_POAManager
in interface POAOperations
public POAManagerFactory the_POAManagerFactory()
protected void unregisterChild(String name)
public boolean useDefaultServant()
protected boolean useServantManager()
public Policy getPolicy(int type)
public void addLocalRequest()
public void removeLocalRequest()
public int getNumberOfObjects()
Copyright © 2017 JacORB. All rights reserved.