summaryrefslogtreecommitdiff
path: root/java/demo/Manual/lifecycle/Server.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/demo/Manual/lifecycle/Server.java')
-rw-r--r--java/demo/Manual/lifecycle/Server.java60
1 files changed, 0 insertions, 60 deletions
diff --git a/java/demo/Manual/lifecycle/Server.java b/java/demo/Manual/lifecycle/Server.java
deleted file mode 100644
index 515a74eac6e..00000000000
--- a/java/demo/Manual/lifecycle/Server.java
+++ /dev/null
@@ -1,60 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2015 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 FilesystemI.*;
-
-class Server extends Ice.Application
-{
- @Override
- public int
- run(String[] args)
- {
- //
- // Terminate cleanly on receipt of a signal.
- //
- shutdownOnInterrupt();
-
- //
- // Create an object adapter
- //
- Ice.ObjectAdapter adapter = communicator().createObjectAdapterWithEndpoints(
- "LifecycleFilesystem", "default -h localhost -p 10000");
-
- //
- // Create the root directory.
- //
- DirectoryI root = new DirectoryI();
- Ice.Identity id = new Ice.Identity();
- id.name = "RootDir";
- adapter.add(root, id);
-
- //
- // All objects are created, allow client requests now.
- //
- adapter.activate();
-
- //
- // Wait until we are done.
- //
- communicator().waitForShutdown();
- if(interrupted())
- {
- System.err.println(appName() + ": received signal, shutting down");
- }
-
- return 0;
- }
-
- static public void
- main(String[] args)
- {
- Server app = new Server();
- app.main("demo.book.lifecycle.Server", args);
- }
-}