package

org.apache.helix.examples

Examples of using Helix cluster manager

Classes

BootstrapHandler  
BootstrapHandler.BootstrapStateModel  
BootstrapProcess This process does little more than handling the state transition messages. 
BootstrapProcess.CustomMessageHandlerFactory  
DummyParticipant  
DummyParticipant.DummyMSModelFactory  
DummyParticipant.DummyMSStateModel  
ExampleHelper  
ExampleProcess  
IdealStateBuilderExample  
IdealStateExample Ideal state json format file used in this example for CUSTOMIZED ideal state mode

 {
 "id" : "TestDB",
 "mapFields" : {
   "TestDB_0" : {
     "localhost_12918" : "MASTER",
     "localhost_12919" : "SLAVE",
     "localhost_12920" : "SLAVE"
   },
   "TestDB_1" : {
     "localhost_12918" : "MASTER",
     "localhost_12919" : "SLAVE",
     "localhost_12920" : "SLAVE"
   },
   "TestDB_2" : {
     "localhost_12918" : "MASTER",
     "localhost_12919" : "SLAVE",
     "localhost_12920" : "SLAVE"
   },
   "TestDB_3" : {
     "localhost_12918" : "MASTER",
     "localhost_12919" : "SLAVE",
     "localhost_12920" : "SLAVE"
   }
 },
 "listFields" : {
 },
 "simpleFields" : {
   "IDEAL_STATE_MODE" : "CUSTOMIZED",
   "NUM_PARTITIONS" : "4",
   "REPLICAS" : "3",
   "STATE_MODEL_DEF_REF" : "MasterSlave",
   "STATE_MODEL_FACTORY_NAME" : "DEFAULT"
 }
 }
 
 
LeaderStandbyStateModelFactory  
LeaderStandbyStateModelFactory.LeaderStandbyStateModel  
LogicalModelExample Example showing all major interactions with the new Helix logical model  
LogicalModelExample.LockUnlockFactory State model factory for lock-unlock  
LogicalModelExample.LockUnlockStateModel Dummy state model that just prints state transitions for the lock-unlock model  
MasterSlaveStateModelFactory  
MasterSlaveStateModelFactory.MasterSlaveStateModel  
OnlineOfflineStateModelFactory  
OnlineOfflineStateModelFactory.OnlineOfflineStateModel  
Quickstart