public static class OfflineTokenAllocator.FakeNode
extends java.lang.Object
Constructor and Description |
---|
FakeNode(InetAddressAndPort address,
java.lang.Integer rackId,
java.util.Collection<Token> tokens) |
Modifier and Type | Method and Description |
---|---|
int |
nodeId() |
int |
rackId() |
java.util.Collection<Token> |
tokens() |
public FakeNode(InetAddressAndPort address, java.lang.Integer rackId, java.util.Collection<Token> tokens)
public int nodeId()
public int rackId()
public java.util.Collection<Token> tokens()
Copyright © 2009-2021 The Apache Software Foundation