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 }); }
private String makePathOfMyOpinion(String targetPath) { String path = targetPath + "/" + config.getIp() + ":" + config.getPort(); return path; }