Пример #1
0
 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();
 }
Пример #3
0
 public static void processPingTime(SlaveTO slaveTO, JRSResponse response) {
   if (isSuccess(response)) {
     slaveTO.updatePingTime((int) response.getTimeDelay());
   }
 }