org.apache.zookeeper
Class Quotas

java.lang.Object
  extended by org.apache.zookeeper.Quotas

public class Quotas
extends Object

this class manages quotas and has many other utils for quota


Field Summary
static String limitNode
          the limit node that has the limit of a subtree
static String procZookeeper
          the zookeeper nodes that acts as the management and status node
static String quotaZookeeper
          the zookeeper quota node that acts as the quota management node for zookeeper
static String statNode
          the stat node that monitors the limit of a subtree.
 
Constructor Summary
Quotas()
           
 
Method Summary
static String quotaPath(String path)
          return the quota path associated with this prefix
static String statPath(String path)
          return the stat quota path associated with this prefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

procZookeeper

public static final String procZookeeper
the zookeeper nodes that acts as the management and status node

See Also:
Constant Field Values

quotaZookeeper

public static final String quotaZookeeper
the zookeeper quota node that acts as the quota management node for zookeeper

See Also:
Constant Field Values

limitNode

public static final String limitNode
the limit node that has the limit of a subtree

See Also:
Constant Field Values

statNode

public static final String statNode
the stat node that monitors the limit of a subtree.

See Also:
Constant Field Values
Constructor Detail

Quotas

public Quotas()
Method Detail

quotaPath

public static String quotaPath(String path)
return the quota path associated with this prefix

Parameters:
path - the actual path in zookeeper.
Returns:
the limit quota path

statPath

public static String statPath(String path)
return the stat quota path associated with this prefix.

Parameters:
path - the actual path in zookeeper
Returns:
the stat quota path


Copyright © 2011 The Apache Software Foundation