com.hazelcast.mapreduce.impl.notification
Class ReducingFinishedNotification

java.lang.Object
  extended by com.hazelcast.mapreduce.impl.notification.MapReduceNotification
      extended by com.hazelcast.mapreduce.impl.notification.MemberAwareMapReduceNotification
          extended by com.hazelcast.mapreduce.impl.notification.ReducingFinishedNotification
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable

public class ReducingFinishedNotification
extends MemberAwareMapReduceNotification

This notification class is used to signal the JobSupervisor owner node that a reducer has finished the reducing step for the defined partitionId.


Constructor Summary
ReducingFinishedNotification()
           
ReducingFinishedNotification(Address address, String name, String jobId, int partitionId)
           
 
Method Summary
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 int getId()
          Returns type identifier for this class.
 int getPartitionId()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class com.hazelcast.mapreduce.impl.notification.MemberAwareMapReduceNotification
getAddress
 
Methods inherited from class com.hazelcast.mapreduce.impl.notification.MapReduceNotification
getJobId, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReducingFinishedNotification

public ReducingFinishedNotification()

ReducingFinishedNotification

public ReducingFinishedNotification(Address address,
                                    String name,
                                    String jobId,
                                    int partitionId)
Method Detail

getPartitionId

public int getPartitionId()

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Overrides:
writeData in class MemberAwareMapReduceNotification
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Overrides:
readData in class MemberAwareMapReduceNotification
Parameters:
in - input
Throws:
IOException

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Returns:
factory id

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Returns:
type id

toString

public String toString()
Overrides:
toString in class MemberAwareMapReduceNotification


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.