|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Beta public interface JobTracker
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!
Method Summary | ||
---|---|---|
|
getTrackableJob(String jobId)
Returns an implementation of TrackableJob if the job or null if the job id is not available
or is already finished. |
|
|
newJob(KeyValueSource<K,V> source)
Builds a Job instance for the given KeyValueSource instance. |
Methods inherited from interface com.hazelcast.core.DistributedObject |
---|
destroy, getId, getName, getPartitionKey, getServiceName |
Method Detail |
---|
<K,V> Job<K,V> newJob(KeyValueSource<K,V> source)
Job
instance for the given KeyValueSource
instance. The returning
implementation is depending on the HazelcastInstance
that was creating
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
if the job or null if the job id is not available
or is already finished.
V
- type of the resulting valuejobId
- job id to search the TrackableJob for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |