Class DelegatingMonitor
- java.lang.Object
- 
- org.eclipse.net4j.util.om.monitor.DelegatingMonitor
 
- 
- All Implemented Interfaces:
- OMMonitor,- OMMonitorProgress
 
 public class DelegatingMonitor extends java.lang.Object implements OMMonitor - Since:
- 2.0
- Author:
- Eike Stepper
 
- 
- 
Nested Class Summary- 
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 DelegatingMonitor(OMMonitor delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description OMMonitorbegin()Same as callingbegin(ONE).OMMonitorbegin(double totalWork)voidcheckCanceled()voiddone()OMMonitorfork()Same as callingfork(ONE).OMMonitorfork(double work)OMMonitor.AsyncforkAsync()Same as callingforkAsync(ONE).OMMonitor.AsyncforkAsync(double work)OMMonitorgetDelegate()doublegetTotalWork()doublegetWork()doublegetWorkPercent()booleanhasBegun()booleanisCanceled()voidworked()Same as callingworked(ONE).voidworked(double work)
 
- 
- 
- 
Constructor Detail- 
DelegatingMonitorpublic DelegatingMonitor(OMMonitor delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic OMMonitor getDelegate() 
 - 
hasBegunpublic boolean hasBegun() throws MonitorCanceledException- Specified by:
- hasBegunin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
beginpublic OMMonitor begin() throws MonitorCanceledException Description copied from interface:OMMonitorSame as callingbegin(ONE).- Specified by:
- beginin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
beginpublic OMMonitor begin(double totalWork) throws MonitorCanceledException - Specified by:
- beginin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
checkCanceledpublic void checkCanceled() throws MonitorCanceledException- Specified by:
- checkCanceledin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
forkpublic OMMonitor fork() Description copied from interface:OMMonitorSame as callingfork(ONE).
 - 
forkAsyncpublic OMMonitor.Async forkAsync() Description copied from interface:OMMonitorSame as callingforkAsync(ONE).
 - 
forkAsyncpublic OMMonitor.Async forkAsync(double work) 
 - 
getTotalWorkpublic double getTotalWork() - Specified by:
- getTotalWorkin interface- OMMonitorProgress
 
 - 
getWorkpublic double getWork() - Specified by:
- getWorkin interface- OMMonitorProgress
 
 - 
getWorkPercentpublic double getWorkPercent() - Specified by:
- getWorkPercentin interface- OMMonitorProgress
 
 - 
isCanceledpublic boolean isCanceled() - Specified by:
- isCanceledin interface- OMMonitor
 
 - 
workedpublic void worked() throws MonitorCanceledExceptionDescription copied from interface:OMMonitorSame as callingworked(ONE).- Specified by:
- workedin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 - 
workedpublic void worked(double work) throws MonitorCanceledException- Specified by:
- workedin interface- OMMonitor
- Throws:
- MonitorCanceledException
 
 
- 
 
-