Package org.cytoscape.jobs
Class CyJobStatus
java.lang.Object
org.cytoscape.jobs.CyJobStatus
This object stores information about the status of a
CyJob
, including
the actual job status (CyJobStatus.Status
) and any message returned
from the remote execution.Cytoscape Backwards Compatibility (API Class): We expect that this class will be used but not inherited by developers using this class. As such, we reserve the right to add methods to the class as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
Module: jobs-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>jobs-api</artifactId> </dependency>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This enum contains the primary status returned from the remote execution. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn any message associated with the job status.Return theCyJobStatus.Status
of the remote jobboolean
isDone()
Static method to determine if a job is "done", where done means that it is no longer processing for any reason.toString()
Return a string including the status and the message, if any.
-
Field Details
-
status
-
message
-
-
Constructor Details
-
CyJobStatus
-
-
Method Details
-
getStatus
Return theCyJobStatus.Status
of the remote job- Returns:
- the
CyJobStatus.Status
-
getMessage
Return any message associated with the job status.- Returns:
- a message, or null if no message was included
-
toString
Return a string including the status and the message, if any. -
isDone
public boolean isDone()Static method to determine if a job is "done", where done means that it is no longer processing for any reason.- Parameters:
status
- the status to check- Returns:
- true if the status indicates the job is done
-