public class StatsTrack extends Object
Constructor and Description |
---|
StatsTrack()
a default constructor for
stats
|
StatsTrack(byte[] stat) |
StatsTrack(String stat)
the stat string should be of the form key1str=long,key2str=long,..
|
Modifier and Type | Method and Description |
---|---|
long |
getByteHardLimit()
get the count of bytes allowed as part of quota (hard limit)
|
long |
getBytes()
get the count of bytes allowed as part of quota
|
long |
getCount()
get the count of nodes allowed as part of quota
|
long |
getCountHardLimit()
get the count of nodes allowed as part of quota (hard limit)
|
byte[] |
getStatsBytes() |
void |
setByteHardLimit(long bytes)
set the byte hard limit
|
void |
setBytes(long bytes)
set the bytes for this stat tracker.
|
void |
setCount(long count)
set the count for this stat tracker.
|
void |
setCountHardLimit(long count)
set the count hard limit
|
String |
toString() |
public StatsTrack()
public StatsTrack(byte[] stat)
stat
- the byte[] stat to be initialized withpublic StatsTrack(String stat)
stat
- the stat string to be initialized withpublic long getCount()
public void setCount(long count)
count
- the count to set withpublic long getCountHardLimit()
public void setCountHardLimit(long count)
count
- the count limit to setpublic long getBytes()
public void setBytes(long bytes)
bytes
- the bytes to set withpublic long getByteHardLimit()
public void setByteHardLimit(long bytes)
bytes
- the byte limit to setpublic byte[] getStatsBytes()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.