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
);
16 /// Check if all the peers have registered already
17 int has_all_peers () const;
19 /// Check a session on each peer
20 void create_session_list (Test::Session_Control_ptr session_control
,
21 CORBA::ULong payload_size
,
22 CORBA::ULong thread_count
,
23 CORBA::ULong message_count
,
24 Test::Session_List
&session_list
);
26 /// Shutdown all the peers
27 void shutdown_all_peers ();
29 // = The skeleton methods
30 virtual void add_peer (Test::Peer_ptr peer
);
33 /// Protected destructor, call _remove_ref() to delete
34 virtual ~Coordinator ();
37 /// Store a reference to each peer
38 Test::Peer_var
*peers_
;
40 /// Current number of elements in the array
47 #include /**/ "ace/post.h"
48 #endif /* BIG_ONEWAYS_COORDINATOR_H */