Search in sources :

Example 6 with RepairJobDesc

use of org.apache.cassandra.repair.RepairJobDesc in project cassandra by apache.

the class RepairMessageSerializationsTest method validationCompleteMessage.

private ValidationComplete validationCompleteMessage(MerkleTrees trees) throws IOException {
    RepairJobDesc jobDesc = buildRepairJobDesc();
    ValidationComplete msg = trees == null ? new ValidationComplete(jobDesc) : new ValidationComplete(jobDesc, trees);
    ValidationComplete deserialized = serializeRoundTrip(msg, ValidationComplete.serializer);
    return deserialized;
}
Also used : RepairJobDesc(org.apache.cassandra.repair.RepairJobDesc)

Aggregations

RepairJobDesc (org.apache.cassandra.repair.RepairJobDesc)6 Range (org.apache.cassandra.dht.Range)2 Token (org.apache.cassandra.dht.Token)2 Test (org.junit.Test)2 ByteBuffer (java.nio.ByteBuffer)1 Random (java.util.Random)1 UUID (java.util.UUID)1 UpdateBuilder (org.apache.cassandra.UpdateBuilder)1 RepairSession (org.apache.cassandra.repair.RepairSession)1 Validator (org.apache.cassandra.repair.Validator)1 BeforeClass (org.junit.BeforeClass)1