Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / examples / LoadBalancing / ServerRequestInterceptor.cpp
blob2af202455c513fec25f06d602250fbc7186ddf94
1 #include "ServerRequestInterceptor.h"
3 ServerRequestInterceptor::ServerRequestInterceptor (void)
4 : request_count_ (0)
8 ServerRequestInterceptor::~ServerRequestInterceptor (void)
12 char *
13 ServerRequestInterceptor::name (void)
15 return CORBA::string_dup ("ServerRequestInterceptor");
18 void
19 ServerRequestInterceptor::destroy (void)
23 void
24 ServerRequestInterceptor::receive_request_service_contexts (
25 PortableInterceptor::ServerRequestInfo_ptr /* ri */)
27 ++this->request_count_;
30 void
31 ServerRequestInterceptor::receive_request (
32 PortableInterceptor::ServerRequestInfo_ptr)
36 void
37 ServerRequestInterceptor::send_reply (
38 PortableInterceptor::ServerRequestInfo_ptr /* ri */)
42 void
43 ServerRequestInterceptor::send_exception (
44 PortableInterceptor::ServerRequestInfo_ptr)
48 void
49 ServerRequestInterceptor::send_other (
50 PortableInterceptor::ServerRequestInfo_ptr)
54 CORBA::Long
55 ServerRequestInterceptor::request_count (void)
57 const CORBA::Long r = this->request_count_.value ();
58 this->request_count_ = 0;
60 return r;