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

org.apache.cassandra.db

## Class BatchlogManager.EndpointFilter

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

- Enclosing class:
    BatchlogManager

      public static class BatchlogManager.EndpointFilter
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BatchlogManager.EndpointFilter(java.lang.String localRack, com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress> endpoints)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Collection<java.net.InetAddress>` | `filter()`
    `protected int` | `getRandomInt(int bound)`
    `protected boolean` | `isValid(java.net.InetAddress input)`

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

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

- - ### Constructor Detail

    - #### BatchlogManager.EndpointFilter

          public BatchlogManager.EndpointFilter(java.lang.String localRack,
                                        com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress> endpoints)

  - ### Method Detail

    - #### filter

          public java.util.Collection<java.net.InetAddress> filter()

      Returns:
        list of candidates for batchlog hosting. If possible these will be two nodes from different racks.

    - #### isValid

          protected boolean isValid(java.net.InetAddress input)

    - #### getRandomInt

          protected int getRandomInt(int bound)

Copyright © 2014 The Apache Software Foundation