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()
Statistics
getErrors
in interface Statistics
public java.lang.Integer getReads()
Statistics
getReads
in interface Statistics
public java.lang.Integer getWrites()
Statistics
getWrites
in interface Statistics
public int getTimeouts()
Statistics
getTimeouts
in interface Statistics
public java.util.Map<java.lang.String,java.lang.Object> getExtraStatistics()
Statistics
getExtraStatistics
in interface Statistics
public void setExtra(java.lang.String key, java.lang.Object value)
public void error()
public void written()
public void read()
public void timeout()