public class Monitor extends AbstractMonitor
AbstractMonitor.AsyncTimerTask
OMMonitor.Async
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_ASYNC_SCHEDULE_PERIOD |
DEFAULT_TIME_FACTOR, THOUSAND
HUNDRED, ONE, TEN, ZERO
Constructor and Description |
---|
Monitor() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
cancel(RuntimeException cancelException) |
void |
checkCanceled() |
protected long |
getAsyncSchedulePeriod() |
protected Timer |
getTimer() |
boolean |
isCanceled() |
protected void |
scheduleAtFixedRate(TimerTask task,
long delay,
long period) |
begin, begin, createAsyncTimerTask, createNestedMonitor, done, fork, fork, forkAsync, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, worked, worked
public static final long DEFAULT_ASYNC_SCHEDULE_PERIOD
public void cancel()
public void cancel(RuntimeException cancelException)
public boolean isCanceled()
public void checkCanceled() throws MonitorCanceledException
MonitorCanceledException
protected long getAsyncSchedulePeriod()
getAsyncSchedulePeriod
in class AbstractMonitor
protected Timer getTimer()
getTimer
in class AbstractMonitor
protected void scheduleAtFixedRate(TimerTask task, long delay, long period)
scheduleAtFixedRate
in class AbstractMonitor
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.