@Override
  protected int getStateId(SnapshotState state) {
    return state.getNumber();
  }
A procedure used to take snapshot on tables.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/SnapshotProcedure.java