Java Doc for POA.java in  » Collaboration » JacORB » org » jacorb » poa » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » JacORB » org.jacorb.poa 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jacorb.poa.POA

POA
public class POA extends _POALocalBase implements Configurable(Code)
The main POA class, an implementation of org.omg.PortableServer.POA
author:
   Reimo Tiedemann, FU Berlin
version:
   $Id: POA.java,v 1.65 2006/07/13 08:46:37 nick.cross Exp $


Field Summary
protected  BidirectionalPolicybidirectionalPolicy
    
 ServantdefaultServant
    
protected  IdAssignmentPolicyidAssignmentPolicy
    
protected  IdUniquenessPolicyidUniquenessPolicy
    
protected  ImplicitActivationPolicyimplicitActivationPolicy
    
protected  LifespanPolicylifespanPolicy
    
protected  RequestProcessingPolicyrequestProcessingPolicy
    
 ServantManagerservantManager
    
protected  ServantRetentionPolicyservantRetentionPolicy
    
protected  SSLPolicysslPolicy
    
protected  ThreadPolicythreadPolicy
    


Method Summary
public static  POA_POA_init(org.jacorb.orb.ORB orb)
    
public  void_addPOAEventListener(EventListener listener)
     Everybody who is interested in poa events can use this method to register an event listener.
public  org.jacorb.poa.POA_getChildPOA(String adapter_name)
    
public  String_getQualifiedName()
    
public  Servant_incarnateServant(byte[] oid, ServantActivator sa)
     Called from Delegate.
public  void_invoke(ServerRequest request)
    
public  void_removePOAEventListener(EventListener listener)
     Unregister an event listener.
public  byte[]activate_object(Servant servant)
    
public  voidactivate_object_with_id(byte[] oid, Servant servant)
    
public  voidaddLocalRequest()
    
protected synchronized  voidaddPOAListener(POAListener listener)
    
protected  voidchangeToActive()
    
protected  voidchangeToDiscarding()
    
protected  voidchangeToHolding()
    
protected  voidchangeToInactive(boolean etherealize_objects)
    
protected  voidcheckDestructionApparent()
    
protected static  voidcheckNotLocal(org.omg.CORBA.Object obj)
    
public  voidconfigure(Configuration myConfiguration)
    
public  org.omg.PortableServer.POAcreate_POA(String adapter_name, org.omg.PortableServer.POAManager a_POAManager, org.omg.CORBA.Policy[] policies)
    
public  IdAssignmentPolicycreate_id_assignment_policy(IdAssignmentPolicyValue value)
    
public  IdUniquenessPolicycreate_id_uniqueness_policy(IdUniquenessPolicyValue value)
    
public  ImplicitActivationPolicycreate_implicit_activation_policy(ImplicitActivationPolicyValue value)
    
public  LifespanPolicycreate_lifespan_policy(LifespanPolicyValue value)
    
public  org.omg.CORBA.Objectcreate_reference(String intf_rep_id)
    
public  org.omg.CORBA.Objectcreate_reference_with_id(byte[] oid, String intf_rep_id)
    
public  RequestProcessingPolicycreate_request_processing_policy(RequestProcessingPolicyValue value)
    
public  ServantRetentionPolicycreate_servant_retention_policy(ServantRetentionPolicyValue value)
    
public  ThreadPolicycreate_thread_policy(ThreadPolicyValue value)
    
public synchronized  voiddeactivate_object(byte[] oid)
    
public  voiddestroy(boolean etherealize_objects, boolean wait_for_completion)
    
public  org.omg.PortableServer.POAfind_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  POAMonitorgetMonitor()
    
public  intgetNumberOfObjects()
    
protected  org.jacorb.orb.ORBgetORB()
    
public  byte[]getPOAId()
    
public  org.omg.CORBA.PolicygetPolicy(int type)
    
protected  org.omg.CORBA.ObjectgetReference(byte[] oid, String intf_rep_id, boolean cache)
    
protected  RequestControllergetRequestController()
    
protected  StategetState()
    
public  Servantget_servant()
    
public  org.omg.PortableServer.ServantManagerget_servant_manager()
    
public  org.omg.CORBA.Objectid_to_reference(byte[] oid)
    
public  Servantid_to_servant(byte[] oid)
    
protected  booleanisActive()
    
protected  booleanisDestructionApparent()
    
public  booleanisDestructionComplete()
     isDestructionComplete returns whether the POA has been completely destroyed (including finishing outstanding requests).
protected  booleanisDiscarding()
    
protected  booleanisHolding()
    
protected  booleanisImplicitActivation()
    
protected  booleanisInactive()
    
protected  booleanisMultipleId()
    
public  booleanisPersistent()
    
public  booleanisRetain()
    
public  booleanisSSLRequired()
    
protected  booleanisShutdownInProgress()
    
protected  booleanisSingleThreadModel()
    
public  booleanisSystemId()
    
protected  booleanisUniqueId()
    
protected  booleanisUseDefaultServant()
    
public  booleanisUseServantManager()
    
