public abstract class AbstractProgressMonitor extends Object implements IProgressMonitor
IProgressMonitor.DoneMonitor, IProgressMonitor.IncompleteException, IProgressMonitor.TimeoutExceptionDONE_MONITOR| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProgressMonitor(String resourceUrl) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreationTime() |
protected abstract net.sf.json.JSONObject |
getResource() |
String |
getResourceUrl() |
protected String |
getState(net.sf.json.JSONObject resource) |
boolean |
isDone() |
void |
waitForDone(int timeout)
Waits for the task to finish successfully.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDoneprotected AbstractProgressMonitor(String resourceUrl)
public String getResourceUrl()
getResourceUrl in interface IProgressMonitorpublic long getCreationTime()
getCreationTime in interface IProgressMonitorprotected abstract net.sf.json.JSONObject getResource()
throws IOException
IOExceptionprotected String getState(net.sf.json.JSONObject resource)
public boolean isDone()
throws IProgressMonitor.IncompleteException,
IOException
isDone in interface IProgressMonitorIProgressMonitor.IncompleteExceptionIOExceptionpublic void waitForDone(int timeout)
throws IProgressMonitor.IncompleteException,
IOException,
InterruptedException
IProgressMonitorwaitForDone in interface IProgressMonitortimeout - in minutesIProgressMonitor.IncompleteException - if the task finished but is not completeIOException - if unexpected error occurredInterruptedException - if the waiting is canceledCopyright © 2016–2019. All rights reserved.