public class CyJobStatus extends Object
CyJob
, 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>
Modifier and Type | Class and Description |
---|---|
static class |
CyJobStatus.Status
This enum contains the primary status returned from the remote execution.
|
Modifier and Type | Field and Description |
---|---|
protected String |
message |
protected CyJobStatus.Status |
status |
Constructor and Description |
---|
CyJobStatus(CyJobStatus.Status status,
String message) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Return any message associated with the job status.
|
CyJobStatus.Status |
getStatus()
Return the
CyJobStatus.Status of the remote job |
boolean |
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.
|
protected CyJobStatus.Status status
protected String message
public CyJobStatus(CyJobStatus.Status status, String message)
public CyJobStatus.Status getStatus()
CyJobStatus.Status
of the remote jobCyJobStatus.Status
public String getMessage()
public String toString()
public boolean isDone()
status
- the status to checkCopyright 2011-2015 Cytoscape Consortium. All rights reserved.