TAO_Service_Callbacks Class Reference

An Abstract Base class for the hooks in the ORB. More...

#include <Service_Callbacks.h>

List of all members.

Public Types

enum  Profile_Equivalence { EQUIVALENT, NOT_EQUIVALENT, DONT_KNOW }

Public Member Functions

virtual ~TAO_Service_Callbacks (void)
 Dtor.

virtual CORBA::Boolean select_profile (TAO_MProfile *mprofile, TAO_Profile *&pfile)
virtual CORBA::Boolean reselect_profile (TAO_Stub *stub, TAO_Profile *&pfile)
virtual void reset_profile_flags (void)
 Reset the profile flags that the services could have.

virtual CORBA::Boolean object_is_nil (CORBA::Object_ptr obj)
 Check whether is nil or not.

virtual Profile_Equivalence is_profile_equivalent (const TAO_Profile *, const TAO_Profile *)
 Check for equivalency of the two profiles.

virtual CORBA::ULong hash_ft (TAO_Profile *p, CORBA::ULong m)
 Calculate the hash value..

virtual CORBA::Boolean is_permanent_forward_condition (const CORBA::Object_ptr obj, const TAO_Service_Context &service_context) const
virtual TAO::Invocation_Status raise_comm_failure (IOP::ServiceContextList &clist, TAO_Profile *profile)
virtual TAO::Invocation_Status raise_transient_failure (IOP::ServiceContextList &clist, TAO_Profile *profile)


Detailed Description

An Abstract Base class for the hooks in the ORB.

This class (would) define all the hooks that may be needed by the ORB to override some of its default behaviour. The methods can be potentially used to call service level specific processing that may be required.

Definition at line 62 of file Service_Callbacks.h.


Member Enumeration Documentation

enum TAO_Service_Callbacks::Profile_Equivalence
 

Enumeration values:
EQUIVALENT 
NOT_EQUIVALENT 
DONT_KNOW 

Definition at line 67 of file Service_Callbacks.h.

00068   {
00069     EQUIVALENT,
00070     NOT_EQUIVALENT,
00071     DONT_KNOW
00072   };


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Service_Callbacks::~TAO_Service_Callbacks void   )  [virtual]
 

Dtor.

Definition at line 14 of file Service_Callbacks.cpp.

00015 {
00016 }


Member Function Documentation

CORBA::ULong TAO_Service_Callbacks::hash_ft TAO_Profile p,
CORBA::ULong  m
[virtual]
 

Calculate the hash value..

Definition at line 56 of file Service_Callbacks.cpp.

Referenced by TAO_ORB_Core::hash_service().

00058 {
00059   return 0;
00060 }

CORBA::Boolean TAO_Service_Callbacks::is_permanent_forward_condition const CORBA::Object_ptr  obj,
const TAO_Service_Context service_context
const [virtual]
 

Definition at line 63 of file Service_Callbacks.cpp.

References CORBA::Object_ptr.

Referenced by TAO_ORB_Core::is_permanent_forward_condition().

00065 {
00066   return false;
00067 }

TAO_Service_Callbacks::Profile_Equivalence TAO_Service_Callbacks::is_profile_equivalent const TAO_Profile ,
const TAO_Profile
[virtual]
 

Check for equivalency of the two profiles.

Definition at line 49 of file Service_Callbacks.cpp.

References DONT_KNOW.

Referenced by TAO_ORB_Core::is_profile_equivalent().

00051 {
00052   return DONT_KNOW;
00053 }

CORBA::Boolean TAO_Service_Callbacks::object_is_nil CORBA::Object_ptr  obj  )  [virtual]
 

Check whether is nil or not.

Definition at line 34 of file Service_Callbacks.cpp.

References CORBA::Object_ptr.

Referenced by TAO_ORB_Core::object_is_nil().

00035 {
00036   // We shouldn't be here at all. But in case if we are here,
00037   // something is wrong. So, we send a true for a is_nil () call
00038   return true;
00039 }

TAO::Invocation_Status TAO_Service_Callbacks::raise_comm_failure IOP::ServiceContextList clist,
TAO_Profile profile
[virtual]
 

Allow the service layer to decide whether the COMM_FAILURE exception should be thrown or a reinvocation is needed

Definition at line 70 of file Service_Callbacks.cpp.

References ACE_THROW_RETURN, and TAO_INVOCATION_RECV_REQUEST_MINOR_CODE.

00074 {
00075   ACE_THROW_RETURN (CORBA::COMM_FAILURE (
00076       CORBA::SystemException::_tao_minor_code (
00077           TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
00078           -1),
00079       CORBA::COMPLETED_MAYBE),
00080       TAO::TAO_INVOKE_FAILURE);
00081 }

TAO::Invocation_Status TAO_Service_Callbacks::raise_transient_failure IOP::ServiceContextList clist,
TAO_Profile profile
[virtual]
 

Allow the service layer to decide whether the TRANSIENT exception should be thrown or a reinvocation is needed

Definition at line 84 of file Service_Callbacks.cpp.

References ACE_THROW_RETURN, and TAO_INVOCATION_RECV_REQUEST_MINOR_CODE.

Referenced by TAO_ORB_Core::service_raise_transient_failure().

00088 {
00089   ACE_THROW_RETURN (CORBA::TRANSIENT (
00090       CORBA::SystemException::_tao_minor_code (
00091           TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
00092           -1),
00093       CORBA::COMPLETED_MAYBE),
00094       TAO::TAO_INVOKE_FAILURE);
00095 }

CORBA::Boolean TAO_Service_Callbacks::reselect_profile TAO_Stub stub,
TAO_Profile *&  pfile
[virtual]
 

Select the profile from MProfile as the needs of the services may be. Return the profile in

Definition at line 26 of file Service_Callbacks.cpp.

Referenced by TAO_ORB_Core::service_profile_reselection().

00028 {
00029   return false;
00030 }

void TAO_Service_Callbacks::reset_profile_flags void   )  [virtual]
 

Reset the profile flags that the services could have.

Definition at line 42 of file Service_Callbacks.cpp.

Referenced by TAO_ORB_Core::reset_service_profile_flags().

00043 {
00044   return;
00045 }

CORBA::Boolean TAO_Service_Callbacks::select_profile TAO_MProfile mprofile,
TAO_Profile *&  pfile
[virtual]
 

Select the profile from MProfile as the needs of the services may be. Return the profile in

Definition at line 19 of file Service_Callbacks.cpp.

Referenced by TAO_ORB_Core::service_profile_selection().

00021 {
00022   return false;
00023 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:23:34 2006 for TAO by doxygen 1.3.6