3 * @file Consumer_Client.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
8 #ifndef TAO_Notify_CONSUMER_CLIENT_H
9 #define TAO_Notify_CONSUMER_CLIENT_H
11 #include /**/ "ace/pre.h"
13 #include "ace/SString.h"
15 #include "ORB_Objects.h"
16 #include "tao/RTCORBA/RTCORBA.h"
18 class TAO_Notify_ThreadPool_Consumer
;
21 * @class TAO_Notify_ThreadPool_Consumer_Client
25 class TAO_Notify_ThreadPool_Consumer_Client
: public ACE_Task_Base
29 TAO_Notify_ThreadPool_Consumer_Client (TAO_Notify_ORB_Objects
& orb_objects
);
32 ~TAO_Notify_ThreadPool_Consumer_Client ();
41 int parse_args (int argc
, ACE_TCHAR
*argv
[]);
43 /// The thread entry point.
50 /// Create an RT POA with a single threadpool.
51 PortableServer::POA_ptr
create_rt_poa ();
54 TAO_Notify_ORB_Objects orb_objects_
;
56 /// Lock to serialize internal state.
57 TAO_SYNCH_MUTEX lock_
;
59 /// Count how many consumers are done
60 int consumer_done_count_
;
63 TAO_Notify_ThreadPool_Consumer
* consumer_
;
65 /// ProxySuppler Thread count.
66 int proxy_supplier_thread_count_
;
68 /// Max events that we expect to receive.
75 #include /**/ "ace/post.h"
76 #endif /* TAO_Notify_CONSUMER_CLIENT_H */