@Override public RenewLeaseResponseProto renewLease(RpcController controller, RenewLeaseRequestProto req) throws ServiceException { try { server.renewLease(req.getClientName()); return VOID_RENEWLEASE_RESPONSE; } catch (IOException e) { throw new ServiceException(e); } }
@Override public void renewLease(String clientName) throws AccessControlException, IOException { RenewLeaseRequestProto req = RenewLeaseRequestProto.newBuilder() .setClientName(clientName).build(); try { rpcProxy.renewLease(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public void renewLease(String clientName) throws IOException { RenewLeaseRequestProto req = RenewLeaseRequestProto.newBuilder() .setClientName(clientName).build(); try { rpcProxy.renewLease(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public void renewLease(String clientName) throws AccessControlException, IOException { RenewLeaseRequestProto req = RenewLeaseRequestProto.newBuilder().setClientName(clientName).build(); try { rpcProxy.renewLease(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }