|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.ExecutionMonitor
org.knime.base.node.io.filereader.FileReaderExecutionMonitor
public class FileReaderExecutionMonitor
Execution monitor used by the FileAnalyzer
. Supports immediate
interruption of execution (in contrast to user cancellation, which finishes
fast - but not immediate).
IMPORTANT NOTE: In contrast to the default implementation cancel and interrupt requests must be set with the execution monitor, not the progress monitor!
Constructor Summary | |
---|---|
FileReaderExecutionMonitor()
Creates a new object with a default progress monitor. |
|
FileReaderExecutionMonitor(NodeProgressMonitor progressMonitor)
Creates a new object with the specified NodeProgressMonitor . |
Method Summary | |
---|---|
void |
checkCanceled()
|
void |
checkInterrupted()
Throws an exception if the execution was interrupted. |
ExecutionMonitor |
createSubProgress(double maxProg)
Creates an execution monitor with a partial progress range. |
void |
setExecuteCanceled()
Causes execution to finish fast (with a - more or less - usable result). |
void |
setExecuteInterrupted()
Called when the execution should be interrupted immediately without result. |
boolean |
wasCanceled()
Checks the cancel flag. |
boolean |
wasInterrupted()
Checks if the execution was interrupted. |
Methods inherited from class org.knime.core.node.ExecutionMonitor |
---|
createSilentSubProgress, getProgressMonitor, setMessage, setProgress, setProgress, setProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
FileReaderExecutionMonitor()
FileReaderExecutionMonitor(NodeProgressMonitor progressMonitor)
NodeProgressMonitor
.
progressMonitor
- the progress monitor to use.Method Detail |
---|
public void checkCanceled() throws CanceledExecutionException
checkCanceled
in class ExecutionMonitor
CanceledExecutionException
- which indicated the execution will be
canceled by this call.NodeProgressMonitor.checkCanceled()
public void setExecuteCanceled()
public boolean wasCanceled()
NOTE: if the cancellation was triggered in the progress monitor, this method will return false. Always cancel execution through this execution monitor.
public void checkInterrupted() throws InterruptedExecutionException
InterruptedExecutionException
- if execution was interruptedpublic void setExecuteInterrupted()
public boolean wasInterrupted()
public ExecutionMonitor createSubProgress(double maxProg)
createSubProgress
in class ExecutionMonitor
maxProg
- The fraction of the progress this sub progress
contributes to the whole progress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |