org.eclipse.net4j.util.om.monitor
Class NestedMonitor
java.lang.Object
org.eclipse.net4j.util.om.monitor.AbstractMonitor
org.eclipse.net4j.util.om.monitor.NestedMonitor
- All Implemented Interfaces:
- OMMonitor, OMMonitorProgress
- public class NestedMonitor
- extends AbstractMonitor
- Since:
- 2.0
Methods inherited from class org.eclipse.net4j.util.om.monitor.AbstractMonitor |
begin, createAsyncTimerTask, createNestedMonitor, fork, fork, forkAsync, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, worked |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NestedMonitor
public NestedMonitor(AbstractMonitor parent,
double parentWork)
getParent
public AbstractMonitor getParent()
getParentWork
public double getParentWork()
isCanceled
public boolean isCanceled()
checkCanceled
public void checkCanceled()
throws MonitorCanceledException
- Throws:
MonitorCanceledException
begin
public OMMonitor begin(double totalWork)
throws MonitorCanceledException
- Specified by:
begin
in interface OMMonitor
- Overrides:
begin
in class AbstractMonitor
- Throws:
MonitorCanceledException
worked
public void worked(double work)
throws MonitorCanceledException
- Specified by:
worked
in interface OMMonitor
- Overrides:
worked
in class AbstractMonitor
- Throws:
MonitorCanceledException
done
public void done()
- Specified by:
done
in interface OMMonitor
- Overrides:
done
in class AbstractMonitor
getAsyncSchedulePeriod
protected long getAsyncSchedulePeriod()
- Specified by:
getAsyncSchedulePeriod
in class AbstractMonitor
scheduleAtFixedRate
protected void scheduleAtFixedRate(TimerTask task,
long delay,
long period)
- Specified by:
scheduleAtFixedRate
in class AbstractMonitor
getTimer
protected Timer getTimer()
- Specified by:
getTimer
in class AbstractMonitor
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.