public interface

StateMachineEngine

implements MessageHandlerFactory
org.apache.helix.participant.StateMachineEngine
Known Indirect Subclasses

Class Overview

Helix participant uses this class to register/remove state model factory State model factory creates state model that handles state transition messages

Summary

Public Methods
abstract 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.
abstract 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)
abstract boolean removeStateModelFactory(StateModelDefId stateModelDefId)
Remove the default state model factory for a state model definition Replacing {@link #removeStateModelFactory(String, StateModelFactory)
abstract boolean removeStateModelFactory(StateModelDefId stateModelDefId, String factoryName)
Remove the state model factory with a name for a state model definition Replacing #removeStateModelFactory(String, StateModelFactory, String)
[Expand]
Inherited Methods
From interface org.apache.helix.messaging.handling.MessageHandlerFactory

Public Methods

public abstract 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 abstract 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 abstract boolean removeStateModelFactory (StateModelDefId stateModelDefId)

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

public abstract boolean removeStateModelFactory (StateModelDefId stateModelDefId, String factoryName)

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