_POA_init
public static POA _POA_init(ORB orb)
called from orb to obtain the RootPOA
_addPOAEventListener
public void _addPOAEventListener(EventListener listener)
Everybody who is interested in poa events can use this method
to register an event listener. The poa will pass the register calls
to the right components
_getChildPOA
public POA _getChildPOA(String adapter_name)
throws ParentIsHolding
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
_getQualifiedName
public String _getQualifiedName()
returns the complete poa name
_removePOAEventListener
public void _removePOAEventListener(EventListener listener)
Unregister an event listener. The poa will pass the
unregister calls to the right components
addLocalRequest
public void addLocalRequest()
addPOAListener
protected void addPOAListener(POAListener listener)
changeToActive
protected void changeToActive()
changeToDiscarding
protected void changeToDiscarding()
changeToHolding
protected void changeToHolding()
changeToInactive
protected void changeToInactive(boolean etherealize_objects)
checkDestructionApparent
protected void checkDestructionApparent()
configure
public void configure(Configuration myConfiguration)
throws ConfigurationException
create_POA
public POA create_POA(String adapter_name,
POAManager a_POAManager,
Policy policies)
throws AdapterAlreadyExists,
InvalidPolicy
additionally raises an org.omg.CORBA.BAD_INV_ORDER exception if the poa
goes shutdown and this method will called (not spec.)
create_reference
public Object create_reference(String intf_rep_id)
throws WrongPolicy
The specified repository id, which may be a null string, will become the
type_id of the generated object reference
create_reference_with_id
public Object create_reference_with_id(byte[] oid,
String intf_rep_id)
throws WrongPolicy
The specified repository id, which may be a null string, will become the
type_id of the generated object reference
destroy
public void destroy(boolean etherealize_objects,
boolean wait_for_completion)
- destroy in interface POAOperations
find_POA
public POA find_POA(String adapter_name,
boolean activate_it)
throws AdapterNonExistent
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. Applications
should be prepared to deal with failures from the manual
(create_POA) or automatic (findPOA or unknown_adapter from
AdapterActivator) POA creation. Another possible situation is
that the poa returned goes shutdown but the orb will notice
this situation if he will proceed with request processing.
getNumberOfObjects
public int getNumberOfObjects()
getORB
protected ORB getORB()
getPOAId
public byte[] getPOAId()
getPolicy
public Policy getPolicy(int type)
getReference
protected Object getReference(byte[] oid,
String intf_rep_id,
boolean cache)
getState
protected State getState()
isActive
protected boolean isActive()
isDestructionApparent
protected boolean isDestructionApparent()
isDestructionComplete
protected boolean isDestructionComplete()
isDiscarding
protected boolean isDiscarding()
isHolding
protected boolean isHolding()
isImplicitActivation
protected boolean isImplicitActivation()
isInactive
protected boolean isInactive()
isMultipleId
protected boolean isMultipleId()
isPersistent
public boolean isPersistent()
isRetain
public boolean isRetain()
also called from Delegate
isShutdownInProgress
protected boolean isShutdownInProgress()
isSingleThreadModel
protected boolean isSingleThreadModel()
isSystemId
public boolean isSystemId()
isUniqueId
protected boolean isUniqueId()
isUseDefaultServant
protected boolean isUseDefaultServant()
isUseServantManager
public boolean isUseServantManager()
previouslyGeneratedObjectId
public boolean previouslyGeneratedObjectId(byte[] oid)
previouslyGeneratedObjectKey
public boolean previouslyGeneratedObjectKey(byte[] object_key)
removeLocalRequest
public void removeLocalRequest()
removePOAListener
protected void removePOAListener(POAListener listener)
setMonitor
protected void setMonitor(POAMonitor _monitor)
set_servant_manager
public void set_servant_manager(ServantManager servant_manager)
throws WrongPolicy
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.)
- set_servant_manager in interface POAOperations
the_activator
public 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)
- the_activator in interface POAOperations
unregisterChild
protected void unregisterChild(String name)
notified the completion of a child destruction
useDefaultServant
public boolean useDefaultServant()
called from Delegate
useServantManager
protected boolean useServantManager()