Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / AMI_Buffering / Test.idl
blob16da88d03aded265e19abbd2439a73daaa8d814b
2 /// Put the interfaces in a module, to avoid global namespace pollution
3 module Test
5 /// A sequence of octets to generate bigger messages
6 typedef sequence<octet> Payload;
8 /// Clients use this interface to send oneway requests
9 interface AMI_Buffering
11 /// A simple operation to test the number of requests received.
12 void receive_data (in Payload the_payload);
14 /// An empty operation to force a flush in the ORB queues
15 oneway void flush ();
17 /// Synchronize the state with the Admin object.
18 /**
19 * Once flush() has been invoked (with the correct buffering
20 * policies) we must use sync() to ensure that both the main
21 * server and the Admin servers are in sync.
23 void sync ();
25 /// Shutdown the server
26 void shutdown ();
29 /// Clients use this interface to query the number of oneway
30 /// requests received.
31 interface AMI_Buffering_Admin
33 /// Number of oneway requests received
34 unsigned long request_count ();
36 /// Number of bytes received
37 unsigned long bytes_received_count ();
39 /// The Oneway_Buffering interface uses this method to report any
40 /// request received.
41 void request_received (in unsigned long payload_length);
43 /// An empty operation to force a flush in the ORB queues
44 void flush ();
46 /// A method to shutdown the ORB
47 /**
48 * This method is used to simplify the test shutdown process
50 void shutdown ();