Class YamlNodeConfigParser

  • All Implemented Interfaces:
    NodeConfigParser

    public class YamlNodeConfigParser
    extends Object
    implements NodeConfigParser
    NodeConfigParser for YAML configurations. YAML file can contain arbitrary section, the only required is nodes list, containing list of nodes, each represented by it's name followed by a map of options. This options can contain following elements:
    • fqdn is node FQND or IP address. If not specified, node name is used as a hostname.
    • jvmOtions and envVars. jvmOtions is a plain string containing JVM options like -Xmx etc.
    • javaProps is a map of java propertied to be passed to RG startup script. Typically should be used for setting up variables used in RG scenarios. Properties are entered without "-D" prefix, this will be added later on automatically.
    • envVars is a map of environment variables and their values, which should be exported to given host.
    The contract is that the first node is main node. Main node can contain all element worker can contain, no special main configuration is currently supported.
    Author:
    vjuranek