@Override public DisallowSnapshotResponseProto disallowSnapshot(RpcController controller, DisallowSnapshotRequestProto req) throws ServiceException { try { server.disallowSnapshot(req.getSnapshotRoot()); return VOID_DISALLOW_SNAPSHOT_RESPONSE; } catch (IOException e) { throw new ServiceException(e); } }
@Override public void disallowSnapshot(String snapshotRoot) throws IOException { DisallowSnapshotRequestProto req = DisallowSnapshotRequestProto .newBuilder().setSnapshotRoot(snapshotRoot).build(); try { rpcProxy.disallowSnapshot(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }