Package org.hive2hive.core.network.messages.TestMessageWithReply

Examples of org.hive2hive.core.network.messages.TestMessageWithReply.TestCallBackHandler


    // generate a random content key
    String contentKey = NetworkTestUtil.randomString();
    // create a message with target node B
    TestMessageWithReply message = new TestMessageWithReply(nodeB.getNodeId(), contentKey);
    // create and add a callback handler
    TestCallBackHandler callBackHandler = message.new TestCallBackHandler(nodeA);
    message.setCallBackHandler(callBackHandler);

    // send message
    assertTrue(nodeA.getMessageManager().send(message, getPublicKey(nodeB)));
View Full Code Here

TOP

Related Classes of org.hive2hive.core.network.messages.TestMessageWithReply.TestCallBackHandler

Copyright © 2018 www.massapicom. 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.