|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.mapreduce.impl.task.TransferableJobProcessInformation
public class TransferableJobProcessInformation
This implementation of JobProcessInformation
is used to
transmit the currently processed number of records and the partition states to a requesting
client. This information can only be requested by the job emitting client and by requesting
it at the job owner.
Constructor Summary | |
---|---|
TransferableJobProcessInformation()
|
|
TransferableJobProcessInformation(JobPartitionState[] partitionStates,
int processedRecords)
|
Method Summary | |
---|---|
int |
getClassId()
Returns class identifier for this portable class. |
int |
getFactoryId()
Returns PortableFactory id for this portable class |
JobPartitionState[] |
getPartitionStates()
Returns an array of JobPartitionState s 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 |
readPortable(PortableReader reader)
Read portable fields using PortableReader |
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransferableJobProcessInformation()
public TransferableJobProcessInformation(JobPartitionState[] partitionStates, int processedRecords)
Method Detail |
---|
public JobPartitionState[] getPartitionStates()
JobProcessInformation
JobPartitionState
s 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 JobProcessInformation
public int getProcessedRecords()
JobProcessInformation
getProcessedRecords
in interface JobProcessInformation
public void writePortable(PortableWriter writer) throws IOException
Portable
writePortable
in interface Portable
writer
- PortableWriter
IOException
public void readPortable(PortableReader reader) throws IOException
Portable
readPortable
in interface Portable
reader
- PortableReader
IOException
public int getFactoryId()
Portable
getFactoryId
in interface Portable
public int getClassId()
Portable
getClassId
in interface Portable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |