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 TypeMethodDescriptionvoid
close all the managed sessionsfloat
average bytes read per seconds for all the managed sessionsfloat
average bytes written per seconds for all the managed sessionsfloat
average messages read per seconds for all the managed sessionsfloat
average messages written per seconds for all the managed sessionsint
amount of session currently managedfloat
bytes read per seconds sum of all the managed sessionsfloat
bytes written per seconds sum for all the managed sessionsfloat
messages read per seconds sum of all the managed sessionsfloat
messages written per seconds sum for all the managed sessionsvoid
startCollectingStats
(int millisecondsPolling) start collecting throughput statistics for all the managed sessionsvoid
stop collecting throughput statistics
-
Constructor Details
-
IoServiceManager
public IoServiceManager(org.apache.mina.common.IoService service)
-
-
Method Details
-
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
-