Package org.apache.mina.management
Class IoSessionStat
- java.lang.Object
-
- org.apache.mina.management.IoSessionStat
-
public class IoSessionStat extends java.lang.ObjectThe collected stats for a session. It's used byStatCollectorto attach throughput stats to anIoSession. You can accces a session stat usingIoSessiongetAttribute method :IoSession session = ... IoSessionStat stat = session.getAttribute( StatCollector.KEY );
-
-
Constructor Summary
Constructors Constructor Description IoSessionStat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetByteReadThroughput()Bytes read per secondfloatgetByteWrittenThroughput()Bytes written per secondfloatgetMessageReadThroughput()Messages read per secondfloatgetMessageWrittenThroughput()Messages written per second
-
-
-
Method Detail
-
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
-
-