PortableInterceptor Namespace Reference


Typedefs

typedef ClientRequestInterceptor * ClientRequestInterceptor_ptr
typedef CORBA::Short ReplyStatus
typedef IORInterceptor * IORInterceptor_ptr
typedef IORInfo * IORInfo_ptr
typedef ServerRequestInterceptor * ServerRequestInterceptor_ptr
typedef ORBInitializer * ORBInitializer_ptr
typedef CORBA::ULong SlotId
typedef string ServerId
typedef string ORBId
typedef CORBA::StringSeq AdapterName
typedef CORBA::OctetSeq ObjectId
typedef string AdapterManagerId
typedef short AdapterState
typedef CORBA::String_var ServerId_var
typedef CORBA::String_out ServerId_out
typedef CORBA::String_var ORBId_var
typedef CORBA::String_out ORBId_out
typedef CORBA::StringSeq_var AdapterName_var
typedef CORBA::StringSeq_out AdapterName_out
typedef CORBA::OctetSeq_var ObjectId_var
typedef CORBA::OctetSeq_out ObjectId_out
typedef CORBA::String_var AdapterManagerId_var
typedef CORBA::String_out AdapterManagerId_out
typedef CORBA::Short_out AdapterState_out
typedef CORBA::ULong_out SlotId_out
typedef CORBA::Short_out ReplyStatus_out
typedef PolicyFactory * PolicyFactory_ptr

Functions

void register_orb_initializer (ORBInitializer_ptr init)

Variables

typeprefix PortableInterceptor
omg 
org
const AdapterState HOLDING = 0
const AdapterState ACTIVE = 1
const AdapterState DISCARDING = 2
const AdapterState INACTIVE = 3
const AdapterState NON_EXISTENT = 4
const ReplyStatus SUCCESSFUL = 0
const ReplyStatus SYSTEM_EXCEPTION = 1
const ReplyStatus USER_EXCEPTION = 2
const ReplyStatus LOCATION_FORWARD = 3
const ReplyStatus TRANSPORT_RETRY = 4
const ReplyStatus UNKNOWN = 5


Typedef Documentation

typedef char * PortableInterceptor::AdapterManagerId
 

Definition at line 46 of file PI_Forward.pidl.

typedef CORBA::String_out PortableInterceptor::AdapterManagerId_out
 

Definition at line 105 of file PI_ForwardC.h.

typedef CORBA::String_var PortableInterceptor::AdapterManagerId_var
 

Definition at line 104 of file PI_ForwardC.h.

typedef CORBA::StringSeq PortableInterceptor::AdapterName
 

Definition at line 44 of file PI_Forward.pidl.

typedef CORBA::StringSeq_out PortableInterceptor::AdapterName_out
 

Definition at line 91 of file PI_ForwardC.h.

typedef CORBA::StringSeq_var PortableInterceptor::AdapterName_var
 

Definition at line 90 of file PI_ForwardC.h.

typedef CORBA::Short PortableInterceptor::AdapterState
 

Definition at line 47 of file PI_Forward.pidl.

typedef CORBA::Short_out PortableInterceptor::AdapterState_out
 

Definition at line 111 of file PI_ForwardC.h.

typedef ClientRequestInterceptor * PortableInterceptor::ClientRequestInterceptor_ptr
 

Definition at line 40 of file ClientRequestInterceptor_Adapter.h.

Referenced by TAO_ORB_Core::add_interceptor().

typedef IORInfo* PortableInterceptor::IORInfo_ptr
 

Definition at line 39 of file IORInterceptor_Adapter.h.

typedef IORInterceptor * PortableInterceptor::IORInterceptor_ptr
 

Definition at line 37 of file IORInterceptor_Adapter.h.

Referenced by TAO_ORB_Core::add_interceptor().

typedef CORBA::OctetSeq PortableInterceptor::ObjectId
 

Definition at line 45 of file PI_Forward.pidl.

typedef CORBA::OctetSeq_out PortableInterceptor::ObjectId_out
 

