public class

HelixStateMachineEngine

extends Object
implements StateMachineEngine
java.lang.Object
   ↳ org.apache.helix.participant.HelixStateMachineEngine

Summary

Public Constructors
HelixStateMachineEngine(HelixManager manager)
Public Methods
MessageHandler createHandler(Message message, NotificationContext context)
String getMessageType()
StateTransitionHandlerFactory<? extends TransitionHandler> getStateModelFactory(StateModelDefId stateModelName, String factoryName)
StateTransitionHandlerFactory<? extends TransitionHandler> getStateModelFactory(StateModelDefId stateModelName)
boolean registerStateModelFactory(StateModelDefId stateModelDefId, StateTransitionHandlerFactory<? extends TransitionHandler> factory)
Register a default state model factory for a state model definition A state model definition could be, for example: "MasterSlave", "OnlineOffline", "LeaderStandby", etc.
boolean registerStateModelFactory(StateModelDefId stateModelDefId, String factoryName, StateTransitionHandlerFactory<? extends TransitionHandler> factory)
Register a state model factory with a factory name for a state model definition Replacing #registerStateModelFactory(String, StateModelFactory, String)
boolean removeStateModelFactory(StateModelDefId stateModelDefId)
Remove the default state model factory for a state model definition Replacing {@link #removeStateModelFactory(String, StateModelFactory)
boolean removeStateModelFactory(StateModelDefId stateModelDefId, String factoryName)
Remove the state model factory with a name for a state model definition Replacing #removeStateModelFactory(String, StateModelFactory, String)
void reset()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.helix.messaging.handling.MessageHandlerFactory
From interface org.apache.helix.participant.StateMachineEngine

Public Constructors

public HelixStateMachineEngine (HelixManager manager)

Public Methods

public MessageHandler createHandler (Message message, NotificationContext context)

public String getMessageType ()

public StateTransitionHandlerFactory<? extends TransitionHandler> getStateModelFactory (StateModelDefId stateModelName, String factoryName)

public StateTransitionHandlerFactory<? extends TransitionHandler> getStateModelFactory (StateModelDefId stateModelName)

public boolean registerStateModelFactory (StateModelDefId stateModelDefId, StateTransitionHandlerFactory<? extends TransitionHandler> factory)

Register a default state model factory for a state model definition A state model definition could be, for example: "MasterSlave", "OnlineOffline", "LeaderStandby", etc. Replacing #registerStateModelFactory(String, StateModelFactory)

public boolean registerStateModelFactory (StateModelDefId stateModelDefId, String factoryName, StateTransitionHandlerFactory<? extends TransitionHandler> factory)

Register a state model factory with a factory name for a state model definition Replacing #registerStateModelFactory(String, StateModelFactory, String)

public boolean removeStateModelFactory (StateModelDefId stateModelDefId)

Remove the default state model factory for a state model definition Replacing {@link #removeStateModelFactory(String, StateModelFactory)

public boolean removeStateModelFactory (StateModelDefId stateModelDefId, String factoryName)

Remove the state model factory with a name for a state model definition Replacing #removeStateModelFactory(String, StateModelFactory, String)

public void reset ()