Package org.apache.zookeeper
Class Quotas
java.lang.Object
org.apache.zookeeper.Quotas
this class manages quotas
and has many other utils
for quota
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
the limit node that has the limit of a subtreestatic final String
the zookeeper nodes that acts as the management and status nodestatic final String
the zookeeper quota node that acts as the quota management node for zookeeperstatic final String
the stat node that monitors the limit of a subtree. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
return the limit quota path associated with this prefixstatic String
return the quota path associated with this prefixstatic String
return the stat quota path associated with this prefix.static String
trimQuotaPath
(String quotaPath) return the real path associated with this quotaPath.
-
Field Details
-
procZookeeper
the zookeeper nodes that acts as the management and status node- See Also:
-
quotaZookeeper
the zookeeper quota node that acts as the quota management node for zookeeper- See Also:
-
limitNode
the limit node that has the limit of a subtree- See Also:
-
statNode
the stat node that monitors the limit of a subtree.- See Also:
-
-
Constructor Details
-
Quotas
public Quotas()
-
-
Method Details
-
quotaPath
return the quota path associated with this prefix- Parameters:
path
- the actual path in zookeeper.- Returns:
- the quota path
-
limitPath
return the limit quota path associated with this prefix- Parameters:
path
- the actual path in zookeeper.- Returns:
- the limit quota path
-
statPath
return the stat quota path associated with this prefix.- Parameters:
path
- the actual path in zookeeper- Returns:
- the stat quota path
-
trimQuotaPath
return the real path associated with this quotaPath.- Parameters:
quotaPath
- the quotaPath which's started with /zookeeper/quota- Returns:
- the real path associated with this quotaPath.
-