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 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 string PortableInterceptor::AdapterManagerId
 

Definition at line 46 of file PI_Forward.pidl.

typedef CORBA::StringSeq PortableInterceptor::AdapterName
 

Definition at line 44 of file PI_Forward.pidl.

typedef short PortableInterceptor::AdapterState
 

Definition at line 47 of file PI_Forward.pidl.

typedef ClientRequestInterceptor * PortableInterceptor::ClientRequestInterceptor_ptr
 

Definition at line 39 of file ClientRequestInterceptor_Adapter.h.

Referenced by TAO_ORB_Core::add_interceptor().

typedef IORInfo* PortableInterceptor::IORInfo_ptr
 

Definition at line 40 of file IORInterceptor_Adapter.h.

typedef IORInterceptor * PortableInterceptor::IORInterceptor_ptr
 

Definition at line 38 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 string PortableInterceptor::ORBId
 

Definition at line 43 of file PI_Forward.pidl.

typedef ORBInitializer * PortableInterceptor::ORBInitializer_ptr
 

Definition at line 31 of file ORBInitializer_Registry.h.

Referenced by register_orb_initializer().

typedef PolicyFactory* PortableInterceptor::PolicyFactory_ptr
 

Definition at line 42 of file PolicyFactory_Registry_Adapter.h.

typedef CORBA::Short PortableInterceptor::ReplyStatus
 

Definition at line 41 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(), TAO::Synch_Twoway_Invocation::remote_twoway(), and TAO_ServerRequest::reply_status().

typedef string PortableInterceptor::ServerId
 

Definition at line 42 of file PI_Forward.pidl.

typedef ServerRequestInterceptor * PortableInterceptor::ServerRequestInterceptor_ptr
 

Definition at line 137 of file ORB_Core.h.

Referenced by TAO_ORB_Core::add_interceptor().

typedef unsigned long PortableInterceptor::SlotId
 

Definition at line 36 of file ORBInitializer_Registry_Adapter.h.

Referenced by CORBA::ORB_init().


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_DYNAMIC_SERVICE_DIRECTIVE, ACE_ERROR, ACE_GUARD, ACE_TEXT, 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.

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


Variable Documentation

const AdapterState PortableInterceptor::ACTIVE = 1
 

Definition at line 45 of file PortableInterceptor.pidl.

const AdapterState PortableInterceptor::DISCARDING = 2
 

Definition at line 46 of file PortableInterceptor.pidl.

const AdapterState PortableInterceptor::HOLDING = 0
 

Definition at line 44 of file PortableInterceptor.pidl.

const AdapterState PortableInterceptor::INACTIVE = 3
 

Definition at line 47 of file PortableInterceptor.pidl.

const ReplyStatus PortableInterceptor::LOCATION_FORWARD = 3
 

Definition at line 54 of file PortableInterceptor.pidl.

const AdapterState PortableInterceptor::NON_EXISTENT = 4
 

Definition at line 48 of file PortableInterceptor.pidl.

typeprefix PortableInterceptor omg PortableInterceptor::org
 

Definition at line 42 of file PortableInterceptor.pidl.

const ReplyStatus PortableInterceptor::SUCCESSFUL = 0
 

Definition at line 51 of file PortableInterceptor.pidl.

const ReplyStatus PortableInterceptor::SYSTEM_EXCEPTION = 1
 

Definition at line 52 of file PortableInterceptor.pidl.

const ReplyStatus PortableInterceptor::TRANSPORT_RETRY = 4
 

Definition at line 55 of file PortableInterceptor.pidl.

const ReplyStatus PortableInterceptor::UNKNOWN = 5
 

Definition at line 56 of file PortableInterceptor.pidl.

const ReplyStatus PortableInterceptor::USER_EXCEPTION = 2
 

Definition at line 53 of file PortableInterceptor.pidl.


Generated on Sun Jan 27 13:17:27 2008 for TAO by doxygen 1.3.6