V
- type of the returning value@Beta public interface TrackableJob<V>
JobTracker tracker = hazelcastInstance.getJobTracker(...); Job job = tracker.newJob(...); // ... JobCompletableFuture future = job.submit(); String jobId = future.getJobId(); TrackableJob trackableJob = tracker.getTrackableJob(jobId);
Modifier and Type | Method and Description |
---|---|
ICompletableFuture<V> |
getCompletableFuture()
Returns the
ICompletableFuture to add callbacks
or wait for the resulting value of the tracked job. |
String |
getJobId()
Returns the unique job id of the tracked job
|
JobProcessInformation |
getJobProcessInformation()
Returns an instance of
JobProcessInformation to find out the state and
statistics of a running task, or returns null if the underlying job id is not available because the job is already
finished or has not yet been submitted.It returns null if not requested on the job issuing cluster member or client, since those values are not distributed to all clusters for traffic reasons. |
JobTracker |
getJobTracker()
Returns the assigned
JobTracker |
String |
getName()
Returns the name of the underlying
JobTracker |
JobTracker getJobTracker()
JobTracker
String getName()
JobTracker
String getJobId()
ICompletableFuture<V> getCompletableFuture()
ICompletableFuture
to add callbacks
or wait for the resulting value of the tracked job.JobProcessInformation getJobProcessInformation()
JobProcessInformation
to find out the state and
statistics of a running task, or returns null if the underlying job id is not available because the job is already
finished or has not yet been submitted.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.