org.avineas.io.stat
public class SimpleStatistics extends java.lang.Object implements Statistics
| Constructor and Description |
|---|
SimpleStatistics(java.lang.Integer reads,
java.lang.Integer writes) |
| Modifier and Type | Method and Description |
|---|---|
void |
error() |
int |
getErrors()
Get the number of errors that occurred to this channel.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraStatistics()
Get extra attributes provided by the statistics.
|
java.lang.Integer |
getReads()
Get the number of reads performed by this channel.
|
int |
getTimeouts()
Get the number of time-outs somewhere during read or write.
|
java.lang.Integer |
getWrites()
Get the number of writes performed by this channel.
|
void |
read() |
void |
reset() |
void |
setExtra(java.lang.String key,
java.lang.Object value) |
void |
timeout() |
void |
written() |
public SimpleStatistics(java.lang.Integer reads,
java.lang.Integer writes)
public void reset()
public int getErrors()
StatisticsgetErrors in interface Statisticspublic java.lang.Integer getReads()
StatisticsgetReads in interface Statisticspublic java.lang.Integer getWrites()
StatisticsgetWrites in interface Statisticspublic int getTimeouts()
StatisticsgetTimeouts in interface Statisticspublic java.util.Map<java.lang.String,java.lang.Object> getExtraStatistics()
StatisticsgetExtraStatistics in interface Statisticspublic void setExtra(java.lang.String key,
java.lang.Object value)
public void error()
public void written()
public void read()
public void timeout()