2 //=============================================================================
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>
10 //=============================================================================
13 #ifndef IDASSIGNMENT_H
14 #define IDASSIGNMENT_H
16 #include "orbsvcs/CosNotifyChannelAdminC.h"
24 int parse_args (int argc
,
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
);
51 CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_
;
53 /// Number of iterations for the test.
56 /// Numbers of EC's to create.
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 */