public static class BatchlogManager.EndpointFilter
extends java.lang.Object
Constructor and Description |
---|
EndpointFilter(java.lang.String localRack,
com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress> endpoints) |
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) |
protected void |
shuffle(java.util.List<?> list) |
public EndpointFilter(java.lang.String localRack, com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress> endpoints)
public java.util.Collection<java.net.InetAddress> filter()
protected boolean isValid(java.net.InetAddress input)
protected int getRandomInt(int bound)
protected void shuffle(java.util.List<?> list)
Copyright © 2018 The Apache Software Foundation