|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cytoscape.work.FinishStatus
public final class FinishStatus
Indicates the status of a task iterator when it has finished for TaskObserver
s.
Module: work-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
Nested Class Summary | |
---|---|
static class |
FinishStatus.Type
|
Constructor Summary | |
---|---|
protected |
FinishStatus(FinishStatus.Type type,
Task task,
Exception exception)
|
Method Summary | |
---|---|
Exception |
getException()
Returns the exception thrown by the task that failed, or null if the task iterator succeeded or was cancelled. |
static FinishStatus |
getSucceeded()
Get a FinishStatus instance that indicates success. |
Task |
getTask()
Returns the task that was cancelled or that had failed, or returns null if the task iterator succeeded. |
FinishStatus.Type |
getType()
Specifies how the task iterator completed. |
static FinishStatus |
newCancelled(Task cancelledTask)
Construct a new FinishStatus object that indicates cancellation. |
static FinishStatus |
newFailed(Task failedTask,
Exception exception)
Construct a new FinishStatus object that indicates failure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FinishStatus(FinishStatus.Type type, Task task, Exception exception)
Method Detail |
---|
public static FinishStatus getSucceeded()
FinishStatus
instance that indicates success.
public static FinishStatus newCancelled(Task cancelledTask)
FinishStatus
object that indicates cancellation.
cancelledTask
- The task that was cancelled by the user.public static FinishStatus newFailed(Task failedTask, Exception exception)
FinishStatus
object that indicates failure.
failedTask
- The task that failed.exception
- The exception that the task threw.public FinishStatus.Type getType()
public Task getTask()
public Exception getException()
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |