1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
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());
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");
42 public static void main(String
[] args
)
44 Client app
= new Client();
45 int result
= app
.main("Client", args
);