Package org.apache.cassandra.service
Class TokenRange
java.lang.Object
org.apache.cassandra.service.TokenRange
Holds token range informations for the sake of
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.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenRangecreate(Token.TokenFactory tokenFactory, Range<Token> range, List<InetAddressAndPort> endpoints, boolean withPorts) toString()toString(boolean withPorts)
-
Field Details
-
range
-
endpoints
-
-
Method Details
-
create
public static TokenRange create(Token.TokenFactory tokenFactory, Range<Token> range, List<InetAddressAndPort> endpoints, boolean withPorts) -
toString
-
toString
-