예제 #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());
   }
 }