@Override
  public SetCleanerChoreRunningResponse setCleanerChoreRunning(RpcController c,
    SetCleanerChoreRunningRequest req) throws ServiceException {
    rpcPreCheck("setCleanerChoreRunning");

    boolean prevValue =
      server.getLogCleaner().getEnabled() && server.getHFileCleaner().getEnabled();
    server.getLogCleaner().setEnabled(req.getOn());
    for (HFileCleaner hFileCleaner : server.getHFileCleaners()) {
      hFileCleaner.setEnabled(req.getOn());
    }
    return SetCleanerChoreRunningResponse.newBuilder().setPrevValue(prevValue).build();
  }
Execute Delete Snapshot operation.
@return DeleteSnapshotResponse (a protobuf wrapped void) if the snapshot existed and was
        deleted properly.
@throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not
                         exist.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java