public static class IProgressMonitor.DoneMonitor extends Object implements IProgressMonitor
IProgressMonitor.DoneMonitor, IProgressMonitor.IncompleteException, IProgressMonitor.TimeoutException
DONE_MONITOR
Constructor and Description |
---|
DoneMonitor(String resourceUrl) |
Modifier and Type | Method and Description |
---|---|
long |
getCreationTime() |
String |
getResourceUrl() |
boolean |
isDone() |
boolean |
isDone(net.sf.json.JSONObject instance) |
void |
waitForDone(int timeout)
Waits for the task to finish successfully.
|
public DoneMonitor(String resourceUrl)
public String getResourceUrl()
getResourceUrl
in interface IProgressMonitor
public boolean isDone(net.sf.json.JSONObject instance) throws IProgressMonitor.IncompleteException, IOException
isDone
in interface IProgressMonitor
IProgressMonitor.IncompleteException
IOException
public boolean isDone() throws IProgressMonitor.IncompleteException, IOException
isDone
in interface IProgressMonitor
IProgressMonitor.IncompleteException
IOException
public long getCreationTime()
getCreationTime
in interface IProgressMonitor
public void waitForDone(int timeout) throws IProgressMonitor.IncompleteException, IOException
IProgressMonitor
waitForDone
in interface IProgressMonitor
timeout
- in minutesIProgressMonitor.IncompleteException
- if the task finished but is not completeIOException
- if unexpected error occurredCopyright © 2016–2019. All rights reserved.