public  booleanpreviouslyGeneratedObjectId(byte[] oid)
    
public  booleanpreviouslyGeneratedObjectKey(byte[] object_key)
    
public  byte[]reference_to_id(org.omg.CORBA.Object reference)
    
public  Servantreference_to_servant(org.omg.CORBA.Object reference)
    
public  voidremoveLocalRequest()
    
protected synchronized  voidremovePOAListener(POAListener listener)
    
public  byte[]servant_to_id(Servant servant)
    
public  org.omg.CORBA.Objectservant_to_reference(Servant servant)
    
protected  voidsetMonitor(POAMonitor _monitor)
    
public  voidset_servant(Servant _defaultServant)
    
public  voidset_servant_manager(org.omg.PortableServer.ServantManager servant_manager)
    
public  org.omg.PortableServer.POAManagerthe_POAManager()
    
public  org.omg.PortableServer.AdapterActivatorthe_activator()
     it is system-dependent whether the root POA initially has an adapter activator.
public  voidthe_activator(org.omg.PortableServer.AdapterActivator adapter_activator)
    
public  org.omg.PortableServer.POA[]the_children()
    
public  Stringthe_name()
    
public  org.omg.PortableServer.POAthe_parent()
    
protected  voidunregisterChild(String name)
    
public  booleanuseDefaultServant()
    
protected  booleanuseServantManager()
    

Field Detail
bidirectionalPolicy
protected BidirectionalPolicy bidirectionalPolicy(Code)



defaultServant
Servant defaultServant(Code)



idAssignmentPolicy
protected IdAssignmentPolicy idAssignmentPolicy(Code)



idUniquenessPolicy
protected IdUniquenessPolicy idUniquenessPolicy(Code)



implicitActivationPolicy
protected ImplicitActivationPolicy implicitActivationPolicy(Code)



lifespanPolicy
protected LifespanPolicy lifespanPolicy(Code)



requestProcessingPolicy
protected RequestProcessingPolicy requestProcessingPolicy(Code)



servantManager
ServantManager servantManager(Code)



servantRetentionPolicy
protected ServantRetentionPolicy servantRetentionPolicy(Code)



sslPolicy
protected SSLPolicy sslPolicy(Code)



threadPolicy
protected ThreadPolicy threadPolicy(Code)





Method Detail
_POA_init
public static POA _POA_init(org.jacorb.orb.ORB orb)(Code)
called from orb to obtain the RootPOA



_addPOAEventListener
public void _addPOAEventListener(EventListener listener)(Code)
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 org.jacorb.poa.POA _getChildPOA(String adapter_name) throws ParentIsHolding(Code)
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()(Code)
returns the complete poa name



_incarnateServant
public Servant _incarnateServant(byte[] oid, ServantActivator sa) throws org.omg.PortableServer.ForwardRequest(Code)
Called from Delegate. To ensure thread safety we use the AOM::incarnate method when activating a servant with the ServantActivator.



_invoke
public void _invoke(ServerRequest request) throws WrongAdapter(Code)
called from orb for handing over a request



_removePOAEventListener
public void _removePOAEventListener(EventListener listener)(Code)
Unregister an event listener. The poa will pass the unregister calls to the right components



activate_object
public byte[] activate_object(Servant servant) throws ServantAlreadyActive, WrongPolicy(Code)



activate_object_with_id
public void activate_object_with_id(byte[] oid, Servant servant) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy(Code)



addLocalRequest
public void addLocalRequest()(Code)



addPOAListener
protected synchronized void addPOAListener(POAListener listener)(Code)



changeToActive
protected void changeToActive()(Code)



changeToDiscarding
protected void changeToDiscarding()(Code)



changeToHolding
protected void changeToHolding()(Code)



changeToInactive
protected void changeToInactive(boolean etherealize_objects)(Code)



checkDestructionApparent
protected void checkDestructionApparent()(Code)



checkNotLocal
protected static void checkNotLocal(org.omg.CORBA.Object obj) throws WrongAdapter(Code)



configure
public void configure(Configuration myConfiguration) throws ConfigurationException(Code)



create_POA
public org.omg.PortableServer.POA create_POA(String adapter_name, org.omg.PortableServer.POAManager a_POAManager, org.omg.CORBA.Policy[] policies) throws AdapterAlreadyExists, InvalidPolicy(Code)
additionally raises an org.omg.CORBA.BAD_INV_ORDER exception if the poa goes shutdown and this method will called (not spec.)



create_id_assignment_policy
public IdAssignmentPolicy create_id_assignment_policy(IdAssignmentPolicyValue value)(Code)



create_id_uniqueness_policy
public IdUniquenessPolicy create_id_uniqueness_policy(IdUniquenessPolicyValue value)(Code)



create_implicit_activation_policy
public ImplicitActivationPolicy create_implicit_activation_policy(ImplicitActivationPolicyValue value)(Code)



create_lifespan_policy
public LifespanPolicy create_lifespan_policy(LifespanPolicyValue value)(Code)



