예제 #1
0
 private String makeStringOfMyOpinion(HBRefData data, long stateTimestamp, String newState) {
   HBRefData.ZKData zkData = data.getZkData();
   return MessageFormatter.arrayFormat(
       OPINION_FORMAT,
       new Object[] {
         config.getIp() + ":" + config.getPort(), newState, zkData.version, stateTimestamp
       });
 }
예제 #2
0
 private String makePathOfMyOpinion(String targetPath) {
   String path = targetPath + "/" + config.getIp() + ":" + config.getPort();
   return path;
 }