org.fusesource.fabric.zookeeper
Enum ZkPath

java.lang.Object
  extended by java.lang.Enum<ZkPath>
      extended by org.fusesource.fabric.zookeeper.ZkPath
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ZkPath>

public enum ZkPath
extends java.lang.Enum<ZkPath>

Set of paths which are used by fon.


Enum Constant Summary
AGENT
           
AGENT_ALIVE
           
AGENT_DOMAIN
           
AGENT_DOMAINS
           
AGENT_IP
           
AGENT_JMX
           
AGENT_LOCATION
           
AGENT_ROOT
           
AGENT_SSH
           
AGENTS
           
CONFIG_AGENT
           
CONFIG_DEFAULT_VERSION
           
CONFIG_VERSION
           
CONFIG_VERSIONS
           
CONFIG_VERSIONS_AGENT
           
CONFIG_VERSIONS_PROFILE
           
CONFIG_VERSIONS_PROFILES
           
CONFIGS_AGENTS
           
 
Method Summary
 java.lang.String getPath(java.util.Map<java.lang.String,java.lang.String> args)
          Gets path.
 java.lang.String getPath(java.lang.String... args)
          Gets path.
static ZkPath valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ZkPath[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONFIGS_AGENTS

public static final ZkPath CONFIGS_AGENTS

CONFIG_AGENT

public static final ZkPath CONFIG_AGENT

CONFIG_DEFAULT_VERSION

public static final ZkPath CONFIG_DEFAULT_VERSION

CONFIG_VERSIONS

public static final ZkPath CONFIG_VERSIONS

CONFIG_VERSION

public static final ZkPath CONFIG_VERSION

CONFIG_VERSIONS_PROFILES

public static final ZkPath CONFIG_VERSIONS_PROFILES

CONFIG_VERSIONS_PROFILE

public static final ZkPath CONFIG_VERSIONS_PROFILE

CONFIG_VERSIONS_AGENT

public static final ZkPath CONFIG_VERSIONS_AGENT

AGENTS

public static final ZkPath AGENTS

AGENT

public static final ZkPath AGENT

AGENT_DOMAINS

public static final ZkPath AGENT_DOMAINS

AGENT_DOMAIN

public static final ZkPath AGENT_DOMAIN

AGENT_ALIVE

public static final ZkPath AGENT_ALIVE

AGENT_IP

public static final ZkPath AGENT_IP

AGENT_ROOT

public static final ZkPath AGENT_ROOT

AGENT_JMX

public static final ZkPath AGENT_JMX

AGENT_SSH

public static final ZkPath AGENT_SSH

AGENT_LOCATION

public static final ZkPath AGENT_LOCATION
Method Detail

values

public static ZkPath[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ZkPath c : ZkPath.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ZkPath valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getPath

public java.lang.String getPath(java.lang.String... args)
Gets path.

Parameters:
args - Values of path variables.
Returns:
Path

getPath

public java.lang.String getPath(java.util.Map<java.lang.String,java.lang.String> args)
Gets path.

Parameters:
args - Values of path variables.
Returns:
Path


Copyright © 2011 FuseSource. All Rights Reserved.