@RpcMethod public void createDisks(String reservation,AsyncMethodCallback<Host.AsyncClient.create_disks_call> handler) throws RpcException {
  ensureClient();
  CreateDisksRequest createDisksRequest=new CreateDisksRequest(reservation);
  clientProxy.setTimeout(CREATE_DISKS_TIMEOUT_MS);
  logger.info("create_disks reservation {}, target {}, request {}",reservation,getHostIp(),createDisksRequest);
  try {
    clientProxy.create_disks(createDisksRequest,handler);
  }
 catch (  TException e) {
    throw new RpcException(e.getMessage());
  }
}

@ RpcMethod public void createDisks ( String reservation , AsyncMethodCallback < Host . AsyncClient . create_disks_call > handler ) throws RpcException { ensureClient ( ) ; CreateDisksRequest createDisksRequest = new CreateDisksRequest ( reservation ) ; clientProxy . setTimeout ( CREATE_DISKS_TIMEOUT_MS ) ; logger . info ( "create_disks reservation {}, target {}, request {}" , reservation , getHostIp ( ) , createDisksRequest ) ; try { clientProxy . create_disks ( createDisksRequest , handler ) ; } catch ( TException e ) { throw new RpcException ( e . getMessage ( ) ) ; } }
this method performs an asynchronous thrift call to create a disk . on completion , the specified handler is invoked .
