Package org.apache.mina.management
Class IoSessionStat
java.lang.Object
org.apache.mina.management.IoSessionStat
The collected stats for a session. It's used by
StatCollector
to attach
throughput stats to an IoSession
. You can accces a session stat using
IoSession
getAttribute method :
IoSession session = ... IoSessionStat stat = session.getAttribute( StatCollector.KEY );
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Bytes read per secondfloat
Bytes written per secondfloat
Messages read per secondfloat
Messages written per second
-
Constructor Details
-
IoSessionStat
public IoSessionStat()
-
-
Method Details
-
getByteReadThroughput
public float getByteReadThroughput()Bytes read per second- Returns:
- bytes per second
-
getByteWrittenThroughput
public float getByteWrittenThroughput()Bytes written per second- Returns:
- bytes per second
-
getMessageReadThroughput
public float getMessageReadThroughput()Messages read per second- Returns:
- messages per second
-
getMessageWrittenThroughput
public float getMessageWrittenThroughput()Messages written per second- Returns:
- messages per second
-