summaryrefslogtreecommitdiff
path: root/java/demo/IceGrid/simple/HelloI.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-09-22 12:53:39 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-09-22 12:53:39 +0000
commitbfdd9834dafd44a84753591220657ca1cc6a3098 (patch)
treebc982ee6aa3611d9143c6056156b2b007093d946 /java/demo/IceGrid/simple/HelloI.java
parentAdded include of <sys/loadavg.h> for Sun (diff)
downloadice-bfdd9834dafd44a84753591220657ca1cc6a3098.tar.bz2
ice-bfdd9834dafd44a84753591220657ca1cc6a3098.tar.xz
ice-bfdd9834dafd44a84753591220657ca1cc6a3098.zip
Added IceGrid demo.
Diffstat (limited to 'java/demo/IceGrid/simple/HelloI.java')
-rw-r--r--java/demo/IceGrid/simple/HelloI.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/java/demo/IceGrid/simple/HelloI.java b/java/demo/IceGrid/simple/HelloI.java
new file mode 100644
index 00000000000..e4dea49e024
--- /dev/null
+++ b/java/demo/IceGrid/simple/HelloI.java
@@ -0,0 +1,26 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 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(Ice.Current current)
+ {
+ System.out.println("Hello World!");
+ }
+
+ public void
+ shutdown(Ice.Current current)
+ {
+ System.out.println("Shutting down...");
+ current.adapter.getCommunicator().shutdown();
+ }
+}