|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.zookeeper.StatsTrack
public class StatsTrack
a class that represents the stats associated with quotas
| Constructor Summary | |
|---|---|
StatsTrack()
a default constructor for stats |
|
StatsTrack(String stats)
the stat string should be of the form count=int,bytes=long if stats is called with null the count and bytes are initialized to -1. |
|
| Method Summary | |
|---|---|
long |
getBytes()
get the count of bytes allowed as part of quota |
int |
getCount()
get the count of nodes allowed as part of quota |
void |
setBytes(long bytes)
set teh bytes for this stat tracker. |
void |
setCount(int count)
set the count for this stat tracker. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatsTrack()
public StatsTrack(String stats)
stats - the stat string to be intialized with| Method Detail |
|---|
public int getCount()
public void setCount(int count)
count - the count to set withpublic long getBytes()
public void setBytes(long bytes)
bytes - the bytes to set withpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||