Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / Basic / IdAssignment.h
blob329d4d2388c031f4e455bf2d0b112e1b8d0a8468
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file IdAssignment.h
6 * Test to check if ec, admin are assigned id's correctly.
8 * @author Chanaka Liyanaarachchi <chanaka@ociweb.com> and Pradeep Gore <pradeep@cs.wustl.edu>
9 */
10 //=============================================================================
13 #ifndef IDASSIGNMENT_H
14 #define IDASSIGNMENT_H
16 #include "orbsvcs/CosNotifyChannelAdminC.h"
18 class IdAssignment
20 public:
21 IdAssignment (void);
22 ~IdAssignment (void);
24 int parse_args (int argc,
25 ACE_TCHAR *argv[]);
26 void init (int argc,
27 ACE_TCHAR *argv[]);
28 void run_test (void);
30 private:
31 CosNotifyChannelAdmin::ChannelID create_ec (void);
32 void destroy_ec (CosNotifyChannelAdmin::ChannelID id);
34 CosNotifyChannelAdmin::AdminID create_supplier_admin (
35 CosNotifyChannelAdmin::ChannelID channel_id
37 CosNotifyChannelAdmin::AdminID create_consumer_admin (
38 CosNotifyChannelAdmin::ChannelID channel_id
41 void destroy_consumer_admin (CosNotifyChannelAdmin::ChannelID channel_id,
42 CosNotifyChannelAdmin::AdminID admin_id);
43 void destroy_supplier_admin (CosNotifyChannelAdmin::ChannelID channel_id,
44 CosNotifyChannelAdmin::AdminID admin_id);
46 bool default_consumer_admin_test (CosNotifyChannelAdmin::ChannelID channel_id);
47 bool default_supplier_admin_test (CosNotifyChannelAdmin::ChannelID channel_id);
50 // = Data members.
51 CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_;
53 /// Number of iterations for the test.
54 int iter_;
56 /// Numbers of EC's to create.
57 int ec_count_;
59 /// Number of consumer admins to create per ec.
60 int consumer_admin_count_;
62 /// Number of consumer admins to create per ec.
63 int supplier_admin_count_;
66 #endif /* IDASSIGNMENT_H */