Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_ClientRequestInfo Class Reference

Implementation of the PortableInterceptor::ClientRequestInfo interface. More...

#include <ClientRequestInfo.h>

Inheritance diagram for TAO_ClientRequestInfo:

Inheritance graph
[legend]
Collaboration diagram for TAO_ClientRequestInfo:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_ClientRequestInfo (void)
virtual CORBA::ULong request_id (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return an ID unique to the current request. This request ID may or may not be the same as the GIOP request ID. More...

virtual char * operation (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the operation name for the current request. More...

virtual Dynamic::ParameterListarguments (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the list of arguments passed to the current operation. More...

virtual Dynamic::ExceptionListexceptions (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the list of exceptions the current operation is capable of throwing. More...

virtual Dynamic::ContextListcontexts (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual Dynamic::RequestContextoperation_context (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual CORBA::Anyresult (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the result of the current request. If there is no return value then an Any with tk_void TypeCode is returned. This is method is not valid for oneway operations. More...

virtual CORBA::Boolean response_expected (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Returns true for a two-way operation, and false otherwise. More...

virtual Messaging::SyncScope sync_scope (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the sync_scope policy value for the current one-way operation. If the operation is not a one-way, a CORBA::BAD_INV_ORDER exception is thrown. More...

virtual PortableInterceptor::ReplyStatus reply_status (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the reply status for the current request. Statuses can be PortableInterceptor::SUCCESSFUL, SYSTEM_EXCEPTION, USER_EXCEPTION, LOCATION_FORWARD, LOCATION_FORWARD_PERMANENT, TRANSPORT_RETRY. More...

virtual CORBA::Object_ptr forward_reference (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 If the reply status is PortableInterceptor::LOCATION_FORWARD or PortableInterceptor::LOCATION_FORWARD_PERMANENT, return the object reference to which the request was forwarded. More...

virtual CORBA::Anyget_slot (PortableInterceptor::SlotId id ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, PortableInterceptor::InvalidSlot)
virtual IOP::ServiceContextget_request_service_context (IOP::ServiceId id ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the IOP::ServiceContext with the given IOP::ServiceId from the request service context list. More...

virtual IOP::ServiceContextget_reply_service_context (IOP::ServiceId id ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the IOP::ServiceContext with the given IOP::ServiceId from the reply service context list. More...

virtual CORBA::Object_ptr target (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the (initial, non-forwarded, or permanently forwarded) object reference of the target. More...

virtual CORBA::Object_ptr effective_target (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the object reference for the current target. The target may change in the even of a location forward. More...

virtual IOP::TaggedProfileeffective_profile (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual CORBA::Anyreceived_exception (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return an Any containing the received exception, if any. Otherwise, throw a CORBA::BAD_INV_ORDER exception. More...

virtual char * received_exception_id (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the repository ID for the received exception. More...

virtual IOP::TaggedComponentget_effective_component (IOP::ComponentId id ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the first IOP::TaggedComponent that matches the given IOP::ComponentId in the object reference for the current target. More...

virtual IOP::TaggedComponentSeqget_effective_components (IOP::ComponentId id ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return all IOP::TaggedComponent(s) that match the given IOP::ComponentId in the object reference for the current target. More...

virtual CORBA::Policy_ptr get_request_policy (CORBA::PolicyType type ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Return the policy of the given type in effect for the current request. More...

virtual void add_request_service_context (const IOP::ServiceContext &service_context, CORBA::Boolean replace ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
 Add the IOP::ServiceContext to the request (outgoing) IOP::ServiceContextList. More...

void info (TAO_ClientRequestInfo_i *info)
 Set the ClientRequestInfo implementation which this class forwards all method call to. More...

TAO_ClientRequestInfo_iinfo (void) const
 Get the ClientRequestInfo implementation which this class forwards all method call to. More...

TAO_GIOP_Invocationinvocation ()
 Accessor to underlying invocation_. More...


Private Methods

void check_validity (ACE_ENV_SINGLE_ARG_DECL)
 Check if this ClientRequestInfo object is called within the context of a request. More...


Private Attributes

TAO_ClientRequestInfo_iinfo_
 Pointer to the object that actually implements the ClientRequestInfo functionality. More...

TAO_GIOP_Invocationinvocation_
 Pointer to the GIOP invocation object. More...


Detailed Description

Implementation of the PortableInterceptor::ClientRequestInfo interface.

This class forwards all method calls to the underlying ClientRequestInfo implementation.

An instance of this class is placed in TSS, where as the underlying implementation is instantiated on the stack during each CORBA request. During each request invocation, a pointer to the stack instantiated implementation is placed in the instance of this class.

This may seem unnecessary. However, it is necessary to avoid instantiating an object that inherits from CORBA::Object in the critical path. Such an instantiation would cause a lock to be initialized (not acquired) in the critical path, which can degrade performance significantly.

Definition at line 63 of file ClientRequestInfo.h.


Constructor & Destructor Documentation

TAO_ClientRequestInfo::TAO_ClientRequestInfo void   
 

Definition at line 17 of file ClientRequestInfo.cpp.

00018   : info_ (0)
00019 {
00020 }


Member Function Documentation

void TAO_ClientRequestInfo::add_request_service_context const IOP::ServiceContext   service_context,
CORBA::Boolean replace    ACE_ENV_ARG_DECL_WITH_DEFAULTS
throw (CORBA::SystemException) [virtual]
 

Add the IOP::ServiceContext to the request (outgoing) IOP::ServiceContextList.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 115 of file ClientRequestInfo.cpp.

References ACE_CHECK, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.

00120 {
00121   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00122   ACE_CHECK;
00123 
00124   this->info_->add_request_service_context (service_context,
00125                                             replace
00126                                             ACE_ENV_ARG_PARAMETER);
00127   ACE_CHECK;
00128 }

Dynamic::ParameterList * TAO_ClientRequestInfo::arguments ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the list of arguments passed to the current operation.

Implements PortableInterceptor::RequestInfo.

Definition at line 151 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00153 {
00154   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00155   ACE_CHECK_RETURN (0);
00156 
00157   return this->info_->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
00158 }

ACE_INLINE void TAO_ClientRequestInfo::check_validity ACE_ENV_SINGLE_ARG_DECL    [private]
 

Check if this ClientRequestInfo object is called within the context of a request.

Definition at line 6 of file ClientRequestInfo.inl.

References ACE_ENV_SINGLE_ARG_DECL, ACE_THROW, and info_.

00007 {
00008   if (this->info_ == 0)
00009     ACE_THROW (CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14,
00010                                      CORBA::COMPLETED_NO));
00011 }

Dynamic::ContextList * TAO_ClientRequestInfo::contexts ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Implements PortableInterceptor::RequestInfo.

Definition at line 171 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00173 {
00174   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00175   ACE_CHECK_RETURN (0);
00176 
00177   return this->info_->contexts (ACE_ENV_SINGLE_ARG_PARAMETER);
00178 }

IOP::TaggedProfile * TAO_ClientRequestInfo::effective_profile ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 43 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00045 {
00046   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00047   ACE_CHECK_RETURN (0);
00048 
00049   return this->info_->effective_profile (ACE_ENV_SINGLE_ARG_PARAMETER);
00050 }

CORBA::Object_ptr TAO_ClientRequestInfo::effective_target ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the object reference for the current target. The target may change in the even of a location forward.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 33 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00035 {
00036   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00037   ACE_CHECK_RETURN (CORBA::Object::_nil ());
00038 
00039   return this->info_->effective_target (ACE_ENV_SINGLE_ARG_PARAMETER);
00040 }

Dynamic::ExceptionList * TAO_ClientRequestInfo::exceptions ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the list of exceptions the current operation is capable of throwing.

Implements PortableInterceptor::RequestInfo.

Definition at line 161 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00163 {
00164   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00165   ACE_CHECK_RETURN (0);
00166 
00167   return this->info_->exceptions (ACE_ENV_SINGLE_ARG_PARAMETER);
00168 }

CORBA::Object_ptr TAO_ClientRequestInfo::forward_reference ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

If the reply status is PortableInterceptor::LOCATION_FORWARD or PortableInterceptor::LOCATION_FORWARD_PERMANENT, return the object reference to which the request was forwarded.

Implements PortableInterceptor::RequestInfo.

Definition at line 231 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00233 {
00234   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00235   ACE_CHECK_RETURN (CORBA::Object::_nil ());
00236 
00237   return this->info_->forward_reference (ACE_ENV_SINGLE_ARG_PARAMETER);
00238 }

IOP::TaggedComponent * TAO_ClientRequestInfo::get_effective_component IOP::ComponentId id    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Return the first IOP::TaggedComponent that matches the given IOP::ComponentId in the object reference for the current target.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 77 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.

00081 {
00082   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00083   ACE_CHECK_RETURN (0);
00084 
00085   return this->info_->get_effective_component (id
00086                                                ACE_ENV_ARG_PARAMETER);
00087 }

IOP::TaggedComponentSeq * TAO_ClientRequestInfo::get_effective_components IOP::ComponentId id    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Return all IOP::TaggedComponent(s) that match the given IOP::ComponentId in the object reference for the current target.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 90 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.

00094 {
00095   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00096   ACE_CHECK_RETURN (0);
00097 
00098   return this->info_->get_effective_components (id
00099                                                 ACE_ENV_ARG_PARAMETER);
00100 }

IOP::ServiceContext * TAO_ClientRequestInfo::get_reply_service_context IOP::ServiceId id    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Return the IOP::ServiceContext with the given IOP::ServiceId from the reply service context list.

Implements PortableInterceptor::RequestInfo.

Definition at line 267 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.

00271 {
00272   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00273   ACE_CHECK_RETURN (0);
00274 
00275   return this->info_->get_reply_service_context (id
00276                                                  ACE_ENV_ARG_PARAMETER);
00277 }

CORBA::Policy_ptr TAO_ClientRequestInfo::get_request_policy CORBA::PolicyType type    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Return the policy of the given type in effect for the current request.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 103 of file ClientRequestInfo.cpp.

References CORBA::Policy::_nil, ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.

00106 {
00107   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00108   ACE_CHECK_RETURN (CORBA::Policy::_nil ());
00109 
00110   return this->info_->get_request_policy (type
00111                                           ACE_ENV_ARG_PARAMETER);
00112 }

IOP::ServiceContext * TAO_ClientRequestInfo::get_request_service_context IOP::ServiceId id    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Return the IOP::ServiceContext with the given IOP::ServiceId from the request service context list.

Implements PortableInterceptor::RequestInfo.

Definition at line 254 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.

00258 {
00259   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00260   ACE_CHECK_RETURN (0);
00261 
00262   return this->info_->get_request_service_context (id
00263                                                    ACE_ENV_ARG_PARAMETER);
00264 }

CORBA::Any * TAO_ClientRequestInfo::get_slot PortableInterceptor::SlotId id    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException, PortableInterceptor::InvalidSlot) [virtual]
 

Implements PortableInterceptor::RequestInfo.

Definition at line 241 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and ACE_ENV_SINGLE_ARG_PARAMETER.

00245 {
00246   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00247   ACE_CHECK_RETURN (0);
00248 
00249   return this->info_->get_slot (id
00250                                 ACE_ENV_ARG_PARAMETER);
00251 }

ACE_INLINE TAO_ClientRequestInfo_i * TAO_ClientRequestInfo::info void    const
 

Get the ClientRequestInfo implementation which this class forwards all method call to.

Definition at line 20 of file ClientRequestInfo.inl.

References info_.

00021 {
00022   return this->info_;
00023 }

ACE_INLINE void TAO_ClientRequestInfo::info TAO_ClientRequestInfo_i   info
 

Set the ClientRequestInfo implementation which this class forwards all method call to.

Definition at line 14 of file ClientRequestInfo.inl.

References info_.

Referenced by TAO_ClientRequestInfo_Guard::TAO_ClientRequestInfo_Guard, and TAO_ClientRequestInfo_Guard::~TAO_ClientRequestInfo_Guard.

00015 {
00016   this->info_ = info;
00017 }

TAO_GIOP_Invocation * TAO_ClientRequestInfo::invocation  
 

Accessor to underlying invocation_.

Definition at line 280 of file ClientRequestInfo.cpp.

References invocation_.

00281 {
00282   return this->invocation_;
00283 }

char * TAO_ClientRequestInfo::operation ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the operation name for the current request.

Implements PortableInterceptor::RequestInfo.

Definition at line 141 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00143 {
00144   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00145   ACE_CHECK_RETURN (0);
00146 
00147   return this->info_->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
00148 }

Dynamic::RequestContext * TAO_ClientRequestInfo::operation_context ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Implements PortableInterceptor::RequestInfo.

Definition at line 181 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00183 {
00184   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00185   ACE_CHECK_RETURN (0);
00186 
00187   return this->info_->operation_context (ACE_ENV_SINGLE_ARG_PARAMETER);
00188 }

CORBA::Any * TAO_ClientRequestInfo::received_exception ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return an Any containing the received exception, if any. Otherwise, throw a CORBA::BAD_INV_ORDER exception.

Note:
There is no trivial way to extract the exception from an Any.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 56 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00058 {
00059   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00060   ACE_CHECK_RETURN (0);
00061 
00062   return this->info_->received_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
00063 }

char * TAO_ClientRequestInfo::received_exception_id ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the repository ID for the received exception.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 66 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00069 {
00070   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00071   ACE_CHECK_RETURN (0);
00072 
00073   return this->info_->received_exception_id (ACE_ENV_SINGLE_ARG_PARAMETER);
00074 }

PortableInterceptor::ReplyStatus TAO_ClientRequestInfo::reply_status ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the reply status for the current request. Statuses can be PortableInterceptor::SUCCESSFUL, SYSTEM_EXCEPTION, USER_EXCEPTION, LOCATION_FORWARD, LOCATION_FORWARD_PERMANENT, TRANSPORT_RETRY.

Implements PortableInterceptor::RequestInfo.

Definition at line 221 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00223 {
00224   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00225   ACE_CHECK_RETURN (PortableInterceptor::SYSTEM_EXCEPTION);
00226 
00227   return this->info_->reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);
00228 }

CORBA::ULong TAO_ClientRequestInfo::request_id ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return an ID unique to the current request. This request ID may or may not be the same as the GIOP request ID.

Implements PortableInterceptor::RequestInfo.

Definition at line 131 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00133 {
00134   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00135   ACE_CHECK_RETURN (0);
00136 
00137   return this->info_->request_id (ACE_ENV_SINGLE_ARG_PARAMETER);
00138 }

CORBA::Boolean TAO_ClientRequestInfo::response_expected ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Returns true for a two-way operation, and false otherwise.

Implements PortableInterceptor::RequestInfo.

Definition at line 201 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00203 {
00204   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00205   ACE_CHECK_RETURN (0);
00206 
00207   return this->info_->response_expected (ACE_ENV_SINGLE_ARG_PARAMETER);
00208 }

CORBA::Any * TAO_ClientRequestInfo::result ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the result of the current request. If there is no return value then an Any with tk_void TypeCode is returned. This is method is not valid for oneway operations.

Implements PortableInterceptor::RequestInfo.

Definition at line 191 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00193 {
00194   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00195   ACE_CHECK_RETURN (0);
00196 
00197   return this->info_->result (ACE_ENV_SINGLE_ARG_PARAMETER);
00198 }

Messaging::SyncScope TAO_ClientRequestInfo::sync_scope ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the sync_scope policy value for the current one-way operation. If the operation is not a one-way, a CORBA::BAD_INV_ORDER exception is thrown.

Implements PortableInterceptor::RequestInfo.

Definition at line 211 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00213 {
00214   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00215   ACE_CHECK_RETURN (0);
00216 
00217   return this->info_->sync_scope (ACE_ENV_SINGLE_ARG_PARAMETER);
00218 }

CORBA::Object_ptr TAO_ClientRequestInfo::target ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS    throw (CORBA::SystemException) [virtual]
 

Return the (initial, non-forwarded, or permanently forwarded) object reference of the target.

Implements PortableInterceptor::ClientRequestInfo.

Definition at line 23 of file ClientRequestInfo.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_DECL, and ACE_ENV_SINGLE_ARG_PARAMETER.

00025 {
00026   this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
00027   ACE_CHECK_RETURN (CORBA::Object::_nil ());
00028 
00029   return this->info_->target (ACE_ENV_SINGLE_ARG_PARAMETER);
00030 }


Member Data Documentation

TAO_ClientRequestInfo_i* TAO_ClientRequestInfo::info_ [private]
 

Pointer to the object that actually implements the ClientRequestInfo functionality.

Definition at line 237 of file ClientRequestInfo.h.

Referenced by check_validity, and info.

TAO_GIOP_Invocation* TAO_ClientRequestInfo::invocation_ [private]
 

Pointer to the GIOP invocation object.

Definition at line 240 of file ClientRequestInfo.h.

Referenced by invocation.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:06:42 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002