Definition at line 98 of file PI_ForwardC.h.

typedef CORBA::OctetSeq_var PortableInterceptor::ObjectId_var
 

Definition at line 97 of file PI_ForwardC.h.

typedef char * PortableInterceptor::ORBId
 

Definition at line 43 of file PI_Forward.pidl.

typedef CORBA::String_out PortableInterceptor::ORBId_out
 

Definition at line 84 of file PI_ForwardC.h.

typedef CORBA::String_var PortableInterceptor::ORBId_var
 

Definition at line 83 of file PI_ForwardC.h.

typedef ORBInitializer * PortableInterceptor::ORBInitializer_ptr
 

Definition at line 34 of file ORBInitializer_Registry.h.

Referenced by register_orb_initializer().

typedef PolicyFactory* PortableInterceptor::PolicyFactory_ptr
 

Definition at line 47 of file PolicyFactory_Registry_Adapter.h.

typedef CORBA::Short PortableInterceptor::ReplyStatus
 

Definition at line 42 of file ClientRequestInterceptor_Adapter.h.

Referenced by TAO::Invocation_Base::handle_all_exception(), TAO::Invocation_Base::handle_any_exception(), TAO::Collocated_Invocation::invoke(), TAO::Invocation_Base::receive_reply_interception(), TAO::Synch_Oneway_Invocation::remote_oneway(), and TAO::Synch_Twoway_Invocation::remote_twoway().

typedef CORBA::Short_out PortableInterceptor::ReplyStatus_out
 

Definition at line 123 of file PI_ForwardC.h.

typedef char * PortableInterceptor::ServerId
 

Definition at line 42 of file PI_Forward.pidl.

typedef CORBA::String_out PortableInterceptor::ServerId_out
 

Definition at line 77 of file PI_ForwardC.h.

typedef CORBA::String_var PortableInterceptor::ServerId_var
 

Definition at line 76 of file PI_ForwardC.h.

typedef ServerRequestInterceptor * PortableInterceptor::ServerRequestInterceptor_ptr
 

Definition at line 137 of file ORB_Core.h.

Referenced by TAO_ORB_Core::add_interceptor().

typedef CORBA::ULong PortableInterceptor::SlotId
 

Definition at line 38 of file ORBInitializer_Registry_Adapter.h.

Referenced by CORBA::ORB_init().

typedef CORBA::ULong_out PortableInterceptor::SlotId_out
 

Definition at line 117 of file PI_ForwardC.h.


Function Documentation

TAO_Export void PortableInterceptor::register_orb_initializer ORBInitializer_ptr  init  ) 
 

Register an ORBInitializer with the global ORBInitializer table.

Definition at line 27 of file ORBInitializer_Registry.cpp.

References ACE_CHECK, ACE_DYNAMIC_SERVICE_DIRECTIVE, ACE_ENV_ARG_PARAMETER, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_ERROR, ACE_GUARD, ACE_TEXT, ACE_THROW, TAO_Singleton_Manager::init(), TAO::ORB::init_orb_globals(), TAO_Singleton_Manager::instance(), LM_ERROR, ORBInitializer_ptr, ACE_Service_Config::process_directive(), TAO::ORBInitializer_Registry_Adapter::register_orb_initializer(), and TAO_SYNCH_RECURSIVE_MUTEX.

