diff options
Diffstat (limited to 'java/test/Ice/timeout/Server.java')
-rw-r--r-- | java/test/Ice/timeout/Server.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/java/test/Ice/timeout/Server.java b/java/test/Ice/timeout/Server.java deleted file mode 100644 index b4006770863..00000000000 --- a/java/test/Ice/timeout/Server.java +++ /dev/null @@ -1,46 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2014 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. -// -// ********************************************************************** - -package test.Ice.timeout; - -public class Server extends test.Util.Application -{ - @Override - public int run(String[] args) - { - Ice.Communicator communicator = communicator(); - Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); - adapter.add(new TimeoutI(), communicator.stringToIdentity("timeout")); - adapter.activate(); - return WAIT; - } - - @Override - protected Ice.InitializationData getInitData(Ice.StringSeqHolder argsH) - { - Ice.InitializationData initData = new Ice.InitializationData(); - initData.properties = Ice.Util.createProperties(argsH); - initData.properties.setProperty("Ice.Package.Test", "test.Ice.timeout"); - initData.properties.setProperty("TestAdapter.Endpoints", "default -p 12010"); - - // - // This test kills connections, so we don't want warnings. - // - initData.properties.setProperty("Ice.Warn.Connections", "0"); - return initData; - } - - public static void main(String[] args) - { - Server app = new Server(); - int result = app.main("Server", args); - System.gc(); - System.exit(result); - } -} |