diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-09-22 12:53:39 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-09-22 12:53:39 +0000 |
commit | bfdd9834dafd44a84753591220657ca1cc6a3098 (patch) | |
tree | bc982ee6aa3611d9143c6056156b2b007093d946 /java/demo/IceGrid/simple/HelloI.java | |
parent | Added include of <sys/loadavg.h> for Sun (diff) | |
download | ice-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.java | 26 |
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(); + } +} |