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 voidcloseAllSessions()close all the managed sessionsfloatgetAverageByteReadThroughput()average bytes read per seconds for all the managed sessionsfloatgetAverageByteWrittenThroughput()average bytes written per seconds for all the managed sessionsfloatgetAverageMessageReadThroughput()average messages read per seconds for all the managed sessionsfloatgetAverageMessageWrittenThroughput()average messages written per seconds for all the managed sessionsintgetManagedSessionCount()amount of session currently managedfloatgetTotalByteReadThroughput()bytes read per seconds sum of all the managed sessionsfloatgetTotalByteWrittenThroughput()bytes written per seconds sum for all the managed sessionsfloatgetTotalMessageReadThroughput()messages read per seconds sum of all the managed sessionsfloatgetTotalMessageWrittenThroughput()messages written per seconds sum for all the managed sessionsvoidstartCollectingStats(int millisecondsPolling)start collecting throughput statistics for all the managed sessionsvoidstopCollectingStats()stop collecting throughput statistics
-
-
-
Method Detail
-
getManagedSessionCount
public int getManagedSessionCount()
Description copied from interface:IoServiceManagerMBeanamount of session currently managed- Specified by:
getManagedSessionCountin interfaceIoServiceManagerMBean- Returns:
- session count
-
startCollectingStats
public void startCollectingStats(int millisecondsPolling)
Description copied from interface:IoServiceManagerMBeanstart collecting throughput statistics for all the managed sessions- Specified by:
startCollectingStatsin interfaceIoServiceManagerMBean- Parameters:
millisecondsPolling- polling time in milliseconds like 5000 for computing throughput every 5 seconds
-
stopCollectingStats
public void stopCollectingStats()
Description copied from interface:IoServiceManagerMBeanstop collecting throughput statistics- Specified by:
stopCollectingStatsin interfaceIoServiceManagerMBean
-
getTotalByteReadThroughput
public float getTotalByteReadThroughput()
Description copied from interface:IoServiceManagerMBeanbytes read per seconds sum of all the managed sessions- Specified by:
getTotalByteReadThroughputin interfaceIoServiceManagerMBean- Returns:
- bytes per seconds
-
getTotalByteWrittenThroughput
public float getTotalByteWrittenThroughput()
Description copied from interface:IoServiceManagerMBeanbytes written per seconds sum for all the managed sessions- Specified by:
getTotalByteWrittenThroughputin interfaceIoServiceManagerMBean- Returns:
- bytes per seconds
-
getTotalMessageReadThroughput
public float getTotalMessageReadThroughput()
Description copied from interface:IoServiceManagerMBeanmessages read per seconds sum of all the managed sessions- Specified by:
getTotalMessageReadThroughputin interfaceIoServiceManagerMBean- Returns:
- messages per seconds
-
getTotalMessageWrittenThroughput
public float getTotalMessageWrittenThroughput()
Description copied from interface:IoServiceManagerMBeanmessages written per seconds sum for all the managed sessions- Specified by:
getTotalMessageWrittenThroughputin interfaceIoServiceManagerMBean- Returns:
- messages per seconds
-
getAverageByteReadThroughput
public float getAverageByteReadThroughput()
Description copied from interface:IoServiceManagerMBeanaverage bytes read per seconds for all the managed sessions- Specified by:
getAverageByteReadThroughputin interfaceIoServiceManagerMBean- Returns:
- bytes per seconds
-
getAverageByteWrittenThroughput
public float getAverageByteWrittenThroughput()
Description copied from interface:IoServiceManagerMBeanaverage bytes written per seconds for all the managed sessions- Specified by:
getAverageByteWrittenThroughputin interfaceIoServiceManagerMBean- Returns:
- bytes per seconds
-
getAverageMessageReadThroughput
public float getAverageMessageReadThroughput()
Description copied from interface:IoServiceManagerMBeanaverage messages read per seconds for all the managed sessions- Specified by:
getAverageMessageReadThroughputin interfaceIoServiceManagerMBean- Returns:
- messages per seconds
-
getAverageMessageWrittenThroughput
public float getAverageMessageWrittenThroughput()
Description copied from interface:IoServiceManagerMBeanaverage messages written per seconds for all the managed sessions- Specified by:
getAverageMessageWrittenThroughputin interfaceIoServiceManagerMBean- Returns:
- messages per seconds
-
closeAllSessions
public void closeAllSessions()
Description copied from interface:IoServiceManagerMBeanclose all the managed sessions- Specified by:
closeAllSessionsin interfaceIoServiceManagerMBean
-
-