public class NestedMonitor extends AbstractMonitor
AbstractMonitor.AsyncTimerTask
OMMonitor.Async
DEFAULT_TIME_FACTOR, THOUSAND
HUNDRED, ONE, TEN, ZERO
Constructor and Description |
---|
NestedMonitor(AbstractMonitor parent,
double parentWork) |
Modifier and Type | Method and Description |
---|---|
OMMonitor |
begin(double totalWork) |
void |
checkCanceled() |
void |
done() |
protected long |
getAsyncSchedulePeriod() |
AbstractMonitor |
getParent() |
double |
getParentWork() |
protected Timer |
getTimer() |
boolean |
isCanceled() |
protected void |
scheduleAtFixedRate(TimerTask task,
long delay,
long period) |
void |
worked(double work) |
begin, createAsyncTimerTask, createNestedMonitor, fork, fork, forkAsync, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, worked
public NestedMonitor(AbstractMonitor parent, double parentWork)
public AbstractMonitor getParent()
public double getParentWork()
public boolean isCanceled()
public void checkCanceled() throws MonitorCanceledException
MonitorCanceledException
public OMMonitor begin(double totalWork) throws MonitorCanceledException
begin
in interface OMMonitor
begin
in class AbstractMonitor
MonitorCanceledException
public void worked(double work) throws MonitorCanceledException
worked
in interface OMMonitor
worked
in class AbstractMonitor
MonitorCanceledException
public void done()
done
in interface OMMonitor
done
in class AbstractMonitor
protected long getAsyncSchedulePeriod()
getAsyncSchedulePeriod
in class AbstractMonitor
protected void scheduleAtFixedRate(TimerTask task, long delay, long period)
scheduleAtFixedRate
in class AbstractMonitor
protected Timer getTimer()
getTimer
in class AbstractMonitor
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.