public class AbstractCyJob extends Object implements CyJob
CyJobModule: 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 | Field and Description |
|---|---|
protected CyJobDataService |
dataService |
protected CyJobExecutionService |
execService |
protected String |
jobId |
protected CyJobMonitor |
jobMonitor |
protected String |
jobName |
protected String |
path |
protected int |
pollInterval |
| Constructor and Description |
|---|
AbstractCyJob(String name,
String basePath,
CyJobExecutionService executionService,
CyJobDataService dataService,
CyJobMonitor jobMonitor) |
| 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 monitor)
Set the service that handles status changes for this job.
|
void |
setPollInterval(int pollInterval)
Set the time in seconds between calls to checkJobStatus.
|
protected CyJobMonitor jobMonitor
protected int pollInterval
protected final CyJobDataService dataService
protected final CyJobExecutionService execService
protected final String jobName
protected String path
protected String jobId
public AbstractCyJob(String name, String basePath, CyJobExecutionService executionService, CyJobDataService dataService, CyJobMonitor jobMonitor)
public CyJobDataService getJobDataService()
CyJobCyJobDataService that was used to
create this job.getJobDataService in interface CyJobpublic CyJobExecutionService getJobExecutionService()
CyJobCyJobExecutionService that created this
job. Most of the methods for interacting with the backend
service are through the CyJobExecutionServicegetJobExecutionService in interface CyJobpublic String getJobName()
CyJobgetJobName in interface CyJobpublic String getPath()
CyJobpublic CyJobMonitor getJobMonitor()
CyJobgetJobMonitor in interface CyJobpublic void setJobMonitor(CyJobMonitor monitor)
CyJobsetJobMonitor in interface CyJobmonitor - the status change handler for this jobpublic int getPollInterval()
CyJobgetPollInterval in interface CyJobpublic void setPollInterval(int pollInterval)
CyJobsetPollInterval in interface CyJobpollInterval - the poll interval for this jobCopyright 2011-2015 Cytoscape Consortium. All rights reserved.