public class BaseGlobalStats extends Object
Constructor and Description |
---|
BaseGlobalStats(String groupKey) |
Modifier and Type | Method and Description |
---|---|
void |
addBytes(long bytes) |
void |
addElapsedTime(long milliseconds) |
void |
addIOTime(long milliseconds) |
protected void |
finalize() |
static Set<String> |
getCategories()
Returns the set of categories defined for this stream (defined with the
parameter groupCategory in the constructor.
|
double |
getTotalDataRead(ByteUnit byteUnit) |
long |
getTotalElapsedTime(TimeUnit tu) |
long |
getTotalIOTime(TimeUnit tu) |
long |
getTotalNumberRead()
Total count of calls to
int read() ,
int read(byte[]) and int read(byte[],int,int)
methods, made by this instance over the subsequent calls. |
void |
incrementReadCount() |
static void |
resetStatistics() |
public BaseGlobalStats(String groupKey)
public static Set<String> getCategories()
public static void resetStatistics()
public void addBytes(long bytes)
public void addElapsedTime(long milliseconds)
public void addIOTime(long milliseconds)
public long getTotalElapsedTime(TimeUnit tu)
public long getTotalIOTime(TimeUnit tu)
public long getTotalNumberRead()
int read()
,
int read(byte[])
and int read(byte[],int,int)
methods, made by this instance over the subsequent calls.public double getTotalDataRead(ByteUnit byteUnit)
public void incrementReadCount()
Copyright © 2008–2016. All rights reserved.