no message

main
이범준 7 months ago
parent 4f856f2a18
commit 99f532220d

@ -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 {
}
}
Loading…
Cancel
Save