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, THOUSAND
Fields inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorProgress
HUNDRED, ONE, TEN, ZERO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbegin()
Same as callingbegin(ONE)
.begin
(double totalWork) void
void
done()
fork()
Same as callingfork(ONE)
.fork
(double work) Same as callingforkAsync(ONE)
.forkAsync
(double work) double
double
getWork()
double
boolean
hasBegun()
boolean
void
worked()
Same as callingworked(ONE)
.void
worked
(double work)
-
Constructor Details
-
DelegatingMonitor
-
-
Method Details
-
getDelegate
-
hasBegun
- Specified by:
hasBegun
in interfaceOMMonitor
- Throws:
MonitorCanceledException
-
begin
Description copied from interface:OMMonitor
Same as callingbegin(ONE)
.- Specified by:
begin
in interfaceOMMonitor
- Throws:
MonitorCanceledException
-
begin
- Specified by:
begin
in interfaceOMMonitor
- Throws:
MonitorCanceledException
-
checkCanceled
- Specified by:
checkCanceled
in interfaceOMMonitor
- Throws:
MonitorCanceledException
-
done
public void done() -
fork
Description copied from interface:OMMonitor
Same as callingfork(ONE)
. -
fork
-
forkAsync
Description copied from interface:OMMonitor
Same as callingforkAsync(ONE)
. -
forkAsync
-
getTotalWork
public double getTotalWork()- Specified by:
getTotalWork
in interfaceOMMonitorProgress
-
getWork
public double getWork()- Specified by:
getWork
in interfaceOMMonitorProgress
-
getWorkPercent
public double getWorkPercent()- Specified by:
getWorkPercent
in interfaceOMMonitorProgress
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceled
in interfaceOMMonitor
-
worked
Description copied from interface:OMMonitor
Same as callingworked(ONE)
.- Specified by:
worked
in interfaceOMMonitor
- Throws:
MonitorCanceledException
-
worked
- Specified by:
worked
in interfaceOMMonitor
- Throws:
MonitorCanceledException
-