public void doVerb(MessageIn<UUID> message, int id) { BatchlogManager.remove(message.payload); } }
public static void store(Batch batch) { store(batch, true); }
/** * Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances) * * The mutations will always be encoded using the current messaging version. */ public static Batch createRemote(UUID id, long creationTime, Collection<ByteBuffer> mutations) { return new Batch(id, creationTime, Collections.<Mutation>emptyList(), mutations); }
public Batch deserialize(DataInputPlus in, int version) throws IOException { UUID id = UUIDSerializer.serializer.deserialize(in, version); long creationTime = in.readLong(); /* * If version doesn't match the current one, we cannot not just read the encoded mutations verbatim, * so we decode them instead, to deal with compatibility. */ return version == MessagingService.current_version ? createRemote(id, creationTime, readEncodedMutations(in)) : createLocal(id, creationTime, decodeMutations(in, version)); }
public void replayBatchlog() throws IOException { try { bmProxy.forceBatchlogReplay(); } catch (Exception e) { throw new IOException(e); } }
static void store(Batch batch, int version) { getStoreMutation(batch, version).apply(); }
public void forceBatchlogReplay() throws Exception { startBatchlogReplay().get(); }
public Batch deserialize(DataInputPlus in, int version) throws IOException { UUID id = UUIDSerializer.serializer.deserialize(in, version); long creationTime = in.readLong(); /* * If version doesn't match the current one, we cannot not just read the encoded mutations verbatim, * so we decode them instead, to deal with compatibility. */ return version == MessagingService.current_version ? createRemote(id, creationTime, readEncodedMutations(in)) : createLocal(id, creationTime, decodeMutations(in, version)); }
/** * Creates a 'local' batch - with all enclosed mutations in decoded form (as Mutation instances) */ public static Batch createLocal(UUID id, long creationTime, Collection<Mutation> mutations) { return new Batch(id, creationTime, mutations, Collections.emptyList()); }
public void doVerb(MessageIn<UUID> message, int id) { BatchlogManager.remove(message.payload); } }
public static void store(Batch batch) { store(batch, true); }
public void replayBatchlog() throws IOException { try { bmProxy.forceBatchlogReplay(); } catch (Exception e) { throw new IOException(e); } }
static void store(Batch batch, int version) { getStoreMutation(batch, version).apply(); }
public Batch deserialize(DataInputPlus in, int version) throws IOException { UUID id = UUIDSerializer.serializer.deserialize(in, version); long creationTime = in.readLong(); /* * If version doesn't match the current one, we cannot not just read the encoded mutations verbatim, * so we decode them instead, to deal with compatibility. */ return version == MessagingService.current_version ? createRemote(id, creationTime, readEncodedMutations(in)) : createLocal(id, creationTime, decodeMutations(in, version)); }
/** * Creates a 'local' batch - with all enclosed mutations in decoded form (as Mutation instances) */ public static Batch createLocal(UUID id, long creationTime, Collection<Mutation> mutations) { return new Batch(id, creationTime, mutations, Collections.emptyList()); }
public void doVerb(MessageIn<UUID> message, int id) { BatchlogManager.remove(message.payload); } }
public static void store(Batch batch) { store(batch, true); }
public void replayBatchlog() throws IOException { try { bmProxy.forceBatchlogReplay(); } catch (Exception e) { throw new IOException(e); } }
/** * Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances) * * The mutations will always be encoded using the current messaging version. */ public static Batch createRemote(UUID id, long creationTime, Collection<ByteBuffer> mutations) { return new Batch(id, creationTime, Collections.<Mutation>emptyList(), mutations); }
/** * Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances) * * The mutations will always be encoded using the current messaging version. */ public static Batch createRemote(UUID id, long creationTime, Collection<ByteBuffer> mutations) { return new Batch(id, creationTime, Collections.<Mutation>emptyList(), mutations); }