public class

IdealStateExample

extends Object
java.lang.Object
   ↳ org.apache.helix.examples.IdealStateExample

Class Overview

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"
 }
 }
 

Summary

Public Constructors
IdealStateExample()
Public Methods
static void main(String[] args)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IdealStateExample ()

Public Methods

public static void main (String[] args)

Throws
Exception