Package org.cytoscape.jobs
Class AbstractCyJob
java.lang.Object
org.cytoscape.jobs.AbstractCyJob
- All Implemented Interfaces:
CyJob
This can be used as a base class for custom implementations of
CyJobCytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
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>-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CyJobDataServiceprotected final CyJobExecutionServiceprotected Stringprotected CyJobMonitorprotected final Stringprotected Stringprotected int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCyJob(String name, String basePath, CyJobExecutionService executionService, CyJobDataService dataService, CyJobMonitor jobMonitor) -
Method Summary
Modifier and TypeMethodDescriptionReturn theCyJobDataServicethat was used to create this job.Return theCyJobExecutionServicethat created this job.getJobId()Return the ID for this job.Return the service that handles status changes for this job.Return the name for this jobgetPath()Return the base path for communicating with the remote service for this jobintReturn the time in seconds between calls to checkJobStatus.voidsetJobMonitor(CyJobMonitor monitor) Set the service that handles status changes for this job.voidsetPollInterval(int pollInterval) Set the time in seconds between calls to checkJobStatus.
-
Field Details
-
jobMonitor
-
pollInterval
protected int pollInterval -
dataService
-
execService
-
jobName
-
path
-
jobId
-
-
Constructor Details
-
AbstractCyJob
public AbstractCyJob(String name, String basePath, CyJobExecutionService executionService, CyJobDataService dataService, CyJobMonitor jobMonitor)
-
-
Method Details
-
getJobDataService
Description copied from interface:CyJobReturn theCyJobDataServicethat was used to create this job.- Specified by:
getJobDataServicein interfaceCyJob
-
getJobExecutionService
Description copied from interface:CyJobReturn theCyJobExecutionServicethat created this job. Most of the methods for interacting with the backend service are through theCyJobExecutionService- Specified by:
getJobExecutionServicein interfaceCyJob
-
getJobName
Description copied from interface:CyJobReturn the name for this job- Specified by:
getJobNamein interfaceCyJob- Returns:
- the job name
-
getPath
Description copied from interface:CyJobReturn the base path for communicating with the remote service for this job -
getJobMonitor
Description copied from interface:CyJobReturn the service that handles status changes for this job.- Specified by:
getJobMonitorin interfaceCyJob- Returns:
- the status change monitor for this job
-
setJobMonitor
Description copied from interface:CyJobSet the service that handles status changes for this job.- Specified by:
setJobMonitorin interfaceCyJob- Parameters:
monitor- the status change handler for this job
-
getPollInterval
public int getPollInterval()Description copied from interface:CyJobReturn the time in seconds between calls to checkJobStatus.- Specified by:
getPollIntervalin interfaceCyJob- Returns:
- the poll interval for this job
-
setPollInterval
public void setPollInterval(int pollInterval) Description copied from interface:CyJobSet the time in seconds between calls to checkJobStatus.- Specified by:
setPollIntervalin interfaceCyJob- Parameters:
pollInterval- the poll interval for this job
-
getJobId
Description copied from interface:CyJobReturn the ID for this job. The job ID is most often used to uniquely identify this job to a remote execution environment.
-