ICE 3.4.2
[php5-ice-freebsdport.git] / java / test / Ice / retry / Client.java
blobd235dab9d51108c5474778b37747dd518ead7c27
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 package test.Ice.retry;
12 import test.Ice.retry.Test.RetryPrx;
14 public class Client extends test.Util.Application
16 public int run(String[] args)
18 Ice.Communicator communicator = communicator();
19 RetryPrx retry = AllTests.allTests(communicator, getWriter());
20 retry.shutdown();
21 return 0;
24 protected Ice.InitializationData getInitData(Ice.StringSeqHolder argsH)
26 Ice.InitializationData initData = new Ice.InitializationData();
27 initData.properties = Ice.Util.createProperties(argsH);
28 initData.properties.setProperty("Ice.Package.Test", "test.Ice.retry");
30 // For this test, we want to disable retries.
32 initData.properties.setProperty("Ice.RetryIntervals", "-1");
35 // We don't want connection warnings because of the timeout
37 initData.properties.setProperty("Ice.Warn.Connections", "0");
39 return initData;
42 public static void main(String[] args)
44 Client app = new Client();
45 int result = app.main("Client", args);
46 System.gc();
47 System.exit(result);