Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
6eac4c9f
Commit
6eac4c9f
authored
May 27, 2015
by
duminil
Browse files
RegionChooser : Commenting out debug code
parent
b693599c
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/eu/simstadt/nf4j/ExportJobFromJavaFXRegionChooser.java
View file @
6eac4c9f
...
...
@@ -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
*
3
l
;
// 3 minutes maximum
long
interval
=
10000
l
;
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
...
...
src/eu/simstadt/nf4j/JobStatus.java
View file @
6eac4c9f
...
...
@@ -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.
UNK
N
OWN
(
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
...
...
src/eu/simstadt/nf4j/async/AsyncExportJob.java
View file @
6eac4c9f
...
...
@@ -208,7 +208,7 @@ public synchronized void setStatusForCode(int statusCode) {
case
30
:
setStatus
(
JobStatus
.
FINISHED
);
break
;
default
:
setStatus
(
JobStatus
.
UNKOWN
);
setStatus
(
JobStatus
.
UNK
N
OWN
);
}
}
...
...
src/eu/simstadt/nf4j/async/AsyncImportJob.java
View file @
6eac4c9f
...
...
@@ -175,7 +175,7 @@ public synchronized void setStatusForCode(int statusCode) {
case
80
:
setStatus
(
JobStatus
.
IMPORTED_WARNING
);
break
;
default
:
setStatus
(
JobStatus
.
UNKOWN
);
setStatus
(
JobStatus
.
UNK
N
OWN
);
}
}
...
...
src/eu/simstadt/nf4j/async/SendExportJobTask.java
View file @
6eac4c9f
...
...
@@ -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
.
UNK
N
OWN
,
Optional
.
of
(
errorMessage
));
}
}
\ No newline at end of file
src/eu/simstadt/nf4j/async/SendImportJobTask.java
View file @
6eac4c9f
...
...
@@ -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
.
UNK
N
OWN
,
Optional
.
of
(
errorMessage
));
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment