예제 #1
0
 private LockStatus getLockStatus() {
   String unLockUri = "http://" + metadata.getHostAndPort() + "/control/lockStatus";
   HttpGet httpGet = new HttpGet(unLockUri);
   try {
     return objectReader.withType(LockStatus.class).readValue(askWorker(httpGet));
   } catch (IOException e) {
     logger.warn("Error reading worker lock status");
     throw Throwables.propagate(e);
   }
 }