Package org.apache.mina.integration.jmx
Class IoServiceManager
java.lang.Object
org.apache.mina.integration.jmx.IoServiceManager
- All Implemented Interfaces:
IoServiceManagerMBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose all the managed sessionsfloataverage bytes read per seconds for all the managed sessionsfloataverage bytes written per seconds for all the managed sessionsfloataverage messages read per seconds for all the managed sessionsfloataverage messages written per seconds for all the managed sessionsintamount of session currently managedfloatbytes read per seconds sum of all the managed sessionsfloatbytes written per seconds sum for all the managed sessionsfloatmessages read per seconds sum of all the managed sessionsfloatmessages written per seconds sum for all the managed sessionsvoidstartCollectingStats(int millisecondsPolling) start collecting throughput statistics for all the managed sessionsvoidstop collecting throughput statistics
-
Constructor Details
-
IoServiceManager
public IoServiceManager(org.apache.mina.common.IoService service)
-
-
Method Details
-
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
-