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()
StateModelFactory<? extends StateModel> getStateModelFactory(String stateModelName, String factoryName)
StateModelFactory<? extends StateModel> getStateModelFactory(String stateModelName)
boolean registerStateModelFactory(String stateModelDef, StateModelFactory<? extends StateModel> 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(String stateModelName, StateModelFactory<? extends StateModel> factory, String factoryName)
Register a state model factory with a name for a state model definition
boolean removeStateModelFactory(String stateModelDef, StateModelFactory<? extends StateModel> factory, String factoryName)
Remove the state model factory with a name for a state model definition
boolean removeStateModelFactory(String stateModelDef, StateModelFactory<? extends StateModel> factory)
Remove the default state model factory for a state model definition
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 StateModelFactory<? extends StateModel> getStateModelFactory (String stateModelName, String factoryName)

public StateModelFactory<? extends StateModel> getStateModelFactory (String stateModelName)

public boolean registerStateModelFactory (String stateModelDef, StateModelFactory<? extends StateModel> factory)

Register a default state model factory for a state model definition A state model definition could be, for example: "MasterSlave", "OnlineOffline", "LeaderStandby", etc.

public boolean registerStateModelFactory (String stateModelName, StateModelFactory<? extends StateModel> factory, String factoryName)

Register a state model factory with a name for a state model definition

public boolean removeStateModelFactory (String stateModelDef, StateModelFactory<? extends StateModel> factory, String factoryName)

Remove the state model factory with a name for a state model definition

public boolean removeStateModelFactory (String stateModelDef, StateModelFactory<? extends StateModel> factory)

Remove the default state model factory for a state model definition

public void reset ()