public class StatsTrack extends Object
Constructor and Description |
---|
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.
|
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.
|
String |
toString() |
public StatsTrack()
public StatsTrack(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 withCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.