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, String factoryName, HelixStateModelFactory<? extends StateModel> factory)
Register a state model factory with a factory name for a state model definition Replacing registerStateModelFactory(String, StateModelFactory, String)
abstract boolean registerStateModelFactory(StateModelDefId stateModelDefId, HelixStateModelFactory<? 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.
abstract boolean registerStateModelFactory(String stateModelDef, StateModelFactory<? extends StateModel> factory)
Replaced by {@link #registerStateModelFactory(StateModelDefId, HelixStateModelFactory)
abstract boolean registerStateModelFactory(String stateModelDef, StateModelFactory<? extends StateModel> factory, String factoryName)
abstract boolean removeStateModelFactory(String stateModelDef, StateModelFactory<? extends StateModel> factory, String factoryName)
Replaced by #removeStateModelFactory(StateModelDefId, String, HelixStateModelFactory)
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)
abstract boolean removeStateModelFactory(String stateModelDef, StateModelFactory<? extends StateModel> factory)
Replaced by #removeStateModelFactory(StateModelDefId, HelixStateModelFactory)
[Expand]
Inherited Methods
From interface org.apache.helix.messaging.handling.MessageHandlerFactory

Public Methods

public abstract boolean registerStateModelFactory (StateModelDefId stateModelDefId, String factoryName, HelixStateModelFactory<? extends StateModel> factory)

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

public abstract boolean registerStateModelFactory (StateModelDefId stateModelDefId, HelixStateModelFactory<? 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. Replacing registerStateModelFactory(String, StateModelFactory)

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

Replaced by {@link #registerStateModelFactory(StateModelDefId, HelixStateModelFactory)

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

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

Replaced by #removeStateModelFactory(StateModelDefId, String, HelixStateModelFactory)

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)

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

Replaced by #removeStateModelFactory(StateModelDefId, HelixStateModelFactory)