public class

YAMLClusterSetup

extends Object
java.lang.Object
   ↳ org.apache.helix.tools.YAMLClusterSetup

Class Overview

Supports HelixAdmin operations specified by a YAML configuration file defining a cluster, resources, participants, etc. See the user-rebalanced-lock-manager recipe for an annotated example file.

Summary

Nested Classes
class YAMLClusterSetup.YAMLClusterConfig Java wrapper for the YAML input file  
Public Constructors
YAMLClusterSetup(String zkAddress)
Start the YAML parser for a given zookeeper instance
Public Methods
static void main(String[] args)
Start a cluster defined by a YAML file
YAMLClusterSetup.YAMLClusterConfig setupCluster(InputStream input)
Set up the cluster by parsing a YAML file.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public YAMLClusterSetup (String zkAddress)

Start the YAML parser for a given zookeeper instance

Public Methods

public static void main (String[] args)

Start a cluster defined by a YAML file

Parameters
args zkAddr, yamlFile

public YAMLClusterSetup.YAMLClusterConfig setupCluster (InputStream input)

Set up the cluster by parsing a YAML file.

Parameters
input InputStream representing the file
Returns
  • ClusterConfig Java wrapper of the configuration file