org.eclipse.net4j.util.om.monitor
Class DelegatingMonitor
java.lang.Object
org.eclipse.net4j.util.om.monitor.DelegatingMonitor
- All Implemented Interfaces:
- OMMonitor, OMMonitorProgress
public class DelegatingMonitor
- extends Object
- implements OMMonitor
- Since:
- 2.0
- Author:
- Eike Stepper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingMonitor
public DelegatingMonitor(OMMonitor delegate)
getDelegate
public OMMonitor getDelegate()
hasBegun
public boolean hasBegun()
throws MonitorCanceledException
- Specified by:
hasBegun
in interface OMMonitor
- Throws:
MonitorCanceledException
begin
public OMMonitor begin()
throws MonitorCanceledException
- Description copied from interface:
OMMonitor
- Same as calling
begin(ONE)
.
- Specified by:
begin
in interface OMMonitor
- Throws:
MonitorCanceledException
begin
public OMMonitor begin(double totalWork)
throws MonitorCanceledException
- Specified by:
begin
in interface OMMonitor
- Throws:
MonitorCanceledException
checkCanceled
public void checkCanceled()
throws MonitorCanceledException
- Specified by:
checkCanceled
in interface OMMonitor
- Throws:
MonitorCanceledException
done
public void done()
- Specified by:
done
in interface OMMonitor
fork
public OMMonitor fork()
- Description copied from interface:
OMMonitor
- Same as calling
fork(ONE)
.
- Specified by:
fork
in interface OMMonitor
fork
public OMMonitor fork(double work)
- Specified by:
fork
in interface OMMonitor
forkAsync
public OMMonitor.Async forkAsync()
- Description copied from interface:
OMMonitor
- Same as calling
forkAsync(ONE)
.
- Specified by:
forkAsync
in interface OMMonitor
forkAsync
public OMMonitor.Async forkAsync(double work)
- Specified by:
forkAsync
in interface OMMonitor
getTotalWork
public double getTotalWork()
- Specified by:
getTotalWork
in interface OMMonitorProgress
getWork
public double getWork()
- Specified by:
getWork
in interface OMMonitorProgress
getWorkPercent
public double getWorkPercent()
- Specified by:
getWorkPercent
in interface OMMonitorProgress
isCanceled
public boolean isCanceled()
- Specified by:
isCanceled
in interface OMMonitor
worked
public void worked()
throws MonitorCanceledException
- Description copied from interface:
OMMonitor
- Same as calling
worked(ONE)
.
- Specified by:
worked
in interface OMMonitor
- Throws:
MonitorCanceledException
worked
public void worked(double work)
throws MonitorCanceledException
- Specified by:
worked
in interface OMMonitor
- Throws:
MonitorCanceledException
Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.