Service_Callbacks.cpp

Go to the documentation of this file.
00001 #include "tao/Service_Callbacks.h"
00002 #include "tao/ORB_Constants.h"
00003 #include "tao/SystemException.h"
00004 #include "tao/Invocation_Utils.h"
00005 
00006 ACE_RCSID (tao,
00007            Service_Callbacks,
00008            "$Id: Service_Callbacks.cpp 76874 2007-02-02 14:12:41Z johnnyw $")
00009 
00010 
00011 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00012 
00013 TAO_Service_Callbacks::~TAO_Service_Callbacks (void)
00014 {
00015 }
00016 
00017 CORBA::Boolean
00018 TAO_Service_Callbacks::select_profile (const TAO_MProfile & /*mprofile*/,
00019                                        TAO_Profile *& /*pfile*/)
00020 {
00021   return false;
00022 }
00023 
00024 
00025 CORBA::Boolean
00026 TAO_Service_Callbacks::object_is_nil (CORBA::Object_ptr /* obj */)
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 }
00032 
00033 
00034 TAO_Service_Callbacks::Profile_Equivalence
00035 TAO_Service_Callbacks::is_profile_equivalent (const TAO_Profile *,
00036                                               const TAO_Profile *)
00037 {
00038   return DONT_KNOW;
00039 }
00040 
00041 CORBA::ULong
00042 TAO_Service_Callbacks::hash_ft (TAO_Profile *,
00043                                 CORBA::ULong )
00044 {
00045   return 0;
00046 }
00047 
00048 CORBA::Boolean
00049 TAO_Service_Callbacks::is_permanent_forward_condition (const CORBA::Object_ptr,
00050                                                        const TAO_Service_Context &) const
00051 {
00052   return false;
00053 }
00054 
00055 TAO::Invocation_Status
00056 TAO_Service_Callbacks::raise_comm_failure (
00057     IOP::ServiceContextList &,
00058     TAO_Profile * /*profile*/)
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 }
00066 
00067 TAO::Invocation_Status
00068 TAO_Service_Callbacks::raise_transient_failure (
00069     IOP::ServiceContextList &,
00070     TAO_Profile * /*profile*/ )
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 }
00078 
00079 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:37:52 2010 for TAO by  doxygen 1.4.7