public abstract class

StateModel

extends Object
java.lang.Object
   ↳ org.apache.helix.participant.statemachine.StateModel
Known Direct Subclasses

Summary

Fields
protected String _currentState
Public Constructors
StateModel()
Public Methods
void defaultTransitionHandler()
String getCurrentState()
void onBecomeDroppedFromError(Message message, NotificationContext context)
default transition for drop partition in error state
void reset()
Called when the state model is reset
void rollbackOnError(Message message, NotificationContext context, StateTransitionError error)
Called when error occurs in state transition TODO:enforce subclass to write this
boolean updateState(String newState)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected String _currentState

Public Constructors

public StateModel ()

Public Methods

public void defaultTransitionHandler ()

public String getCurrentState ()

public void onBecomeDroppedFromError (Message message, NotificationContext context)

default transition for drop partition in error state

public void reset ()

Called when the state model is reset

public void rollbackOnError (Message message, NotificationContext context, StateTransitionError error)

Called when error occurs in state transition TODO:enforce subclass to write this

public boolean updateState (String newState)