blob: a8124b09e5cf6abf115096cdea2238ee93dbb4fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/* -*- C++ -*- */
/**
* @file Supplier_Client.h
*
* @author Pradeep Gore <pradeep@oomworks.com>
*/
#ifndef TAO_Notify_SUPPLIER_CLIENT_H
#define TAO_Notify_SUPPLIER_CLIENT_H
#include /**/ "ace/pre.h"
#include "ORB_Objects.h"
#include "ace/Task.h"
#include "ace/SString.h"
class TAO_Notify_ThreadPool_Supplier;
/**
* @class TAO_Notify_ThreadPool_Supplier_Client
*
* @brief Supplier Client
*/
class TAO_Notify_ThreadPool_Supplier_Client : public ACE_Task_Base
{
public:
/// Constructor
TAO_Notify_ThreadPool_Supplier_Client (TAO_Notify_ORB_Objects& orb_objects);
/// Destructor
~TAO_Notify_ThreadPool_Supplier_Client ();
/// Init
void _init (void);
/// Run
void run (void);
/// Parse Args
int parse_args (int argc, ACE_TCHAR *argv[]);
/// The thread entry point.
virtual int svc ();
protected:
/// Create an EC
CosNotifyChannelAdmin::EventChannel_ptr create_ec (void);
/// Write ior to file.
void write_ior (void);
/// ORB Objects.
TAO_Notify_ORB_Objects orb_objects_;
/// Supplier that sends events.
TAO_Notify_ThreadPool_Supplier* supplier_;
/// The Number of consumers that we expect to send an event to.
int consumer_count_;
/// Name of the file to write the supplier ior to.
ACE_TString ior_file_name_;
/// Number of threads at the EC
int ec_thread_count_;
/// Number of Therads at the ProxyConsumer.
int proxy_consumer_thread_count_;
// Max events to send.
int max_events_;
};
#include /**/ "ace/post.h"
#endif /* TAO_Notify_SUPPLIER_CLIENT_H */
|