Package org.apache.cassandra.service
Class TokenRange
- java.lang.Object
-
- org.apache.cassandra.service.TokenRange
-
public class TokenRange extends java.lang.Object
Holds token range informations for the sake ofStorageService.describeRing(java.lang.String)
. This class mostly exists for the sake ofStorageService.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 oftoString()
in particular (used byStorageService.describeRingJMX(java.lang.String)
). This class probably have no other good uses than providing backward compatibility.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenRange.EndpointDetails
-
Field Summary
Fields Modifier and Type Field Description java.util.List<TokenRange.EndpointDetails>
endpoints
Range<Token>
range
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
endpoints
public final java.util.List<TokenRange.EndpointDetails> endpoints
-
-
Method Detail
-
create
public static TokenRange create(Token.TokenFactory tokenFactory, Range<Token> range, java.util.List<InetAddressAndPort> endpoints, boolean withPorts)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(boolean withPorts)
-
-