public static void processRecordCount(SlaveTO slaveTO, JRSResponse response) { if (isSuccess(response)) { slaveTO.setRecordSize(response.getValueAsInt(RespKey.Storage.REC_COUNT_KEY)); } }
private int myCompare(SlaveTO o1, SlaveTO o2) { return o1.getRecordSize() - o2.getRecordSize(); }
public static void processPingTime(SlaveTO slaveTO, JRSResponse response) { if (isSuccess(response)) { slaveTO.updatePingTime((int) response.getTimeDelay()); } }