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<java.net.InetAddress> endpoints) |
java.lang.String |
toString() |
public final java.util.List<TokenRange.EndpointDetails> endpoints
public static TokenRange create(Token.TokenFactory tokenFactory, Range<Token> range, java.util.List<java.net.InetAddress> endpoints)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 The Apache Software Foundation