public abstract class

TransitionHandler

extends Object
java.lang.Object
   ↳ org.apache.helix.api.TransitionHandler
Known Direct Subclasses

Summary

Constants
String DEFAULT_INITIAL_STATE
Fields
protected String _currentState
protected String _requestedState requested-state is used (e.g.
Public Constructors
TransitionHandler()
Public Methods
void defaultTransitionHandler()
String getCurrentState()
String getRequestedState()
Get requested-state
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
void setRequestedState(String requestedState)
Set requested-state
boolean updateState(String newState)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DEFAULT_INITIAL_STATE

Constant Value: "OFFLINE"

Fields

protected String _currentState

protected String _requestedState

requested-state is used (e.g. by task-framework) to request next state

Public Constructors

public TransitionHandler ()

Public Methods

public void defaultTransitionHandler ()

public String getCurrentState ()

public String getRequestedState ()

Get requested-state

Returns
  • requested-state

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 void setRequestedState (String requestedState)

Set requested-state

public boolean updateState (String newState)