BatchlogManager (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.db

## Class BatchlogManager

- java.lang.Object
- - org.apache.cassandra.db.BatchlogManager

- All Implemented Interfaces:
    BatchlogManagerMBean

      public class BatchlogManager
      extends java.lang.Object
      implements BatchlogManagerMBean

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `BatchlogManager.EndpointFilter`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.util.concurrent.ScheduledExecutorService` | `batchlogTasks`
    `static BatchlogManager` | `instance`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BatchlogManager()`

  - ### Method Summary

    Methods
    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()`
    `void` | `start()`
    `java.util.concurrent.Future<?>` | `startBatchlogReplay()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### instance

          public static final BatchlogManager instance

    - #### batchlogTasks

          public static final java.util.concurrent.ScheduledExecutorService batchlogTasks

  - ### Constructor Detail

    - #### BatchlogManager

          public BatchlogManager()

  - ### Method Detail

    - #### start

          public void start()

    - #### countAllBatches

          public int countAllBatches()

      Description copied from interface: `BatchlogManagerMBean`
      Counts all batches currently in the batchlog.
      Specified by:
        `countAllBatches` in interface `BatchlogManagerMBean`
      Returns:
        total batch count

    - #### getTotalBatchesReplayed

          public long getTotalBatchesReplayed()

      Specified by:
        `getTotalBatchesReplayed` in interface `BatchlogManagerMBean`
      Returns:
        total count of batches replayed since node start

    - #### forceBatchlogReplay

          public void forceBatchlogReplay()

      Description copied from interface: `BatchlogManagerMBean`
      Forces batchlog replay. Returns immediately if replay is already in progress.
      Specified by:
        `forceBatchlogReplay` in interface `BatchlogManagerMBean`

    - #### startBatchlogReplay

          public java.util.concurrent.Future<?> startBatchlogReplay()

    - #### getBatchlogMutationFor

          public static Mutation getBatchlogMutationFor(java.util.Collection<Mutation> mutations,
                                        java.util.UUID uuid,
                                        int version)

    - #### getBatchlogTimeout

          public long getBatchlogTimeout()

Copyright © 2014 The Apache Software Foundation