org.apache.hadoop.yarn.state
Interface MultipleArcTransition<OPERAND,EVENT,STATE extends Enum<STATE>>


@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface MultipleArcTransition<OPERAND,EVENT,STATE extends Enum<STATE>>

Hook for Transition. Post state is decided by Transition hook. Post state must be one of the valid post states registered in StateMachine.


Method Summary
 STATE transition(OPERAND operand, EVENT event)
          Transition hook.
 

Method Detail

transition

STATE transition(OPERAND operand,
                 EVENT event)
Transition hook.

Parameters:
operand - the entity attached to the FSM, whose internal state may change.
event - causal event
Returns:
the postState. Post state must be one of the valid post states registered in StateMachine.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.