private void switchSnapshotCleanup(final boolean on) throws IOException {
    snapshotCleanupStateStore.set(on);
    if (on) {
      getChoreService().scheduleChore(this.snapshotCleanerChore);
    } else {
      this.snapshotCleanerChore.cancel();
    }
  }
Turn on/off Snapshot Cleanup Chore
@param on indicates whether Snapshot Cleanup Chore is to be run
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java