public class IoServiceManager extends java.lang.Object implements IoServiceManagerMBean
| Constructor and Description |
|---|
IoServiceManager(org.apache.mina.common.IoService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeAllSessions()
close all the managed sessions
|
float |
getAverageByteReadThroughput()
average bytes read per seconds for all the managed sessions
|
float |
getAverageByteWrittenThroughput()
average bytes written per seconds for all the managed sessions
|
float |
getAverageMessageReadThroughput()
average messages read per seconds for all the managed sessions
|
float |
getAverageMessageWrittenThroughput()
average messages written per seconds for all the managed sessions
|
int |
getManagedSessionCount()
amount of session currently managed
|
float |
getTotalByteReadThroughput()
bytes read per seconds sum of all the managed sessions
|
float |
getTotalByteWrittenThroughput()
bytes written per seconds sum for all the managed sessions
|
float |
getTotalMessageReadThroughput()
messages read per seconds sum of all the managed sessions
|
float |
getTotalMessageWrittenThroughput()
messages written per seconds sum for all the managed sessions
|
void |
startCollectingStats(int millisecondsPolling)
start collecting throughput statistics for all the managed sessions
|
void |
stopCollectingStats()
stop collecting throughput statistics
|
public IoServiceManager(org.apache.mina.common.IoService service)
public int getManagedSessionCount()
IoServiceManagerMBeangetManagedSessionCount in interface IoServiceManagerMBeanpublic void startCollectingStats(int millisecondsPolling)
IoServiceManagerMBeanstartCollectingStats in interface IoServiceManagerMBeanmillisecondsPolling - polling time in milliseconds like 5000 for computing throughput every 5 secondspublic void stopCollectingStats()
IoServiceManagerMBeanstopCollectingStats in interface IoServiceManagerMBeanpublic float getTotalByteReadThroughput()
IoServiceManagerMBeangetTotalByteReadThroughput in interface IoServiceManagerMBeanpublic float getTotalByteWrittenThroughput()
IoServiceManagerMBeangetTotalByteWrittenThroughput in interface IoServiceManagerMBeanpublic float getTotalMessageReadThroughput()
IoServiceManagerMBeangetTotalMessageReadThroughput in interface IoServiceManagerMBeanpublic float getTotalMessageWrittenThroughput()
IoServiceManagerMBeangetTotalMessageWrittenThroughput in interface IoServiceManagerMBeanpublic float getAverageByteReadThroughput()
IoServiceManagerMBeangetAverageByteReadThroughput in interface IoServiceManagerMBeanpublic float getAverageByteWrittenThroughput()
IoServiceManagerMBeangetAverageByteWrittenThroughput in interface IoServiceManagerMBeanpublic float getAverageMessageReadThroughput()
IoServiceManagerMBeangetAverageMessageReadThroughput in interface IoServiceManagerMBeanpublic float getAverageMessageWrittenThroughput()
IoServiceManagerMBeangetAverageMessageWrittenThroughput in interface IoServiceManagerMBeanpublic void closeAllSessions()
IoServiceManagerMBeancloseAllSessions in interface IoServiceManagerMBean