protected final int getCycles() {
    return cycles;
  }
Procedure described by a series of steps.
<p>
The procedure implementor must have an enum of 'states', describing the various step of the
procedure. Once the procedure is running, the procedure-framework will call executeFromState()
using the 'state' provided by the user. The first call to executeFromState() will be performed
with 'state = null'. The implementor can jump between states using
setNextState(MyStateEnum.ordinal()). The rollback will call rollbackState() for each state that
was executed, in reverse order.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/StateMachineProcedure.java