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
 
 public class Monitor extends AbstractMonitor - Since:
- 2.0
- Author:
- Eike Stepper
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.eclipse.net4j.util.om.monitor.AbstractMonitorAbstractMonitor.AsyncTimerTask
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorOMMonitor.Async
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static longDEFAULT_ASYNC_SCHEDULE_PERIOD- 
Fields inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorDEFAULT_TIME_FACTOR, THOUSAND
 - 
Fields inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorProgressHUNDRED, ONE, TEN, ZERO
 
- 
 - 
Constructor SummaryConstructors Constructor Description Monitor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()voidcancel(java.lang.RuntimeException cancelException)voidcheckCanceled()protected longgetAsyncSchedulePeriod()protected java.util.TimergetTimer()booleanisCanceled()protected voidscheduleAtFixedRate(java.util.TimerTask task, long delay, long period)- 
Methods inherited from class org.eclipse.net4j.util.om.monitor.AbstractMonitorbegin, begin, createAsyncTimerTask, createNestedMonitor, done, fork, fork, forkAsync, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, worked, worked
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_ASYNC_SCHEDULE_PERIODpublic static final long DEFAULT_ASYNC_SCHEDULE_PERIOD - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
cancelpublic void cancel() 
 - 
cancelpublic void cancel(java.lang.RuntimeException cancelException) 
 - 
isCanceledpublic boolean isCanceled() 
 - 
checkCanceledpublic void checkCanceled() throws MonitorCanceledException- Throws:
- MonitorCanceledException
 
 - 
getAsyncSchedulePeriodprotected long getAsyncSchedulePeriod() - Specified by:
- getAsyncSchedulePeriodin class- AbstractMonitor
 
 - 
getTimerprotected java.util.Timer getTimer() - Specified by:
- getTimerin class- AbstractMonitor
 
 - 
scheduleAtFixedRateprotected void scheduleAtFixedRate(java.util.TimerTask task, long delay, long period)- Specified by:
- scheduleAtFixedRatein class- AbstractMonitor
 
 
- 
 
-