Package org.pgcodekeeper.core.monitor
Class NullMonitor
java.lang.Object
org.pgcodekeeper.core.monitor.NullMonitor
- All Implemented Interfaces:
IMonitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a sub-monitor for tracking a portion of this monitor's work.booleanReturns whether this monitor has been canceled.voidsetCanceled(boolean cancelled) Sets the cancellation state of this monitor.voidsetWorkRemaining(int size) Sets the number of work units remaining for this monitor.voidworked(int i) Notifies that a given number of work units have been completed.
-
Constructor Details
-
NullMonitor
public NullMonitor()
-
-
Method Details
-
setCanceled
public void setCanceled(boolean cancelled) Description copied from interface:IMonitorSets the cancellation state of this monitor.- Specified by:
setCanceledin interfaceIMonitor- Parameters:
cancelled-trueto cancel the operation,falseotherwise
-
isCanceled
public boolean isCanceled()Description copied from interface:IMonitorReturns whether this monitor has been canceled.- Specified by:
isCanceledin interfaceIMonitor- Returns:
trueif the operation has been canceled,falseotherwise
-
worked
public void worked(int i) Description copied from interface:IMonitorNotifies that a given number of work units have been completed. -
createSubMonitor
Description copied from interface:IMonitorCreates a sub-monitor for tracking a portion of this monitor's work.- Specified by:
createSubMonitorin interfaceIMonitor- Returns:
- a new sub-monitor instance
-
setWorkRemaining
public void setWorkRemaining(int size) Description copied from interface:IMonitorSets the number of work units remaining for this monitor.- Specified by:
setWorkRemainingin interfaceIMonitor- Parameters:
size- the number of work units remaining
-