org.apache.mina.integration.jmx

Interface IoServiceManagerMBean

Known Implementing Classes:
IoServiceManager

public interface IoServiceManagerMBean

Method Summary

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

Method Details

closeAllSessions

public void closeAllSessions()
close all the managed sessions

getAverageByteReadThroughput

public float getAverageByteReadThroughput()
average bytes read per seconds for all the managed sessions
Returns:
bytes per seconds

getAverageByteWrittenThroughput

public float getAverageByteWrittenThroughput()
average bytes written per seconds for all the managed sessions
Returns:
bytes per seconds

getAverageMessageReadThroughput

public float getAverageMessageReadThroughput()
average messages read per seconds for all the managed sessions
Returns:
messages per seconds

getAverageMessageWrittenThroughput

public float getAverageMessageWrittenThroughput()
average messages written per seconds for all the managed sessions
Returns:
messages per seconds

getManagedSessionCount

public int getManagedSessionCount()
amount of session currently managed
Returns:
session count

getTotalByteReadThroughput

public float getTotalByteReadThroughput()
bytes read per seconds sum of all the managed sessions
Returns:
bytes per seconds

getTotalByteWrittenThroughput

public float getTotalByteWrittenThroughput()
bytes written per seconds sum for all the managed sessions
Returns:
bytes per seconds

getTotalMessageReadThroughput

public float getTotalMessageReadThroughput()
messages read per seconds sum of all the managed sessions
Returns:
messages per seconds

getTotalMessageWrittenThroughput

public float getTotalMessageWrittenThroughput()
messages written per seconds sum for all the managed sessions
Returns:
messages per seconds

startCollectingStats

public void startCollectingStats(int millisecondsPolling)
start collecting throughput statistics for all the managed sessions
Parameters:
millisecondsPolling - polling time in milliseconds like 5000 for computing throughput every 5 seconds

stopCollectingStats

public void stopCollectingStats()
stop collecting throughput statistics