Cross Reference: SimpleProcessMonitor.java
xref
: /
owl-s
/
src
/
org
/
mindswap
/
owls
/
process
/
execution
/
SimpleProcessMonitor.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2
ronwalf
/*
2
ronwalf
* Created on Jun 27, 2005
2
ronwalf
*/
2
ronwalf
package
org
.
mindswap
.
owls
.
process
.
execution
;
2
ronwalf
2
ronwalf
import
org
.
mindswap
.
exceptions
.
ExecutionException
;
2
ronwalf
import
org
.
mindswap
.
owls
.
process
.
Process
;
2
ronwalf
import
org
.
mindswap
.
query
.
ValueMap
;
2
ronwalf
2
ronwalf
/**
2
ronwalf
* A simple process monitor implementation that prints the progress to console
2
ronwalf
*
2
ronwalf
*
@author
Evren Sirin
2
ronwalf
*
2
ronwalf
*/
3
daenzerorama
public
class
SimpleProcessMonitor
extends
AbstractMonitor
{
3
daenzerorama
2
ronwalf
public
void
executionStarted
() {
2
ronwalf
out
.
println
();
2
ronwalf
out
.
flush
();
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
executionFinished
() {
2
ronwalf
out
.
println
();
2
ronwalf
out
.
flush
();
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
executionStarted
(
Process
process
,
ValueMap
inputs
) {
2
ronwalf
out
.
println
(
"Start executing process "
+
process
);
2
ronwalf
out
.
flush
();
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
executionFinished
(
Process
process
,
ValueMap
inputs
,
ValueMap
outputs
) {
2
ronwalf
out
.
println
(
"Execution finished for "
+
process
);
2
ronwalf
out
.
flush
();
2
ronwalf
}
2
ronwalf
2
ronwalf
public
void
executionFailed
(
ExecutionException
e) {
2
ronwalf
out
.
println
(
"Execution failed: "
);
2
ronwalf
out
.
println
( e );
2
ronwalf
out
.
flush
();
2
ronwalf
}
2
ronwalf
}