public class DefaultCancellableMonitorable extends java.lang.Object implements CancellableMonitorable
Constructor and Description |
---|
DefaultCancellableMonitorable() |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentStep()
Return the number of steps processed
|
int |
getFinalStep() |
int |
getInitialStep() |
boolean |
isCanceled()
Determines if the related task must be canceled.
|
boolean |
isDeterminatedProcess()
Tells if the process is monitoring is defined
|
void |
reportStep()
Report to monitor that an individual step
was processed.
|
void |
reset()
Sets initial default monitorization values
|
void |
setCanceled(boolean canceled)
Sets if the related task must be canceled.
|
void |
setCurrentStep(int currentStep)
Allows to modify current step.
|
void |
setDeterminatedProcess(boolean determinated)
Reports to the monitor that the process is
monitoring is (or not) a defined process.
|
void |
setFinalStep(int step)
report monitor what number has the final
step of the process is monitoring
(no apply to undefined process)
|
void |
setInitialStep(int step)
report monitor what number has the initial
step of the process is monitoring
|
public boolean isCanceled()
Cancellable
Determines if the related task must be canceled.
isCanceled
in interface Cancellable
true
if task must been canceled; otherwise false
Cancellable.setCanceled(boolean)
public void reportStep()
Monitorable
reportStep
in interface Monitorable
public int getCurrentStep()
Monitorable
getCurrentStep
in interface Monitorable
public void setInitialStep(int step)
Monitorable
setInitialStep
in interface Monitorable
public void setFinalStep(int step)
Monitorable
setFinalStep
in interface Monitorable
public void setDeterminatedProcess(boolean determinated)
Monitorable
setDeterminatedProcess
in interface Monitorable
public boolean isDeterminatedProcess()
Monitorable
isDeterminatedProcess
in interface Monitorable
public void setCanceled(boolean canceled)
Cancellable
Sets if the related task must be canceled.
setCanceled
in interface Cancellable
canceled
- true
if the task must be canceled; otherwise false
Cancellable.isCanceled()
public void reset()
Monitorable
reset
in interface Monitorable
public int getInitialStep()
getInitialStep
in interface Monitorable
public int getFinalStep()
getFinalStep
in interface Monitorable
public void setCurrentStep(int currentStep)
Monitorable
setCurrentStep
in interface Monitorable