Commit 6eac4c9f authored by duminil's avatar duminil
Browse files

RegionChooser : Commenting out debug code

parent b693599c
......@@ -64,14 +64,14 @@ public void processJob(Geometry poly, JSObject nfButton) throws InterruptedExcep
ex.printStackTrace();
}
// Wait for timeout, failure or that all tests pass
long timeout = 1000 * 60 * 3l; // 3 minutes maximum
long interval = 10000l;
while (!job.hasFinished() && !job.hasFailed() && timeout > 0) {
Thread.sleep(interval);
timeout -= interval;
System.out.println("+");
}
// // Wait for timeout, failure or that all tests pass
// long timeout = 1000 * 60 * 3l; // 3 minutes maximum
// long interval = 10000l;
// while (!job.hasFinished() && !job.hasFailed() && timeout > 0) {
// Thread.sleep(interval);
// timeout -= interval;
// System.out.println("+");
// }
}
@Override
......
......@@ -6,7 +6,7 @@
* @author Marcel Bruse
*/
public enum JobStatus {
UNKOWN(0), // A local NF4J code, may be set in rare cases, if synchronization with nF fails.
UNKNOWN(0), // A local NF4J code, may be set in rare cases, if synchronization with nF fails.
LOCAL(10), // Job has not been sent yet and is known by the local system only.
SENT(20), // Job has been sent or it is assumed that it has been set before.
PENDING(30), // Export job has been enqueued and waits for execution
......
......@@ -208,7 +208,7 @@ public synchronized void setStatusForCode(int statusCode) {
case 30:
setStatus(JobStatus.FINISHED); break;
default:
setStatus(JobStatus.UNKOWN);
setStatus(JobStatus.UNKNOWN);
}
}
......
......@@ -175,7 +175,7 @@ public synchronized void setStatusForCode(int statusCode) {
case 80:
setStatus(JobStatus.IMPORTED_WARNING); break;
default:
setStatus(JobStatus.UNKOWN);
setStatus(JobStatus.UNKNOWN);
}
}
......
......@@ -48,7 +48,7 @@ public void run() {
* This method is superfluous I guess? TODO: Please check and refactor it.
*/
private void signalError(String errorMessage) {
job.setStatus(JobStatus.UNKOWN, Optional.of(errorMessage));
job.setStatus(JobStatus.UNKNOWN, Optional.of(errorMessage));
}
}
\ No newline at end of file
......@@ -48,7 +48,7 @@ public void run() {
* This method is superfluous I guess? TODO: Please check and refactor it.
*/
private void signalError(String errorMessage) {
job.setStatus(JobStatus.UNKOWN, Optional.of(errorMessage));
job.setStatus(JobStatus.UNKNOWN, Optional.of(errorMessage));
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment