3 * @file EventChannel_Command.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
8 #ifndef TAO_Notify_Tests_EVENTCHANNEL_COMMAND_H
9 #define TAO_Notify_Tests_EVENTCHANNEL_COMMAND_H
10 #include /**/ "ace/pre.h"
12 #include "notify_test_export.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "ace/SString.h"
19 #include "orbsvcs/CosNotifyChannelAdminC.h"
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
23 class TAO_Notify_Service
;
24 TAO_END_VERSIONED_NAMESPACE_DECL
27 * @class TAO_Notify_Tests_EventChannel_Command
29 * @brief Command object for event channels.
31 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_EventChannel_Command
: public TAO_Notify_Tests_Command
35 TAO_Notify_Tests_EventChannel_Command ();
38 virtual ~TAO_Notify_Tests_EventChannel_Command ();
40 /// Parse args and populate options.
41 virtual void init (ACE_Arg_Shifter
& arg_shifter
);
43 /// Execute the command.
44 virtual void execute_i ();
47 virtual const char* get_name ();
48 static const char* name ();
65 CosNotifyChannelAdmin::ChannelID id_
;
67 CosNotification::QoSProperties qos_
;
69 CosNotification::AdminProperties admin_
;
71 /// Flag to tell if the Channel Factory should be collocated.
72 CORBA::Boolean collocated_
;
74 /// Helper method to create a collocated ECF.
75 void create_collocated_ecf ();
78 void handle_create ();
79 void handle_destroy ();
80 void handle_set_qos ();
81 void handle_status ();
84 #include /**/ "ace/post.h"
85 #endif /* TAO_Notify_Tests_EVENTCHANNEL_COMMAND_H */