Cross Reference: AbstractMonitor.java
xref
: /
owl-s
/
src
/
org
/
mindswap
/
owls
/
process
/
execution
/
AbstractMonitor.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
3
daenzerorama
package
org
.
mindswap
.
owls
.
process
.
execution
;
3
daenzerorama
3
daenzerorama
import
java
.
io
.
PrintWriter
;
3
daenzerorama
import
java
.
io
.
Writer
;
3
daenzerorama
3
daenzerorama
import
org
.
mindswap
.
exceptions
.
ExecutionException
;
4
daenzerorama
import
org
.
mindswap
.
owls
.
process
.
AtomicProcess
;
3
daenzerorama
import
org
.
mindswap
.
owls
.
process
.
Process
;
3
daenzerorama
import
org
.
mindswap
.
query
.
ValueMap
;
3
daenzerorama
3
daenzerorama
public
abstract
class
AbstractMonitor
implements
ProcessMonitor
{
3
daenzerorama
protected
PrintWriter
out
;
3
daenzerorama
protected
int
monitorFilter
;
3
daenzerorama
3
daenzerorama
public
AbstractMonitor
() {
3
daenzerorama
this
(
new
PrintWriter
(
System
.
out
));
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
AbstractMonitor
(
Writer
writer
) {
3
daenzerorama
monitorFilter
=
Process
.
ANY
;
3
daenzerorama
3
daenzerorama
setWriter
(
writer
);
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
executionContinued
(
Process
process
) {
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
executionFailed
(
ExecutionException
e) {
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
executionFinished
() {
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
executionFinished
(
Process
process
,
ValueMap
inputs
,
ValueMap
outputs
) {
3
daenzerorama
}
3
daenzerorama
4
daenzerorama
public
void
executionInterrupted
(
Process
process
,
AtomicProcess
atomicProcess
) {
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
executionStarted
() {
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
executionStarted
(
Process
process
,
ValueMap
inputs
) {
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
intermediateResultsReceived
(
ValueMap
values
) {
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
int
getMonitorFilter
() {
3
daenzerorama
return
monitorFilter
;
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
public
void
setMonitorFilter
(
int
processType
) {
3
daenzerorama
this
.
monitorFilter
=
processType
;
3
daenzerorama
}
3
daenzerorama
3
daenzerorama
private
void
setWriter
(
Writer
writer
) {
3
daenzerorama
this
.
out
= (
writer
instanceof
PrintWriter
)
3
daenzerorama
? (
PrintWriter
)
writer
3
daenzerorama
:
new
PrintWriter
(
writer
);
3
daenzerorama
}
3
daenzerorama
}