|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- type of the returning value@Beta public interface TrackableJob<V>
This interface describes a trackable job. In the default implementation,
the internal assigned operation processor is a TrackableJob, so the process
can be watched while processing.
To request the TrackableJob of a map reduce job, you can use the following code snippet.
JobTracker tracker = hazelcastInstance.getJobTracker(...); Job job = tracker.newJob(...); // ... JobCompletableFuture future = job.submit(); String jobId = future.getJobId(); TrackableJob trackableJob = tracker.getTrackableJob(jobId);
Method Summary | |
---|---|
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 |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |