public class IoServiceStatistics
extends java.lang.Object
AbstractIoService
instance.Constructor and Description |
---|
IoServiceStatistics(AbstractIoService service) |
Modifier and Type | Method and Description |
---|---|
void |
decreaseScheduledWriteMessages()
TODO add documentation
|
long |
getCumulativeManagedSessionCount()
Returns the cumulative number of sessions which were managed (or are
being managed) by this service, which means 'currently managed session
count + closed session count'.
|
int |
getLargestManagedSessionCount()
Returns the maximum number of sessions which were being managed at the
same time.
|
double |
getLargestReadBytesThroughput()
Returns the maximum of the
readBytesThroughput . |
double |
getLargestReadMessagesThroughput()
Returns the maximum of the
readMessagesThroughput . |
double |
getLargestWrittenBytesThroughput()
Returns the maximum of the
writtenBytesThroughput . |
double |
getLargestWrittenMessagesThroughput()
Returns the maximum of the
writtenMessagesThroughput . |
long |
getLastIoTime()
Returns the time in millis when I/O occurred lastly.
|
long |
getLastReadTime()
Returns the time in millis when read operation occurred lastly.
|
long |
getLastWriteTime()
Returns the time in millis when write operation occurred lastly.
|
long |
getReadBytes()
Returns the number of bytes read by this service
|
double |
getReadBytesThroughput()
Returns the number of read bytes per second.
|
long |
getReadMessages()
Returns the number of messages this services has read
|
double |
getReadMessagesThroughput()
Returns the number of read messages per second.
|
int |
getScheduledWriteBytes()
TODO add documentation
|
int |
getScheduledWriteMessages()
TODO add documentation
|
int |
getThroughputCalculationInterval()
Returns the interval (seconds) between each throughput calculation.
|
long |
getThroughputCalculationIntervalInMillis()
Returns the interval (milliseconds) between each throughput calculation.
|
long |
getWrittenBytes()
Returns the number of bytes written out by this service
|
double |
getWrittenBytesThroughput()
Returns the number of written bytes per second.
|
long |
getWrittenMessages()
Returns the number of messages this service has written
|
double |
getWrittenMessagesThroughput()
Returns the number of written messages per second.
|
void |
increaseReadBytes(long increment,
long currentTime)
TODO add documentation
|
void |
increaseReadMessages(long currentTime)
TODO add documentation
|
void |
increaseScheduledWriteBytes(int increment)
TODO add documentation
|
void |
increaseScheduledWriteMessages()
TODO add documentation
|
void |
increaseWrittenBytes(int increment,
long currentTime)
TODO add documentation
|
void |
increaseWrittenMessages(long currentTime)
TODO add documentation
|
protected void |
setLastReadTime(long lastReadTime)
TODO add documentation
|
protected void |
setLastThroughputCalculationTime(long lastThroughputCalculationTime)
TODO add documentation
|
protected void |
setLastWriteTime(long lastWriteTime)
TODO add documentation
|
void |
setThroughputCalculationInterval(int throughputCalculationInterval)
Sets the interval (seconds) between each throughput calculation.
|
void |
updateThroughput(long currentTime)
TODO add documentation
|
public IoServiceStatistics(AbstractIoService service)
public final int getLargestManagedSessionCount()
public final long getCumulativeManagedSessionCount()
public final long getLastIoTime()
public final long getLastReadTime()
public final long getLastWriteTime()
public final long getReadBytes()
public final long getWrittenBytes()
public final long getReadMessages()
public final long getWrittenMessages()
public final double getReadBytesThroughput()
public final double getWrittenBytesThroughput()
public final double getReadMessagesThroughput()
public final double getWrittenMessagesThroughput()
public final double getLargestReadBytesThroughput()
readBytesThroughput
.public final double getLargestWrittenBytesThroughput()
writtenBytesThroughput
.public final double getLargestReadMessagesThroughput()
readMessagesThroughput
.public final double getLargestWrittenMessagesThroughput()
writtenMessagesThroughput
.public final int getThroughputCalculationInterval()
public final long getThroughputCalculationIntervalInMillis()
public final void setThroughputCalculationInterval(int throughputCalculationInterval)
protected final void setLastReadTime(long lastReadTime)
protected final void setLastWriteTime(long lastWriteTime)
public void updateThroughput(long currentTime)
public final void increaseReadBytes(long increment, long currentTime)
public final void increaseReadMessages(long currentTime)
public final void increaseWrittenBytes(int increment, long currentTime)
public final void increaseWrittenMessages(long currentTime)
public final int getScheduledWriteBytes()
public final void increaseScheduledWriteBytes(int increment)
public final int getScheduledWriteMessages()
public final void increaseScheduledWriteMessages()
public final void decreaseScheduledWriteMessages()
protected void setLastThroughputCalculationTime(long lastThroughputCalculationTime)
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.