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 cancelled.voidsetCancelled(boolean cancelled) Sets the cancellation state of this monitor.voidsetTaskName(String name) Sets the name of the current task being monitored.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
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:IMonitorSets the cancellation state of this monitor.- Specified by:
setCancelledin interfaceIMonitor- Parameters:
cancelled-trueto cancel the operation,falseotherwise
-
isCancelled
public boolean isCancelled()Description copied from interface:IMonitorReturns whether this monitor has been cancelled.- Specified by:
isCancelledin interfaceIMonitor- Returns:
trueif the operation has been cancelled,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
-
setTaskName
Description copied from interface:IMonitorSets the name of the current task being monitored.- Specified by:
setTaskNamein interfaceIMonitor- Parameters:
name- the task name
-