Java Code Examples for org.apache.ratis.server.protocol.TermIndex#toString()

The following examples show how to use org.apache.ratis.server.protocol.TermIndex#toString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServerProtoUtils.java    From incubator-ratis with Apache License 2.0 4 votes vote down vote up
static String toTermIndexString(LogEntryProto entry) {
  return TermIndex.toString(entry.getTerm(), entry.getIndex());
}
 
Example 2
Source File: ServerProtoUtils.java    From incubator-ratis with Apache License 2.0 4 votes vote down vote up
static String toTermIndexString(TermIndexProto proto) {
  return TermIndex.toString(proto.getTerm(), proto.getIndex());
}
 
Example 3
Source File: ServerImplUtils.java    From incubator-ratis with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
  return TermIndex.toString(term, index);
}
 
Example 4
Source File: ServerProtoUtils.java    From ratis with Apache License 2.0 4 votes vote down vote up
public static String toTermIndexString(LogEntryProto entry) {
  return TermIndex.toString(entry.getTerm(), entry.getIndex());
}
 
Example 5
Source File: ServerImplUtils.java    From ratis with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
  return TermIndex.toString(term, index);
}