예제 #1
0
 // Wait for termination and return response
 public HankResponse getResponse() {
   try {
     this.get();
   } catch (Exception e) {
     String errMsg = "Exception while executing future GET: " + e.getMessage();
     LOG.error(errMsg, e);
     return HankResponse.xception(HankException.internal_error(errMsg));
   }
   return runnable.getResponse();
 }
예제 #2
0
 @Override
 protected HankBulkResponse getBulkCore(int domain_id, List<ByteBuffer> keys) throws TException {
   return HankBulkResponse.xception(HankException.internal_error("Internal Error"));
 }
예제 #3
0
 @Override
 protected HankResponse getCore(int domain_id, ByteBuffer key) throws TException {
   return HankResponse.xception(HankException.internal_error("Internal Error"));
 }