public abstract class AbstractProgressMonitor extends Object implements IProgressMonitor
IProgressMonitor.DoneMonitor, IProgressMonitor.IncompleteException, IProgressMonitor.TimeoutException
DONE_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, wait
isDone
protected AbstractProgressMonitor(String resourceUrl)
public String getResourceUrl()
getResourceUrl
in interface IProgressMonitor
public long getCreationTime()
getCreationTime
in interface IProgressMonitor
protected abstract net.sf.json.JSONObject getResource() throws IOException
IOException
protected String getState(net.sf.json.JSONObject resource)
public boolean isDone() throws IProgressMonitor.IncompleteException, IOException
isDone
in interface IProgressMonitor
IProgressMonitor.IncompleteException
IOException
public void waitForDone(int timeout) throws IProgressMonitor.IncompleteException, IOException, InterruptedException
IProgressMonitor
waitForDone
in interface IProgressMonitor
timeout
- 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.