public class NestedMonitor extends AbstractMonitor
AbstractMonitor.AsyncTimerTaskOMMonitor.AsyncDEFAULT_TIME_FACTOR, THOUSANDHUNDRED, 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 java.util.Timer |
getTimer() |
boolean |
isCanceled() |
protected void |
scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period) |
void |
worked(double work) |
begin, createAsyncTimerTask, createNestedMonitor, fork, fork, forkAsync, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, workedpublic NestedMonitor(AbstractMonitor parent, double parentWork)
public AbstractMonitor getParent()
public double getParentWork()
public boolean isCanceled()
public void checkCanceled()
throws MonitorCanceledException
MonitorCanceledExceptionpublic OMMonitor begin(double totalWork) throws MonitorCanceledException
begin in interface OMMonitorbegin in class AbstractMonitorMonitorCanceledExceptionpublic void worked(double work)
throws MonitorCanceledException
worked in interface OMMonitorworked in class AbstractMonitorMonitorCanceledExceptionpublic void done()
done in interface OMMonitordone in class AbstractMonitorprotected long getAsyncSchedulePeriod()
getAsyncSchedulePeriod in class AbstractMonitorprotected void scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period)
scheduleAtFixedRate in class AbstractMonitorprotected java.util.Timer getTimer()
getTimer in class AbstractMonitorCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html