Search in sources :

Example 6 with NodeValue

use of voldemort.store.routed.NodeValue in project voldemort by voldemort.

the class SlopPurgeTest method populateSlops.

private void populateSlops(List<Versioned<Slop>> slops) {
    for (Versioned<Slop> slop : slops) {
        VectorClock clock = TestUtils.getClock(1);
        NodeValue<ByteArray, byte[]> nodeValue = new NodeValue<ByteArray, byte[]>(PURGE_SERVER_ID, slop.getValue().makeKey(), new Versioned<byte[]>(slopSerializer.toBytes(slop.getValue()), clock));
        adminClient.storeOps.putNodeKeyValue("slop", nodeValue);
    }
}
Also used : NodeValue(voldemort.store.routed.NodeValue) VectorClock(voldemort.versioning.VectorClock) ByteArray(voldemort.utils.ByteArray) Slop(voldemort.store.slop.Slop)

Aggregations

NodeValue (voldemort.store.routed.NodeValue)6 ByteArray (voldemort.utils.ByteArray)4 VectorClock (voldemort.versioning.VectorClock)3 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 VoldemortException (voldemort.VoldemortException)2 QueryKeyResult (voldemort.client.protocol.admin.QueryKeyResult)2 Slop (voldemort.store.slop.Slop)2 Versioned (voldemort.versioning.Versioned)2 StringReader (java.io.StringReader)1 HashMap (java.util.HashMap)1 Properties (java.util.Properties)1 Test (org.junit.Test)1 VoldemortApplicationException (voldemort.VoldemortApplicationException)1 AdminClient (voldemort.client.protocol.admin.AdminClient)1 AdminClientConfig (voldemort.client.protocol.admin.AdminClientConfig)1 BaseStoreRoutingPlan (voldemort.routing.BaseStoreRoutingPlan)1 SlopSerializer (voldemort.serialization.SlopSerializer)1 StoreDefinition (voldemort.store.StoreDefinition)1 NonblockingStore (voldemort.store.nonblockingstore.NonblockingStore)1