summaryrefslogtreecommitdiff
path: root/java/demo/IceDiscovery/hello/HelloI.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/demo/IceDiscovery/hello/HelloI.java')
-rw-r--r--java/demo/IceDiscovery/hello/HelloI.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/java/demo/IceDiscovery/hello/HelloI.java b/java/demo/IceDiscovery/hello/HelloI.java
new file mode 100644
index 00000000000..416ee68e93b
--- /dev/null
+++ b/java/demo/IceDiscovery/hello/HelloI.java
@@ -0,0 +1,36 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+import Demo.*;
+
+public class HelloI extends _HelloDisp
+{
+ public void
+ sayHello(int delay, Ice.Current current)
+ {
+ if(delay > 0)
+ {
+ try
+ {
+ Thread.currentThread().sleep(delay);
+ }
+ catch(InterruptedException ex1)
+ {
+ }
+ }
+ System.out.println("Hello World!");
+ }
+
+ public void
+ shutdown(Ice.Current current)
+ {
+ System.out.println("Shutting down...");
+ current.adapter.getCommunicator().shutdown();
+ }
+}