Package org.apache.giraph.examples.utils

Examples of org.apache.giraph.examples.utils.BrachaTouegDeadlockVertexValue.waitForMessage()


      sendMessage(vertexId,
                  edge.getTargetVertexId().get(),
                  BrachaTouegDeadlockMessage.NOTIFY);

      /* the node will wait for a DONE message from each notified vertex */
      value.waitForMessage(Long.valueOf(edge.getTargetVertexId().get()),
                           Long.valueOf(BrachaTouegDeadlockMessage.DONE));
    }

    /* if no requests are pending, the node has to start GRANTing to all
       incoming edges */
 
View Full Code Here


    for (Long parent : parents) {
      sendMessage(vertexId, parent,
                  BrachaTouegDeadlockMessage.GRANT);

      /* the node will wait for a ACK message for each GRANTed vertex */
      value.waitForMessage(parent,
                           Long.valueOf(BrachaTouegDeadlockMessage.ACK));
    }
  }

  /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.