|
||||||||||
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 on while processing.
To request the TrackableJob of a map reduce job 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 null if the underlying job id is not available because job is already
finished or not yet submitted.It even 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 null if the underlying job id is not available because job is already
finished or not yet submitted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |