summaryrefslogtreecommitdiff
path: root/TAO/examples/Callback_Quoter/Notifier.idl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Callback_Quoter/Notifier.idl')
-rw-r--r--TAO/examples/Callback_Quoter/Notifier.idl35
1 files changed, 35 insertions, 0 deletions
diff --git a/TAO/examples/Callback_Quoter/Notifier.idl b/TAO/examples/Callback_Quoter/Notifier.idl
new file mode 100644
index 00000000000..1c86ed60537
--- /dev/null
+++ b/TAO/examples/Callback_Quoter/Notifier.idl
@@ -0,0 +1,35 @@
+/* -*- C++ -*- */
+// $Id$
+
+#if !defined (_NOTIFIER_IDL)
+#define _NOTTIFIER_IDL
+
+#include "Consumer.idl"
+
+interface Notifier
+{
+ // = TITLE
+ // The Notifier interface in the Callback_Quoter example which
+ // contains the methods by which the consumer can register,
+ // unregister from the Notifier.
+
+ void register_callback (in string stock_name,
+ in long threshold_value,
+ in Callback_Quoter::Consumer consumer_handler)
+ raises (Callback_Quoter::Invalid_Stock);
+ // Register a distributed callback handler that is invoked when the
+ // given stock reaches the desired threshold value.
+
+ void unregister_callback (in Callback_Quoter::Consumer consumer_handler)
+ raises (Callback_Quoter::Invalid_Handle);
+ // Remove the handler.
+
+ void market_status (in string stock_name,
+ in long stock_value);
+ // Get market status.
+
+ void shutdown ();
+ // Shuts the server down.
+};
+
+#endif /* _NOTIFIER_IDL */