2 #ifndef BIG_ONEWAYS_COORDINATOR_H
3 #define BIG_ONEWAYS_COORDINATOR_H
4 #include /**/ "ace/pre.h"
8 /// Implement the Test::Coordinator interface
10 : public virtual POA_Test::Coordinator
14 Coordinator (CORBA::ULong peer_count
);
17 /// Check if all the peers have registered already
18 int has_all_peers () const;
20 /// Check a session on each peer
21 void create_session_list (Test::Session_Control_ptr session_control
,
22 CORBA::ULong payload_size
,
23 CORBA::ULong thread_count
,
24 CORBA::ULong message_count
,
25 Test::Session_List
&session_list
);
27 /// Shutdown all the peers
28 void shutdown_all_peers ();
30 // = The skeleton methods
31 virtual void add_peer (Test::Peer_ptr peer
);
34 /// Protected Destructor, call _remove_ref() instead
35 virtual ~Coordinator ();
38 /// Store a reference to each peer
39 Test::Peer_var
*peers_
;
41 /// Current number of elements in the array
48 #include /**/ "ace/post.h"
49 #endif /* BIG_ONEWAYS_COORDINATOR_H */