Aggregator
on IMap.
For general data processing, it is superseded by Hazelcast Jet.@Deprecated public interface JobTracker extends DistributedObject
The JobTracker interface is used to create instances of Job
s depending
on the given data structure / data source.
The underlying created instance of the Job
depends on whether it is used for a
HazelcastClient
or a Hazelcast
member node.
The default usage is same for both cases and looks similar to the following example:
HazelcastInstance hz = getHazelcastInstance(); IMap map = hz.getMap( getMapName() ); JobTracker tracker = hz.getJobTracker( "default" ); Job job = tracker.newJob( KeyValueSource.fromMap( map ) );
The created instance of JobTracker is fully threadsafe and can be used concurrently and multiple times.
Caution: Do not use the JobTracker with data structures of other HazelcastInstance
instances than the one used for creation of the JobTracker. Unexpected results may happen!
Modifier and Type | Method and Description |
---|---|
<V> TrackableJob<V> |
getTrackableJob(String jobId)
Deprecated.
Returns an implementation of
TrackableJob , or null if the job ID is not available
or the job is already finished. |
<K,V> Job<K,V> |
newJob(KeyValueSource<K,V> source)
Deprecated.
Builds a
Job instance for the given KeyValueSource instance. |
destroy, getName, getPartitionKey, getServiceName
<K,V> Job<K,V> newJob(KeyValueSource<K,V> source)
Job
instance for the given KeyValueSource
instance. The returning
implementation depends on the HazelcastInstance
that created
the JobTracker.HazelcastInstance
instances than the one used for creation of the
JobTracker. Unexpected results may happen!K
- type of the keyV
- type of the valuesource
- data source the created Job should work on<V> TrackableJob<V> getTrackableJob(String jobId)
TrackableJob
, or null if the job ID is not available
or the job is already finished.V
- type of the resulting valuejobId
- job ID to search the TrackableJob forCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.