use of com.ms.silverking.cloud.dht.daemon.storage.convergence.ChecksumNode in project SilverKing by Morgan-Stanley.
the class ActiveClientOperationTable method receivedChecksumTree.
// FUTURE - for testing, consider removing
public void receivedChecksumTree(MessageGroup message) {
ChecksumNode checksumNode;
checksumNode = ProtoChecksumTreeMessageGroup.deserialize(message);
System.out.println(checksumNode);
activeVersionedBasicOperations.receivedOpResponse(message);
}
use of com.ms.silverking.cloud.dht.daemon.storage.convergence.ChecksumNode in project SilverKing by Morgan-Stanley.
the class ChecksumTreeDebug method incomingChecksumTree.
private void incomingChecksumTree(MessageGroup message, MessageGroupConnection connection) {
ChecksumNode remoteTree;
ConvergencePoint cp;
cp = ProtoChecksumTreeMessageGroup.getConvergencePoint(message);
remoteTree = ProtoChecksumTreeMessageGroup.deserialize(message);
ars.incomingChecksumTree(cp, remoteTree, connection);
}
use of com.ms.silverking.cloud.dht.daemon.storage.convergence.ChecksumNode in project SilverKing by Morgan-Stanley.
the class TreeTest method serializationTest.
private void serializationTest(ChecksumNode checksumNode) {
ChecksumNode dNode;
ByteBuffer buffer;
buffer = ByteBuffer.allocate(1024 * 1024);
ProtoChecksumTreeMessageGroup.serialize(buffer, checksumNode);
System.out.println(buffer);
buffer.flip();
System.out.println(buffer);
dNode = ProtoChecksumTreeMessageGroup.deserialize(buffer);
System.out.println(" *** Pre-serialization ***");
System.out.println(checksumNode);
System.out.println(" *** Post-serialization ***");
System.out.println(dNode);
System.out.println(" *** Match test ***");
System.out.println(TreeMatcher.match(dNode, checksumNode));
}
Aggregations