public class BatchlogManager extends java.lang.Object implements BatchlogManagerMBean
| Modifier and Type | Class and Description |
|---|---|
static class |
BatchlogManager.EndpointFilter |
| Modifier and Type | Field and Description |
|---|---|
static BatchlogManager |
instance |
| Constructor and Description |
|---|
BatchlogManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
countAllBatches()
Counts all batches currently in the batchlog.
|
void |
forceBatchlogReplay()
Forces batchlog replay.
|
static Mutation |
getBatchlogMutationFor(java.util.Collection<Mutation> mutations,
java.util.UUID uuid,
int version) |
long |
getBatchlogTimeout() |
long |
getTotalBatchesReplayed() |
static void |
shutdownAndWait(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
start() |
java.util.concurrent.Future<?> |
startBatchlogReplay() |
public static final BatchlogManager instance
public void start()
public static void shutdownAndWait(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.TimeoutException
java.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic int countAllBatches()
BatchlogManagerMBeancountAllBatches in interface BatchlogManagerMBeanpublic long getTotalBatchesReplayed()
getTotalBatchesReplayed in interface BatchlogManagerMBeanpublic void forceBatchlogReplay()
throws java.lang.Exception
BatchlogManagerMBeanforceBatchlogReplay in interface BatchlogManagerMBeanjava.lang.Exceptionpublic java.util.concurrent.Future<?> startBatchlogReplay()
public static Mutation getBatchlogMutationFor(java.util.Collection<Mutation> mutations, java.util.UUID uuid, int version)
public long getBatchlogTimeout()
Copyright © 2020 The Apache Software Foundation