3 * @file Supplier_Client.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
8 #ifndef TAO_Notify_SUPPLIER_CLIENT_H
9 #define TAO_Notify_SUPPLIER_CLIENT_H
10 #include /**/ "ace/pre.h"
12 #include "ORB_Objects.h"
14 #include "ace/SString.h"
16 class TAO_Notify_ThreadPool_Supplier
;
19 * @class TAO_Notify_ThreadPool_Supplier_Client
21 * @brief Supplier Client
23 class TAO_Notify_ThreadPool_Supplier_Client
: public ACE_Task_Base
27 TAO_Notify_ThreadPool_Supplier_Client (TAO_Notify_ORB_Objects
& orb_objects
);
30 ~TAO_Notify_ThreadPool_Supplier_Client ();
39 int parse_args (int argc
, ACE_TCHAR
*argv
[]);
41 /// The thread entry point.
42 virtual int svc (void);
46 CosNotifyChannelAdmin::EventChannel_ptr
create_ec (void);
48 /// Write ior to file.
49 void write_ior (void);
52 TAO_Notify_ORB_Objects orb_objects_
;
54 /// Supplier that sends events.
55 TAO_Notify_ThreadPool_Supplier
* supplier_
;
57 /// The Number of consumers that we expect to send an event to.
60 /// Name of the file to write the supplier ior to.
61 ACE_TString ior_file_name_
;
63 /// Number of threads at the EC
66 /// Number of Therads at the ProxyConsumer.
67 int proxy_consumer_thread_count_
;
69 // Max events to send.
73 #include /**/ "ace/post.h"
74 #endif /* TAO_Notify_SUPPLIER_CLIENT_H */