private void ensureCurrentState(STATE currentState) {
    ServiceOperations.ensureCurrentState(state, currentState);
  }
Verify that that a service is in a given state.

@param currentState
         the desired state
@throws IllegalStateException
          if the service state is different from
          the desired state
service/src/java/org/apache/hive/service/AbstractService.java