00030   {
00031     {
00032       // Using ACE_Static_Object_Lock::instance() precludes
00033       // register_orb_initializer() from being called within a static
00034       // object CTOR.
00035       ACE_MT (ACE_GUARD (TAO_SYNCH_RECURSIVE_MUTEX,
00036                          guard,
00037                          *ACE_Static_Object_Lock::instance ()));
00038 
00039       // Make sure TAO's singleton manager is initialized.
00040       if (TAO_Singleton_Manager::instance ()->init () == -1)
00041         {
00042           ACE_ERROR ((LM_ERROR,
00043                       ACE_TEXT ("(%P|%t) register_orb_initializer: ")
00044                       ACE_TEXT ("Unable to pre-initialize TAO\n")));
00045         }
00046 
00047       TAO::ORB::init_orb_globals (ACE_ENV_SINGLE_ARG_PARAMETER);
00048       ACE_CHECK;
00049     }
00050 
00051     // If not, lookup it up.
00052     TAO::ORBInitializer_Registry_Adapter *orbinitializer_registry_ =
00053       ACE_Dynamic_Service<TAO::ORBInitializer_Registry_Adapter>::instance
00054       ("ORBInitializer_Registry", true); // only look in the local repo
00055 
00056   #if !defined (TAO_AS_STATIC_LIBS)
00057     if (orbinitializer_registry_ == 0)
00058       {
00059         ACE_Service_Config::process_directive (
00060           ACE_DYNAMIC_SERVICE_DIRECTIVE("ORBInitializer_Registry",
00061                                         "TAO_PI",
00062                                         "_make_ORBInitializer_Registry",
00063                                         ""));
00064         orbinitializer_registry_ =
00065           ACE_Dynamic_Service<TAO::ORBInitializer_Registry_Adapter>::instance
00066             ("ORBInitializer_Registry");
00067       }
00068 
00069   #endif /* !TAO_AS_STATIC_LIBS */
00070 
00071     if (orbinitializer_registry_ != 0)
00072       {
00073         orbinitializer_registry_->register_orb_initializer (
00074           init
00075           ACE_ENV_ARG_PARAMETER);
00076         ACE_CHECK;
00077       }
00078     else
00079       {
00080         ACE_ERROR ((LM_ERROR,
00081                     ACE_TEXT ("(%P|%t) %p\n"),
00082                     ACE_TEXT ("ERROR: ORBInitializer Registry unable to find the ")
00083                     ACE_TEXT ("ORBInitializer Registry instance")));
00084 
00085         ACE_THROW (CORBA::INTERNAL ());
00086       }
00087   }


Variable Documentation

const PortableInterceptor::AdapterState PortableInterceptor::ACTIVE = 1
 

Definition at line 71 of file PortableInterceptorC.h.

const PortableInterceptor::AdapterState PortableInterceptor::DISCARDING = 2
 

Definition at line 76 of file PortableInterceptorC.h.

const PortableInterceptor::AdapterState PortableInterceptor::HOLDING = 0
 

Definition at line 66 of file PortableInterceptorC.h.

const PortableInterceptor::AdapterState PortableInterceptor::INACTIVE = 3
 

Definition at line 81 of file PortableInterceptorC.h.

const PortableInterceptor::ReplyStatus PortableInterceptor::LOCATION_FORWARD = 3
 

Definition at line 106 of file PortableInterceptorC.h.

const PortableInterceptor::AdapterState PortableInterceptor::NON_EXISTENT = 4
 

Definition at line 86 of file PortableInterceptorC.h.

typeprefix PortableInterceptor omg PortableInterceptor::org
 

Definition at line 42 of file PortableInterceptor.pidl.

const PortableInterceptor::ReplyStatus PortableInterceptor::SUCCESSFUL = 0
 

Definition at line 91 of file PortableInterceptorC.h.

const PortableInterceptor::ReplyStatus PortableInterceptor::SYSTEM_EXCEPTION = 1
 

Definition at line 96 of file PortableInterceptorC.h.

const PortableInterceptor::ReplyStatus PortableInterceptor::TRANSPORT_RETRY = 4
 

Definition at line 111 of file PortableInterceptorC.h.

const PortableInterceptor::ReplyStatus PortableInterceptor::UNKNOWN = 5
 

Definition at line 116 of file PortableInterceptorC.h.

const PortableInterceptor::ReplyStatus PortableInterceptor::USER_EXCEPTION = 2
 

Definition at line 101 of file PortableInterceptorC.h.


Generated on Thu Nov 9 12:25:32 2006 for TAO by doxygen 1.3.6