public static void main(String[] args) {

		int startPort = 8000;

		int endPort = 8001;

		int TIMESPAN = 10;
		
		String serverIp = "localhost";
		
		String output = "y";
		
		for (int i = 0; i < args.length - 1; i++) {
			if (args[i].equals("-sp")) {
				startPort = Integer.parseInt(args[i + 1]);
			}
			if (args[i].equals("-ep")) {
				endPort = Integer.parseInt(args[i + 1]);
			}
			if (args[i].equals("-t")) {
				TIMESPAN = Integer.parseInt(args[i + 1]);
			}
			if (args[i].equals("-ip")) {
				serverIp = args[i + 1];
			}
			if (args[i].equals("-o")) {
				output = args[i + 1];
			}
		}

		Calendar cal = Calendar.getInstance();
		cal.add(Calendar.SECOND, TIMESPAN);

		int counter = 0;

		String PingMe[] = new String[endPort - startPort];

//		int INTERVALL = 60000;
		//Multiple Server auf versch. IPs/Ports
		for (int i = startPort; i < endPort; i++) {
			PingMe[i - startPort] = "http://" + serverIp + ":" + i + "/xmlrpc";
		}

		// TODO: Multiple Server auf einem Port
		String Servers[] = new String[] { "MyXmlRpcServer" };

		AdminServer adminServer = new AdminServer(PingMe, Servers);

		//While TIMESPAN count RPC Calls
		while (Calendar.getInstance().getTimeInMillis() < cal.getTimeInMillis()) {
			adminServer.startClients();
			if (output.equals("y"))
				adminServer.terminalOutput();
//			try {
//				Thread.sleep(INTERVALL);
//			} catch (InterruptedException e) {
//				e.printStackTrace();
//			}
			counter++;
		}

		System.out.println("RPC Calls in " + TIMESPAN + " seconds:\t" + counter);

	}