Package org.cytoscape.jobs
Class CyJobStatus
- java.lang.Object
-
- org.cytoscape.jobs.CyJobStatus
-
public class CyJobStatus extends Object
This object stores information about the status of aCyJob
, including the actual job status (CyJobStatus.Status
) and any message returned from the remote execution.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
Nested Classes Modifier and Type Class Description static class
CyJobStatus.Status
This enum contains the primary status returned from the remote execution.
-
Field Summary
Fields Modifier and Type Field Description protected String
message
protected CyJobStatus.Status
status
-
Constructor Summary
Constructors Constructor Description CyJobStatus(CyJobStatus.Status status, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Return any message associated with the job status.CyJobStatus.Status
getStatus()
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.String
toString()
Return a string including the status and the message, if any.
-
-
-
Field Detail
-
status
protected CyJobStatus.Status status
-
message
protected String message
-
-
Constructor Detail
-
CyJobStatus
public CyJobStatus(CyJobStatus.Status status, String message)
-
-
Method Detail
-
getStatus
public CyJobStatus.Status getStatus()
Return theCyJobStatus.Status
of the remote job- Returns:
- the
CyJobStatus.Status
-
getMessage
public String getMessage()
Return any message associated with the job status.- Returns:
- a message, or null if no message was included
-
toString
public String 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
-
-