public class TokenRange
extends java.lang.Object
StorageService.describeRing(java.lang.String)
.
This class mostly exists for the sake of StorageService.describeRing(java.lang.String)
,
which used to rely on a thrift class which this is the equivalent of. This is
the reason this class behave how it does and the reason for the format
of toString()
in particular (used by
StorageService.describeRingJMX(java.lang.String)
). This class probably have no other
good uses than providing backward compatibility.Modifier and Type | Class and Description |
---|---|
static class |
TokenRange.EndpointDetails |
Modifier and Type | Field and Description |
---|---|
java.util.List<TokenRange.EndpointDetails> |
endpoints |
Range<Token> |
range |
Modifier and Type | Method and Description |
---|---|
static TokenRange |
create(Token.TokenFactory tokenFactory,
Range<Token> range,
java.util.List<InetAddressAndPort> endpoints,
boolean withPorts) |
java.lang.String |
toString() |
java.lang.String |
toString(boolean withPorts) |
public final java.util.List<TokenRange.EndpointDetails> endpoints
public static TokenRange create(Token.TokenFactory tokenFactory, Range<Token> range, java.util.List<InetAddressAndPort> endpoints, boolean withPorts)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean withPorts)
Copyright © 2009- The Apache Software Foundation