|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.mapreduce.impl.task.JobProcessInformationImpl
public class JobProcessInformationImpl
This class controls all partition states and is capable of atomically updating those states. It also collects information about the processed records.
| Constructor Summary | |
|---|---|
JobProcessInformationImpl(int partitionCount,
JobSupervisor supervisor)
|
|
| Method Summary | |
|---|---|
void |
addProcessedRecords(int records)
|
void |
cancelPartitionState()
|
JobPartitionState[] |
getPartitionStates()
Returns an array of JobPartitionStates holding
information about the processing state (JobPartitionState.State)
and the processing owner of this partition.The index of the JobPartitionState inside of the
array is the number of the processed partition if the KeyValueSource
is PartitionIdAware or a randomly assigned id for
the different members of the cluster. |
int |
getProcessedRecords()
Returns the number of processed records. The number of processed records is not a real time value but updated on regular base (after 1000 processed elements per node). |
void |
resetPartitionState()
|
String |
toString()
|
boolean |
updatePartitionState(int partitionId,
JobPartitionState oldPartitionState,
JobPartitionState newPartitionState)
|
boolean |
updatePartitionState(JobPartitionState[] oldPartitionStates,
JobPartitionState[] newPartitionStates)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JobProcessInformationImpl(int partitionCount,
JobSupervisor supervisor)
| Method Detail |
|---|
public JobPartitionState[] getPartitionStates()
JobProcessInformationJobPartitionStates holding
information about the processing state (JobPartitionState.State)
and the processing owner of this partition.JobPartitionState inside of the
array is the number of the processed partition if the KeyValueSource
is PartitionIdAware or a randomly assigned id for
the different members of the cluster.
getPartitionStates in interface JobProcessInformationpublic int getProcessedRecords()
JobProcessInformation
getProcessedRecords in interface JobProcessInformationpublic void addProcessedRecords(int records)
public void cancelPartitionState()
public void resetPartitionState()
public boolean updatePartitionState(int partitionId,
JobPartitionState oldPartitionState,
JobPartitionState newPartitionState)
public boolean updatePartitionState(JobPartitionState[] oldPartitionStates,
JobPartitionState[] newPartitionStates)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||