|
|
|
|
@ -39,6 +39,24 @@ import org.quartz.PersistJobDataAfterExecution;
|
|
|
|
|
|
|
|
|
|
private String g_strTenel = "";
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
String str = "";
|
|
|
|
|
if (args.length > 0) {
|
|
|
|
|
str = args[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (str.length() != 8) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
DumbJob obj = new DumbJob();
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
obj.runAPI(str);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DumbJob() {
|
|
|
|
|
try {
|
|
|
|
|
@ -83,45 +101,16 @@ import org.quartz.PersistJobDataAfterExecution;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
String str = "";
|
|
|
|
|
if (args.length > 0) {
|
|
|
|
|
str = args[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (str.length() != 8) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
DumbJob obj = new DumbJob();
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
obj.runAPI(str);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setState(ArrayList<String> state) {
|
|
|
|
|
this.state = state;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
|
|
|
|
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
|
|
|
|
System.out.println("Job Executed [" + new Date(System.currentTimeMillis()) + "]");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
runAPI(this.state.get(0).toString());
|
|
|
|
|
}
|
|
|
|
|
@ -320,5 +309,4 @@ public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|