public class LongRunningOperation extends Object implements org.eclipse.scada.utils.exec.LongRunningOperation
| Modifier | Constructor and Description |
|---|---|
protected |
LongRunningOperation(LongRunningController controller,
org.eclipse.scada.utils.exec.LongRunningListener listener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fail(Throwable error) |
Throwable |
getError() |
protected long |
getId() |
Message |
getReply() |
org.eclipse.scada.utils.exec.LongRunningState |
getState() |
protected void |
granted(long id) |
boolean |
isComplete() |
protected void |
result(Message message) |
void |
waitForCompletion() |
void |
waitForCompletion(int timeout) |
protected LongRunningOperation(LongRunningController controller, org.eclipse.scada.utils.exec.LongRunningListener listener)
protected long getId()
protected void fail(Throwable error)
protected void granted(long id)
protected void result(Message message)
public boolean isComplete()
isComplete in interface org.eclipse.scada.utils.exec.LongRunningOperationpublic Throwable getError()
getError in interface org.eclipse.scada.utils.exec.LongRunningOperationpublic Message getReply()
public org.eclipse.scada.utils.exec.LongRunningState getState()
public void waitForCompletion()
throws InterruptedException
waitForCompletion in interface org.eclipse.scada.utils.exec.LongRunningOperationInterruptedExceptionpublic void waitForCompletion(int timeout)
throws InterruptedException
waitForCompletion in interface org.eclipse.scada.utils.exec.LongRunningOperationInterruptedException