Public Methods |
void
|
activateCluster(String clusterName, String grandCluster, boolean enable)
|
void
|
addCluster(String clusterName, boolean overwritePrevious)
|
void
|
addIdealState(String clusterName, String resourceName, String idealStateFile)
|
void
|
addInstanceToCluster(String clusterName, String instanceId)
|
void
|
addInstancesToCluster(String clusterName, String[] instanceInfoArray)
|
void
|
addResourceProperty(String clusterName, String resourceName, String propertyKey, String propertyVal)
|
void
|
addResourceToCluster(String clusterName, String resourceName, int numResources, String stateModelRef, String rebalancerMode)
|
void
|
addResourceToCluster(String clusterName, String resourceName, int numResources, String stateModelRef, String rebalancerMode, int bucketSize)
|
void
|
addResourceToCluster(String clusterName, String resourceName, int numResources, String stateModelRef, String rebalancerMode, int bucketSize, int maxPartitionsPerInstance)
|
void
|
addResourceToCluster(String clusterName, String resourceName, int numResources, String stateModelRef)
|
void
|
addStateModelDef(String clusterName, String stateModelDef, StateModelDefinition record)
|
void
|
balanceIdealState(String clusterName, IdealState idealState)
|
void
|
deleteCluster(String clusterName)
|
void
|
dropInstanceFromCluster(String clusterName, String instanceId)
|
void
|
dropInstancesFromCluster(String clusterName, String[] instanceInfoArray)
|
void
|
dropResourceFromCluster(String clusterName, String resourceName)
|
void
|
expandCluster(String clusterName)
|
void
|
expandResource(String clusterName, String resourceName)
|
HelixAdmin
|
getClusterManagementTool()
|
String
|
getConfig(HelixConfigScope.ConfigScopeProperty type, String scopeArgsCsv, String keysCsv)
get configs
|
String
|
getConstraints(String clusterName, String constraintType)
get constraints associated with given type
|
static
void
|
main(String[] args)
|
static
void
|
printUsage(Options cliOptions)
|
static
int
|
processCommandLineArgs(String[] cliArgs)
|
void
|
rebalanceCluster(String clusterName, String resourceName, int replica, String keyPrefix, String group)
|
void
|
rebalanceResource(String clusterName, String resourceName, int replica)
|
void
|
rebalanceStorageCluster(String clusterName, String resourceName, int replica)
|
void
|
rebalanceStorageCluster(String clusterName, String resourceName, String group, int replica)
|
void
|
rebalanceStorageCluster(String clusterName, String resourceName, int replica, String keyPrefix)
|
void
|
removeConfig(HelixConfigScope.ConfigScopeProperty type, String scopeArgsCsv, String keysCsv)
remove configs
|
void
|
removeConstraint(String clusterName, String constraintType, String constraintId)
remove constraint
|
void
|
removeResourceProperty(String clusterName, String resourceName, String propertyKey)
|
void
|
setConfig(HelixConfigScope.ConfigScopeProperty type, String scopeArgsCsv, String keyValuePairs)
set configs
|
void
|
setConstraint(String clusterName, String constraintType, String constraintId, String constraintAttributesMap)
set constraint
|
void
|
setupTestCluster(String clusterName)
Sets up a cluster
6 Instances[localhost:8900 to localhost:8905],
1 resource[TestDB] with a replication factor of 3 and using MasterSlave state model
|
void
|
swapInstance(String clusterName, String oldInstanceName, String newInstanceName)
|