Class DelegatingMonitor
java.lang.Object
org.eclipse.net4j.util.om.monitor.DelegatingMonitor
- All Implemented Interfaces:
OMMonitor,OMMonitorProgress
- Since:
- 2.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitor
OMMonitor.Async, OMMonitor.AsyncMonitor -
Field Summary
Fields inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitor
DEFAULT_TIME_FACTOR, THOUSANDFields inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorProgress
HUNDRED, ONE, TEN, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbegin()Same as callingbegin(ONE).begin(double totalWork) voidvoiddone()fork()Same as callingfork(ONE).fork(double work) Same as callingforkAsync(ONE).forkAsync(double work) doubledoublegetWork()doublebooleanhasBegun()booleanvoidworked()Same as callingworked(ONE).voidworked(double work)
-
Constructor Details
-
DelegatingMonitor
-
-
Method Details
-
getDelegate
-
hasBegun
- Specified by:
hasBegunin interfaceOMMonitor- Throws:
MonitorCanceledException
-
begin
Description copied from interface:OMMonitorSame as callingbegin(ONE).- Specified by:
beginin interfaceOMMonitor- Throws:
MonitorCanceledException
-
begin
- Specified by:
beginin interfaceOMMonitor- Throws:
MonitorCanceledException
-
checkCanceled
- Specified by:
checkCanceledin interfaceOMMonitor- Throws:
MonitorCanceledException
-
done
public void done() -
fork
Description copied from interface:OMMonitorSame as callingfork(ONE). -
fork
-
forkAsync
Description copied from interface:OMMonitorSame as callingforkAsync(ONE). -
forkAsync
-
getTotalWork
public double getTotalWork()- Specified by:
getTotalWorkin interfaceOMMonitorProgress
-
getWork
public double getWork()- Specified by:
getWorkin interfaceOMMonitorProgress
-
getWorkPercent
public double getWorkPercent()- Specified by:
getWorkPercentin interfaceOMMonitorProgress
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceOMMonitor
-
worked
Description copied from interface:OMMonitorSame as callingworked(ONE).- Specified by:
workedin interfaceOMMonitor- Throws:
MonitorCanceledException
-
worked
- Specified by:
workedin interfaceOMMonitor- Throws:
MonitorCanceledException
-