Class Monitor
java.lang.Object
org.eclipse.net4j.util.om.monitor.AbstractMonitor
org.eclipse.net4j.util.om.monitor.Monitor
- All Implemented Interfaces:
OMMonitor,OMMonitorProgress
- Direct Known Subclasses:
EclipseMonitor,NotifyingMonitor,TimeoutMonitor
- Since:
- 2.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.net4j.util.om.monitor.AbstractMonitor
AbstractMonitor.AsyncTimerTaskNested classes/interfaces inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitor
OMMonitor.Async, OMMonitor.AsyncMonitor -
Field Summary
FieldsFields inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitor
DEFAULT_TIME_FACTOR, THOUSANDFields inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorProgress
HUNDRED, ONE, TEN, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidcancel(RuntimeException cancelException) voidprotected longprotected TimergetTimer()booleanprotected voidscheduleAtFixedRate(TimerTask task, long delay, long period) Methods inherited from class org.eclipse.net4j.util.om.monitor.AbstractMonitor
begin, begin, createAsyncTimerTask, createNestedMonitor, done, fork, fork, forkAsync, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, worked, worked
-
Field Details
-
DEFAULT_ASYNC_SCHEDULE_PERIOD
public static final long DEFAULT_ASYNC_SCHEDULE_PERIOD- See Also:
-
-
Constructor Details
-
Monitor
public Monitor()
-
-
Method Details
-
cancel
public void cancel() -
cancel
-
isCanceled
public boolean isCanceled() -
checkCanceled
- Throws:
MonitorCanceledException
-
getAsyncSchedulePeriod
protected long getAsyncSchedulePeriod()- Specified by:
getAsyncSchedulePeriodin classAbstractMonitor
-
getTimer
- Specified by:
getTimerin classAbstractMonitor
-
scheduleAtFixedRate
- Specified by:
scheduleAtFixedRatein classAbstractMonitor
-