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  
MasterSlaveStateModelFactory  
MasterSlaveStateModelFactory.MasterSlaveStateModel  
OnlineOfflineStateModelFactory  
OnlineOfflineStateModelFactory.OnlineOfflineStateModel  
Quickstart