org.apache.hadoop.yarn.state
Interface StateMachine<STATE extends Enum<STATE>,EVENTTYPE extends Enum<EVENTTYPE>,EVENT>


@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface StateMachine<STATE extends Enum<STATE>,EVENTTYPE extends Enum<EVENTTYPE>,EVENT>


Method Summary
 STATE doTransition(EVENTTYPE eventType, EVENT event)
           
 STATE getCurrentState()
           
 

Method Detail

getCurrentState

STATE getCurrentState()

doTransition

STATE doTransition(EVENTTYPE eventType,
                   EVENT event)
                                       throws InvalidStateTransitonException
Throws:
InvalidStateTransitonException


Copyright © 2013 Apache Software Foundation. All Rights Reserved.