summaryrefslogtreecommitdiff
path: root/java/test/Glacier2/attack/Client.java
blob: d7674481956131f8ec8ca4b25aa848b9faff5e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// **********************************************************************
//
// Copyright (c) 2003-2007 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.
//
// **********************************************************************

public class Client
{
    public static void
    main(String[] args)
    {
	//
	// We want to check whether the client retries for evicted
	// proxies, even with regular retries disabled.
	//
	Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
	Ice.InitializationData initData = new Ice.InitializationData();
	initData.properties = Ice.Util.createProperties(argsH);
	initData.properties.setProperty("Ice.RetryIntervals", "-1");

        AttackClient app = new AttackClient();
        int status = app.main("Client", argsH.value, initData);
	System.gc();
        System.exit(status);
    }
}