public class StatsTrack
extends java.lang.Object
| Constructor and Description |
|---|
StatsTrack()
a default constructor for
stats
|
StatsTrack(java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
toString() |
public StatsTrack()
public StatsTrack(java.lang.String stats)
stats - the stat string to be intialized withpublic 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 java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016 The Apache Software Foundation