|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.mapreduce.impl.AbstractJobTracker
public abstract class AbstractJobTracker
This is the base class for all JobTracker implementations on node and client side.
It combines a lot of the base functionality to handle remote operations.
| Field Summary | |
|---|---|
protected ExecutorService |
executorService
|
protected JobTrackerConfig |
jobTrackerConfig
|
protected ConcurrentMap<String,MapCombineTask> |
mapCombineTasks
|
protected MapReduceService |
mapReduceService
|
protected String |
name
|
protected NodeEngine |
nodeEngine
|
protected ConcurrentMap<String,ReducerTask> |
reducerTasks
|
protected ConcurrentMap<String,TrackableJobFuture> |
trackableJobs
|
| Method Summary | ||
|---|---|---|
void |
destroy()
Destroys this object cluster-wide. |
|
Object |
getId()
Returns the unique id for this object. |
|
JobTrackerConfig |
getJobTrackerConfig()
|
|
|
getMapCombineTask(String jobId)
|
|
String |
getName()
Returns the unique name for this DistributedObject. |
|
String |
getPartitionKey()
Returns the key of the partition that this DistributedObject is assigned to. |
|
|
getReducerTask(String jobId)
|
|
String |
getServiceName()
Returns the service name for this object. |
|
|
getTrackableJob(String jobId)
Returns an implementation of TrackableJob, or null if the job id is not available
or the job is already finished. |
|
|
registerMapCombineTask(MapCombineTask<KeyIn,ValueIn,KeyOut,ValueOut,Chunk> mapCombineTask)
|
|
|
registerReducerTask(ReducerTask<Key,Chunk> reducerTask)
|
|
|
registerTrackableJob(TrackableJobFuture<V> trackableJob)
|
|
MapCombineTask |
unregisterMapCombineTask(String jobId)
|
|
ReducerTask |
unregisterReducerTask(String jobId)
|
|
|
unregisterTrackableJob(String jobId)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hazelcast.mapreduce.JobTracker |
|---|
newJob |
| Field Detail |
|---|
protected final ConcurrentMap<String,TrackableJobFuture> trackableJobs
protected final ConcurrentMap<String,ReducerTask> reducerTasks
protected final ConcurrentMap<String,MapCombineTask> mapCombineTasks
protected final NodeEngine nodeEngine
protected final ExecutorService executorService
protected final MapReduceService mapReduceService
protected final JobTrackerConfig jobTrackerConfig
protected final String name
| Method Detail |
|---|
public void destroy()
DistributedObject
destroy in interface DistributedObjectpublic Object getId()
DistributedObject
getId in interface DistributedObjectpublic String getPartitionKey()
DistributedObjectIAtomicLong. For a partitioned data structure like an IMap,
the returned value will not be null, but otherwise undefined.
getPartitionKey in interface DistributedObjectpublic final String getName()
DistributedObject
getName in interface DistributedObjectpublic final String getServiceName()
DistributedObject
getServiceName in interface DistributedObjectpublic JobTrackerConfig getJobTrackerConfig()
public <V> boolean registerTrackableJob(TrackableJobFuture<V> trackableJob)
public <V> TrackableJobFuture<V> unregisterTrackableJob(String jobId)
public <V> TrackableJobFuture<V> getTrackableJob(String jobId)
JobTrackerTrackableJob, or null if the job id is not available
or the job is already finished.
getTrackableJob in interface JobTrackerV - type of the resulting valuejobId - job id to search the TrackableJob for
public <Key,Chunk> void registerReducerTask(ReducerTask<Key,Chunk> reducerTask)
public ReducerTask unregisterReducerTask(String jobId)
public <Key,Chunk> ReducerTask<Key,Chunk> getReducerTask(String jobId)
public <KeyIn,ValueIn,KeyOut,ValueOut,Chunk> void registerMapCombineTask(MapCombineTask<KeyIn,ValueIn,KeyOut,ValueOut,Chunk> mapCombineTask)
public MapCombineTask unregisterMapCombineTask(String jobId)
public <KeyIn,ValueIn,KeyOut,ValueOut,Chunk> MapCombineTask<KeyIn,ValueIn,KeyOut,ValueOut,Chunk> getMapCombineTask(String jobId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||