Class AbstractMonitor
- java.lang.Object
- 
- org.eclipse.net4j.util.om.monitor.AbstractMonitor
 
- 
- All Implemented Interfaces:
- OMMonitor,- OMMonitorProgress
 - Direct Known Subclasses:
- Monitor,- NestedMonitor
 
 public abstract class AbstractMonitor extends java.lang.Object implements OMMonitor - Since:
- 2.0
- Author:
- Eike Stepper
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAbstractMonitor.AsyncTimerTask- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorOMMonitor.Async
 
- 
 - 
Field Summary- 
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 AbstractMonitor()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description OMMonitorbegin()Same as callingbegin(ONE).OMMonitorbegin(double totalWork)protected AbstractMonitor.AsyncTimerTaskcreateAsyncTimerTask(double work)protected OMMonitorcreateNestedMonitor(double work)voiddone()OMMonitorfork()Same as callingfork(ONE).OMMonitorfork(double work)OMMonitor.AsyncforkAsync()Same as callingforkAsync(ONE).OMMonitor.AsyncforkAsync(double work)protected abstract longgetAsyncSchedulePeriod()protected abstract java.util.TimergetTimer()doublegetTotalWork()doublegetWork()doublegetWorkPercent()booleanhasBegun()protected static doublepercent(double part, double whole)protected abstract voidscheduleAtFixedRate(java.util.TimerTask task, long delay, long period)voidworked()Same as callingworked(ONE).voidworked(double work)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.om.monitor.OMMonitorcheckCanceled, isCanceled
 
- 
 
- 
- 
- 
Method Detail- 
hasBegunpublic boolean hasBegun() throws MonitorCanceledException- Specified by:
- hasBegunin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
beginpublic OMMonitor begin(double totalWork) throws MonitorCanceledException - Specified by:
- beginin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
beginpublic OMMonitor begin() throws MonitorCanceledException Description copied from interface:OMMonitorSame as callingbegin(ONE).- Specified by:
- beginin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
workedpublic void worked(double work) throws MonitorCanceledException- Specified by:
- workedin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
workedpublic void worked() throws MonitorCanceledExceptionDescription copied from interface:OMMonitorSame as callingworked(ONE).- Specified by:
- workedin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
forkpublic OMMonitor fork() Description copied from interface:OMMonitorSame as callingfork(ONE).
 - 
forkAsyncpublic OMMonitor.Async forkAsync(double work) 
 - 
forkAsyncpublic OMMonitor.Async forkAsync() Description copied from interface:OMMonitorSame as callingforkAsync(ONE).
 - 
getTotalWorkpublic double getTotalWork() - Specified by:
- getTotalWorkin interface- OMMonitorProgress
 
 - 
getWorkpublic double getWork() - Specified by:
- getWorkin interface- OMMonitorProgress
 
 - 
getWorkPercentpublic double getWorkPercent() - Specified by:
- getWorkPercentin interface- OMMonitorProgress
 
 - 
createNestedMonitorprotected OMMonitor createNestedMonitor(double work) 
 - 
createAsyncTimerTaskprotected AbstractMonitor.AsyncTimerTask createAsyncTimerTask(double work) 
 - 
getAsyncSchedulePeriodprotected abstract long getAsyncSchedulePeriod() 
 - 
getTimerprotected abstract java.util.Timer getTimer() 
 - 
scheduleAtFixedRateprotected abstract void scheduleAtFixedRate(java.util.TimerTask task, long delay, long period)- Since:
- 3.0
 
 - 
percentprotected static double percent(double part, double whole)- Since:
- 3.1
 
 
- 
 
-