String configFile = "";
String host = "";
int port = -1; //es wurde kein Argument -port= �bergeben
String job = "";
SOSString sosString = null;
try {
sosString = new SOSString();
if (args.length == 0) {
System.err.println("Usage: ");
System.out.println("sos.scheduler.launcher.JobSchedulerLoadTestLauncher");
System.out.println(" -config= xml configuration file");
System.out.println(" -host= host (optional)");
System.out.println(" -port= port (optional)");
System.out.println(" -job= job (optional)");
System.out.println();
System.out.println("for example:");
System.err.println("java -cp=. sos.scheduler.launcher.JobSchedulerLoadTestLauncher -config=<xml configuration file> -host=<host> -port=<port> -job=<job name>");
System.exit(0);
}
sos.util.SOSStandardLogger sosLogger = new sos.util.SOSStandardLogger(9);
JobSchedulerLoadTestLauncher launcher = null;
for (int i = 0; i < args.length; i++) {
String[] currArg = args[i].split("=");
if (currArg[0].equalsIgnoreCase("-config")) {
configFile = currArg[1];
} else if (currArg[0].equalsIgnoreCase("-host")) {
host = currArg[1];
} else if (currArg[0].equalsIgnoreCase("-port")) {
if (sosString.parseToString(currArg[1]).length() > 0) {
port = Integer.parseInt(currArg[1]);
}
} else if (currArg[0].equalsIgnoreCase("-job")) {
job = currArg[1];
}