public class DefaultCancellableMonitorable extends 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()
CancellableDetermines if the related task must be canceled.
isCanceled in interface Cancellabletrue if task must been canceled; otherwise falseCancellable.setCanceled(boolean)public void reportStep()
MonitorablereportStep in interface Monitorablepublic int getCurrentStep()
MonitorablegetCurrentStep in interface Monitorablepublic void setInitialStep(int step)
MonitorablesetInitialStep in interface Monitorablepublic void setFinalStep(int step)
MonitorablesetFinalStep in interface Monitorablepublic void setDeterminatedProcess(boolean determinated)
MonitorablesetDeterminatedProcess in interface Monitorablepublic boolean isDeterminatedProcess()
MonitorableisDeterminatedProcess in interface Monitorablepublic void setCanceled(boolean canceled)
CancellableSets if the related task must be canceled.
setCanceled in interface Cancellablecanceled - true if the task must be canceled; otherwise falseCancellable.isCanceled()public void reset()
Monitorablereset in interface Monitorablepublic int getInitialStep()
getInitialStep in interface Monitorablepublic int getFinalStep()
getFinalStep in interface Monitorablepublic void setCurrentStep(int currentStep)
MonitorablesetCurrentStep in interface Monitorable