@RpcMethod public void place(Resource resource,AsyncMethodCallback<Host.AsyncClient.place_call> handler) throws RpcException {
  ensureClient();
  PlaceRequest placeRequest=new PlaceRequest(resource);
  clientProxy.setTimeout(PLACE_TIMEOUT_MS);
  logger.debug("place resource {}, target {}, request {}",resource,getHostIp(),placeRequest);
  try {
    clientProxy.place(placeRequest,handler);
  }
 catch (  TException e) {
    throw new RpcException(e.getMessage());
  }
}

@ RpcMethod public void place ( Resource resource , AsyncMethodCallback < Host . AsyncClient . place_call > handler ) throws RpcException { ensureClient ( ) ; PlaceRequest placeRequest = new PlaceRequest ( resource ) ; clientProxy . setTimeout ( PLACE_TIMEOUT_MS ) ; logger . debug ( "place resource {}, target {}, request {}" , resource , getHostIp ( ) , placeRequest ) ; try { clientProxy . place ( placeRequest , handler ) ; } catch ( TException e ) { throw new RpcException ( e . getMessage ( ) ) ; } }
this method performs an asynchronous thrift call to place a resource on a host . on completion , the specified handler is invoked .
