@RpcMethod public void deleteDisks(List<String> diskIds,AsyncMethodCallback<Host.AsyncClient.delete_disks_call> handler) throws RpcException {
  ensureClient();
  DeleteDisksRequest deleteDisksRequest=new DeleteDisksRequest(diskIds);
  clientProxy.setTimeout(DELETE_DISK_TIMEOUT_MS);
  logger.info("delete_disks diskIds {}, target {}, request {}",diskIds,getHostIp(),deleteDisksRequest);
  try {
    clientProxy.delete_disks(deleteDisksRequest,handler);
  }
 catch (  TException e) {
    throw new RpcException(e.getMessage());
  }
}

@ RpcMethod public void deleteDisks ( List < String > diskIds , AsyncMethodCallback < Host . AsyncClient . delete_disks_call > handler ) throws RpcException { ensureClient ( ) ; DeleteDisksRequest deleteDisksRequest = new DeleteDisksRequest ( diskIds ) ; clientProxy . setTimeout ( DELETE_DISK_TIMEOUT_MS ) ; logger . info ( "delete_disks diskIds {}, target {}, request {}" , diskIds , getHostIp ( ) , deleteDisksRequest ) ; try { clientProxy . delete_disks ( deleteDisksRequest , handler ) ; } catch ( TException e ) { throw new RpcException ( e . getMessage ( ) ) ; } }
this method performs an asynchronous thrift call to delete one or more disks . on completion , the specified handler is invoked .
