public interface CyJob
CyJob
represents all of the state information necessary to
marshal and unmarshal data, submit jobs, query job status, and fetch
results. As such it is the main state object for the CyJob mechanism.
This is also the object that gets saved and restored from sessions by
the CyJobManager
. Typically, CyJobs
are implemented
by the appropriate CyJobExecutionService
, which may have
different state that needs to be stored in the object or serialized/deserialized
from sessions. Typically, once an App has created a CyJob
(using CyJobExecutionService#getCyJob(String, String)
) it
shouldn't require any other references to jobs objects since it should
contain all necessary state.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 | Method and Description |
---|---|
CyJobDataService |
getJobDataService()
Return the
CyJobDataService that was used to
create this job. |
CyJobExecutionService |
getJobExecutionService()
Return the
CyJobExecutionService that created this
job. |
String |
getJobId()
Return the ID for this job.
|
CyJobMonitor |
getJobMonitor()
Return the service that handles status changes for this job.
|
String |
getJobName()
Return the name for this job
|
String |
getPath()
Return the base path for communicating with the
remote service for this job
|
int |
getPollInterval()
Return the time in seconds between calls to checkJobStatus.
|
void |
setJobMonitor(CyJobMonitor jobMonitor)
Set the service that handles status changes for this job.
|
void |
setPollInterval(int pollInterval)
Set the time in seconds between calls to checkJobStatus.
|
String getJobName()
String getJobId()
String getPath()
CyJobMonitor getJobMonitor()
void setJobMonitor(CyJobMonitor jobMonitor)
jobMonitor
- the status change handler for this jobint getPollInterval()
void setPollInterval(int pollInterval)
pollInterval
- the poll interval for this jobCyJobExecutionService getJobExecutionService()
CyJobExecutionService
that created this
job. Most of the methods for interacting with the backend
service are through the CyJobExecutionService
the
- CyJobExecutionService that created this jobCyJobDataService getJobDataService()
CyJobDataService
that was used to
create this job.the
- CyJobDataService that handles data for this jobCopyright 2011-2015 Cytoscape Consortium. All rights reserved.