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 Stringthe limit node that has the limit of a subtreestatic final Stringthe zookeeper nodes that acts as the management and status nodestatic final Stringthe zookeeper quota node that acts as the quota management node for zookeeperstatic final Stringthe stat node that monitors the limit of a subtree. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringreturn the limit quota path associated with this prefixstatic Stringreturn the quota path associated with this prefixstatic Stringreturn the stat quota path associated with this prefix.static StringtrimQuotaPath(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.
-