public class AbstractCyJob extends Object implements CyJob
CyJob
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 | 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()
CyJob
CyJobDataService
that was used to
create this job.getJobDataService
in interface CyJob
public CyJobExecutionService getJobExecutionService()
CyJob
CyJobExecutionService
that created this
job. Most of the methods for interacting with the backend
service are through the CyJobExecutionService
getJobExecutionService
in interface CyJob
public String getJobName()
CyJob
getJobName
in interface CyJob
public String getPath()
CyJob
public CyJobMonitor getJobMonitor()
CyJob
getJobMonitor
in interface CyJob
public void setJobMonitor(CyJobMonitor monitor)
CyJob
setJobMonitor
in interface CyJob
monitor
- the status change handler for this jobpublic int getPollInterval()
CyJob
getPollInterval
in interface CyJob
public void setPollInterval(int pollInterval)
CyJob
setPollInterval
in interface CyJob
pollInterval
- the poll interval for this jobCopyright 2011-2015 Cytoscape Consortium. All rights reserved.