#include <Service_Callbacks.h>
Public Types | |
enum | Profile_Equivalence { EQUIVALENT, NOT_EQUIVALENT, DONT_KNOW } |
Public Member Functions | |
virtual | ~TAO_Service_Callbacks (void) |
Dtor. | |
virtual CORBA::Boolean | select_profile (const TAO_MProfile &mprofile, TAO_Profile *&pfile) |
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) |
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 60 of file Service_Callbacks.h.
|
Definition at line 65 of file Service_Callbacks.h.
00066 { 00067 EQUIVALENT, 00068 NOT_EQUIVALENT, 00069 DONT_KNOW 00070 }; |
|
Dtor.
Definition at line 13 of file Service_Callbacks.cpp.
00014 { 00015 } |
|
Calculate the hash value..
Definition at line 42 of file Service_Callbacks.cpp. Referenced by TAO_ORB_Core::hash_service().
00044 {
00045 return 0;
00046 }
|
|
Definition at line 49 of file Service_Callbacks.cpp. References CORBA::Object_ptr. Referenced by TAO_ORB_Core::is_permanent_forward_condition().
00051 { 00052 return false; 00053 } |
|
Check for equivalency of the two profiles.
Definition at line 35 of file Service_Callbacks.cpp. References DONT_KNOW. Referenced by TAO_ORB_Core::is_profile_equivalent().
00037 { 00038 return DONT_KNOW; 00039 } |
|
Check whether is nil or not.
Definition at line 26 of file Service_Callbacks.cpp. References CORBA::Object_ptr. Referenced by TAO_ORB_Core::object_is_nil().
00027 { 00028 // We shouldn't be here at all. But in case if we are here, 00029 // something is wrong. So, we send a true for a is_nil () call 00030 return true; 00031 } |
|
Allow the service layer to decide whether the COMM_FAILURE exception should be thrown or a reinvocation is needed Definition at line 56 of file Service_Callbacks.cpp. References IOP::ServiceContextList, and TAO_INVOCATION_RECV_REQUEST_MINOR_CODE.
00059 { 00060 throw ::CORBA::COMM_FAILURE ( 00061 CORBA::SystemException::_tao_minor_code ( 00062 TAO_INVOCATION_RECV_REQUEST_MINOR_CODE, 00063 -1), 00064 CORBA::COMPLETED_MAYBE); 00065 } |
|
Allow the service layer to decide whether the TRANSIENT exception should be thrown or a reinvocation is needed Definition at line 68 of file Service_Callbacks.cpp. References IOP::ServiceContextList, and TAO_INVOCATION_RECV_REQUEST_MINOR_CODE. Referenced by TAO_ORB_Core::service_raise_transient_failure().
00071 { 00072 throw ::CORBA::TRANSIENT ( 00073 CORBA::SystemException::_tao_minor_code ( 00074 TAO_INVOCATION_RECV_REQUEST_MINOR_CODE, 00075 -1), 00076 CORBA::COMPLETED_MAYBE); 00077 } |
|
Select the profile from MProfile as the needs of the services may be. Return the profile in Definition at line 18 of file Service_Callbacks.cpp. Referenced by TAO_ORB_Core::service_profile_selection().
00020 { 00021 return false; 00022 } |