Package org.apache.mina.integration.jmx
Class IoServiceManager
- java.lang.Object
-
- org.apache.mina.integration.jmx.IoServiceManager
-
- All Implemented Interfaces:
IoServiceManagerMBean
public class IoServiceManager extends java.lang.Object implements IoServiceManagerMBean
-
-
Constructor Summary
Constructors Constructor Description IoServiceManager(org.apache.mina.common.IoService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeAllSessions()
close all the managed sessionsfloat
getAverageByteReadThroughput()
average bytes read per seconds for all the managed sessionsfloat
getAverageByteWrittenThroughput()
average bytes written per seconds for all the managed sessionsfloat
getAverageMessageReadThroughput()
average messages read per seconds for all the managed sessionsfloat
getAverageMessageWrittenThroughput()
average messages written per seconds for all the managed sessionsint
getManagedSessionCount()
amount of session currently managedfloat
getTotalByteReadThroughput()
bytes read per seconds sum of all the managed sessionsfloat
getTotalByteWrittenThroughput()
bytes written per seconds sum for all the managed sessionsfloat
getTotalMessageReadThroughput()
messages read per seconds sum of all the managed sessionsfloat
getTotalMessageWrittenThroughput()
messages written per seconds sum for all the managed sessionsvoid
startCollectingStats(int millisecondsPolling)
start collecting throughput statistics for all the managed sessionsvoid
stopCollectingStats()
stop collecting throughput statistics
-
-
-
Method Detail
-
getManagedSessionCount
public int getManagedSessionCount()
Description copied from interface:IoServiceManagerMBean
amount of session currently managed- Specified by:
getManagedSessionCount
in interfaceIoServiceManagerMBean
- Returns:
- session count
-
startCollectingStats
public void startCollectingStats(int millisecondsPolling)
Description copied from interface:IoServiceManagerMBean
start collecting throughput statistics for all the managed sessions- Specified by:
startCollectingStats
in interfaceIoServiceManagerMBean
- Parameters:
millisecondsPolling
- polling time in milliseconds like 5000 for computing throughput every 5 seconds
-
stopCollectingStats
public void stopCollectingStats()
Description copied from interface:IoServiceManagerMBean
stop collecting throughput statistics- Specified by:
stopCollectingStats
in interfaceIoServiceManagerMBean
-
getTotalByteReadThroughput
public float getTotalByteReadThroughput()
Description copied from interface:IoServiceManagerMBean
bytes read per seconds sum of all the managed sessions- Specified by:
getTotalByteReadThroughput
in interfaceIoServiceManagerMBean
- Returns:
- bytes per seconds
-
getTotalByteWrittenThroughput
public float getTotalByteWrittenThroughput()
Description copied from interface:IoServiceManagerMBean
bytes written per seconds sum for all the managed sessions- Specified by:
getTotalByteWrittenThroughput
in interfaceIoServiceManagerMBean
- Returns:
- bytes per seconds
-
getTotalMessageReadThroughput
public float getTotalMessageReadThroughput()
Description copied from interface:IoServiceManagerMBean
messages read per seconds sum of all the managed sessions- Specified by:
getTotalMessageReadThroughput
in interfaceIoServiceManagerMBean
- Returns:
- messages per seconds
-
getTotalMessageWrittenThroughput
public float getTotalMessageWrittenThroughput()
Description copied from interface:IoServiceManagerMBean
messages written per seconds sum for all the managed sessions- Specified by:
getTotalMessageWrittenThroughput
in interfaceIoServiceManagerMBean
- Returns:
- messages per seconds
-
getAverageByteReadThroughput
public float getAverageByteReadThroughput()
Description copied from interface:IoServiceManagerMBean
average bytes read per seconds for all the managed sessions- Specified by:
getAverageByteReadThroughput
in interfaceIoServiceManagerMBean
- Returns:
- bytes per seconds
-
getAverageByteWrittenThroughput
public float getAverageByteWrittenThroughput()
Description copied from interface:IoServiceManagerMBean
average bytes written per seconds for all the managed sessions- Specified by:
getAverageByteWrittenThroughput
in interfaceIoServiceManagerMBean
- Returns:
- bytes per seconds
-
getAverageMessageReadThroughput
public float getAverageMessageReadThroughput()
Description copied from interface:IoServiceManagerMBean
average messages read per seconds for all the managed sessions- Specified by:
getAverageMessageReadThroughput
in interfaceIoServiceManagerMBean
- Returns:
- messages per seconds
-
getAverageMessageWrittenThroughput
public float getAverageMessageWrittenThroughput()
Description copied from interface:IoServiceManagerMBean
average messages written per seconds for all the managed sessions- Specified by:
getAverageMessageWrittenThroughput
in interfaceIoServiceManagerMBean
- Returns:
- messages per seconds
-
closeAllSessions
public void closeAllSessions()
Description copied from interface:IoServiceManagerMBean
close all the managed sessions- Specified by:
closeAllSessions
in interfaceIoServiceManagerMBean
-
-