Class GiraphMpiMessageManager<OID_T extends org.apache.hadoop.io.WritableComparable,​VDATA_T extends org.apache.hadoop.io.Writable,​EDATA_T extends org.apache.hadoop.io.Writable,​IN_MSG_T extends org.apache.hadoop.io.Writable,​OUT_MSG_T extends org.apache.hadoop.io.Writable,​GS_VID_T,​GS_OID_T>

  • All Implemented Interfaces:
    GiraphMessageManager<OID_T,​VDATA_T,​EDATA_T,​IN_MSG_T,​OUT_MSG_T,​GS_VID_T,​GS_OID_T>

    public class GiraphMpiMessageManager<OID_T extends org.apache.hadoop.io.WritableComparable,​VDATA_T extends org.apache.hadoop.io.Writable,​EDATA_T extends org.apache.hadoop.io.Writable,​IN_MSG_T extends org.apache.hadoop.io.Writable,​OUT_MSG_T extends org.apache.hadoop.io.Writable,​GS_VID_T,​GS_OID_T>
    extends AbstractMessageManager<OID_T,​VDATA_T,​EDATA_T,​IN_MSG_T,​OUT_MSG_T,​GS_VID_T,​GS_OID_T>
    • Field Detail

      • THRESHOLD

        public static long THRESHOLD
    • Method Detail

      • receiveMessages

        public void receiveMessages()
        Called by our frame work, to deserialize the messages from c++ to java. Must be called before getMessages
      • sendMessage

        public void sendMessage​(OID_T dstOid,
                                OUT_MSG_T message)
        Send one message to dstOid.
        Parameters:
        dstOid - vertex to receive this message.
        message - message.
      • sendMessageToAllEdges

        public void sendMessageToAllEdges​(org.apache.giraph.graph.Vertex<OID_T,​VDATA_T,​EDATA_T> vertex,
                                          OUT_MSG_T message)
        Send message to neighbor vertices.
        Parameters:
        vertex -
        message - message to send.
      • finishMessageSending

        public void finishMessageSending()
        Make sure all messages has been sent. Clean outputstream buffer
      • preSuperstep

        public void preSuperstep()
      • postSuperstep

        public void postSuperstep()
      • postApplication

        public void postApplication()