Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_3598b_Regression / ClientRequest_Interceptor.cpp
blob3c88fae18c2d2776c877cfefccdb5b02c3c01a65
1 #include "ClientRequest_Interceptor.h"
3 #include "tao/CORBA_String.h"
4 #include "tao/debug.h"
5 #include "ace/Log_Msg.h"
7 CORBA::Boolean
8 ClientRequest_Interceptor::success_flag_ = 0;
10 ClientRequest_Interceptor::ClientRequest_Interceptor (void)
11 : name_ ("ClientRequest_Interceptor")
15 ClientRequest_Interceptor::~ClientRequest_Interceptor (void)
19 char *
20 ClientRequest_Interceptor::name ()
22 return CORBA::string_dup (this->name_);
25 void
26 ClientRequest_Interceptor::destroy ()
28 // No-op
31 void
32 ClientRequest_Interceptor::send_poll (
33 PortableInterceptor::ClientRequestInfo_ptr ri
36 // Print debug
37 CORBA::String_var op =
38 ri->operation ();
41 ACE_DEBUG ((LM_DEBUG,
42 "TAO_FT (%P|%t): ClientRequest_Interceptor::send_poll called for operation: %C\n",
43 op.in ()));
46 void
47 ClientRequest_Interceptor::send_request (
48 PortableInterceptor::ClientRequestInfo_ptr ri)
50 // Print debug
51 CORBA::String_var op =
52 ri->operation ();
55 ACE_DEBUG ((LM_DEBUG,
56 "ClientRequest_Interceptor::send_request called for operation: %C - things are going well...\n",
57 op.in ()));
60 void
61 ClientRequest_Interceptor::receive_reply (
62 PortableInterceptor::ClientRequestInfo_ptr)
64 // No-op
67 void
68 ClientRequest_Interceptor::receive_other (
69 PortableInterceptor::ClientRequestInfo_ptr)
71 // No-op
74 void
75 ClientRequest_Interceptor::receive_exception (
76 PortableInterceptor::ClientRequestInfo_ptr ri)
78 // Print debug
79 CORBA::String_var op =
80 ri->operation ();
83 ACE_DEBUG ((LM_DEBUG,
84 "ClientRequest_Interceptor::receive_exception called for operation: %C - test has succeeded...\n",
85 op.in ()));
86 success_flag_ = 1;