public interface CyJobMonitor
loadData
method. This method will
be called by the CyJobManager
when a job transitions to status
of FINISHED
and the user has indicated that they
are ready to load the data. This will be done as part of a
Task
to avoid potential synchronization issues.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 |
---|---|
default void |
jobStatusChanged(CyJob job,
CyJobStatus status)
This method is called whenever the status of a job changes.
|
void |
loadData(CyJob job,
TaskMonitor taskMonitor)
This method is called when when the job status transitions
to
FINISHED and the user has indicated
that they are ready to load the data from the task. |
default void jobStatusChanged(CyJob job, CyJobStatus status)
job
- the CyJob
who's status has changedstatus
- the new job CyJobStatus
void loadData(CyJob job, TaskMonitor taskMonitor)
FINISHED
and the user has indicated
that they are ready to load the data from the task. Typically, this
will result in the fetchResults
method
being called, but if the data package is large, implementers might
want to call fetchResults
in a separate
thread spawned from jobStatusChanged
, then when the user indicates
they are ready to process the data, the call to loadData can merge the
resulting data into Cytoscape.job
- the finished CyJob
to fetch the data fortaskMonitor
- the TaskMonitor
from the calling Task
.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.