@Override
  protected int getStateId(final RestoreSnapshotState state) {
    return state.getNumber();
  }
Set up monitor status if it is not created.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/RestoreSnapshotProcedure.java