public class

MasterSlaveStateModelFactory

extends StateModelFactory<T extends StateModel>
java.lang.Object
   ↳ org.apache.helix.participant.statemachine.StateModelFactory<T extends org.apache.helix.participant.statemachine.StateModel>
     ↳ org.apache.helix.examples.MasterSlaveStateModelFactory

Summary

Nested Classes
class MasterSlaveStateModelFactory.MasterSlaveStateModel  
Public Constructors
MasterSlaveStateModelFactory(int delay)
MasterSlaveStateModelFactory(String instanceName)
MasterSlaveStateModelFactory()
Public Methods
StateModel createNewStateModel(String resourceName, String partitionName)
This method will be invoked only once per resource per partition per session Replace deprecating StateModelFactory#createNewStateModel(String partitionName) Add "resourceName" to signature @see HELIX-552
[Expand]
Inherited Methods
From class org.apache.helix.participant.statemachine.StateModelFactory
From class java.lang.Object

Public Constructors

public MasterSlaveStateModelFactory (int delay)

public MasterSlaveStateModelFactory (String instanceName)

public MasterSlaveStateModelFactory ()

Public Methods

public StateModel createNewStateModel (String resourceName, String partitionName)

This method will be invoked only once per resource per partition per session Replace deprecating StateModelFactory#createNewStateModel(String partitionName) Add "resourceName" to signature @see HELIX-552

Returns
  • state model