create_reference
public org.omg.CORBA.Object create_reference(String intf_rep_id) throws WrongPolicy(Code)
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 org.omg.CORBA.Object create_reference_with_id(byte[] oid, String intf_rep_id) throws WrongPolicy(Code)
The specified repository id, which may be a null string, will become the type_id of the generated object reference



create_request_processing_policy
public RequestProcessingPolicy create_request_processing_policy(RequestProcessingPolicyValue value)(Code)



create_servant_retention_policy
public ServantRetentionPolicy create_servant_retention_policy(ServantRetentionPolicyValue value)(Code)



create_thread_policy
public ThreadPolicy create_thread_policy(ThreadPolicyValue value)(Code)



deactivate_object
public synchronized void deactivate_object(byte[] oid) throws ObjectNotActive, WrongPolicy(Code)
The operation does not wait for requests or etherealization to complete and always returns immediately (after deactivating the oid?)



destroy
public void destroy(boolean etherealize_objects, boolean wait_for_completion)(Code)



find_POA
public org.omg.PortableServer.POA find_POA(String adapter_name, boolean activate_it) throws AdapterNonExistent(Code)
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.



getMonitor
protected POAMonitor getMonitor()(Code)



getNumberOfObjects
public int getNumberOfObjects()(Code)



getORB
protected org.jacorb.orb.ORB getORB()(Code)



getPOAId
public byte[] getPOAId()(Code)



getPolicy
public org.omg.CORBA.Policy getPolicy(int type)(Code)



getReference
protected org.omg.CORBA.Object getReference(byte[] oid, String intf_rep_id, boolean cache)(Code)



getRequestController
protected RequestController getRequestController()(Code)



getState
protected State getState()(Code)



get_servant
public Servant get_servant() throws NoServant, WrongPolicy(Code)



get_servant_manager
public org.omg.PortableServer.ServantManager get_servant_manager() throws WrongPolicy(Code)



id_to_reference
public org.omg.CORBA.Object id_to_reference(byte[] oid) throws ObjectNotActive, WrongPolicy(Code)



id_to_servant
public Servant id_to_servant(byte[] oid) throws ObjectNotActive, WrongPolicy(Code)



isActive
protected boolean isActive()(Code)



isDestructionApparent
protected boolean isDestructionApparent()(Code)



isDestructionComplete
public boolean isDestructionComplete()(Code)
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. a boolean value.



isDiscarding
protected boolean isDiscarding()(Code)



isHolding
protected boolean isHolding()(Code)



isImplicitActivation
protected boolean isImplicitActivation()(Code)



isInactive
protected boolean isInactive()(Code)



isMultipleId
protected boolean isMultipleId()(Code)



isPersistent
public boolean isPersistent()(Code)



isRetain
public boolean isRetain()(Code)
also called from Delegate



isSSLRequired
public boolean isSSLRequired()(Code)



isShutdownInProgress
protected boolean isShutdownInProgress()(Code)



isSingleThreadModel
protected boolean isSingleThreadModel()(Code)



isSystemId
public boolean isSystemId()(Code)



isUniqueId
protected boolean isUniqueId()(Code)



isUseDefaultServant
protected boolean isUseDefaultServant()(Code)



isUseServantManager
public boolean isUseServantManager()(Code)



previouslyGeneratedObjectId
public boolean previouslyGeneratedObjectId(byte[] oid)(Code)



previouslyGeneratedObjectKey
public boolean previouslyGeneratedObjectKey(byte[] object_key)(Code)



reference_to_id
public byte[] reference_to_id(org.omg.CORBA.Object reference) throws WrongAdapter, WrongPolicy(Code)



reference_to_servant
public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongAdapter, WrongPolicy(Code)



removeLocalRequest
public void removeLocalRequest()(Code)



removePOAListener
protected synchronized void removePOAListener(POAListener listener)(Code)



servant_to_id
public byte[] servant_to_id(Servant servant) throws ServantNotActive, WrongPolicy(Code)



servant_to_reference
public org.omg.CORBA.Object servant_to_reference(Servant servant) throws ServantNotActive, WrongPolicy(Code)



setMonitor
protected void setMonitor(POAMonitor _monitor)(Code)



set_servant
public void set_servant(Servant _defaultServant) throws WrongPolicy(Code)



set_servant_manager
public void set_servant_manager(org.omg.PortableServer.ServantManager servant_manager) throws WrongPolicy(Code)
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.)



the_POAManager
public org.omg.PortableServer.POAManager the_POAManager()(Code)



the_activator
public org.omg.PortableServer.AdapterActivator the_activator()(Code)
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
public void the_activator(org.omg.PortableServer.AdapterActivator adapter_activator)(Code)



the_children
public org.omg.PortableServer.POA[] the_children()(Code)



the_name
public String the_name()(Code)



the_parent
public org.omg.PortableServer.POA the_parent()(Code)



unregisterChild
protected void unregisterChild(String name)(Code)
notified the completion of a child destruction



useDefaultServant
public boolean useDefaultServant()(Code)
called from Delegate



useServantManager
protected boolean useServantManager()(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.