public class IoServiceManager extends java.lang.Object implements IoServiceManagerMBean
Constructor and Description |
---|
IoServiceManager(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(IoService service)
public int getManagedSessionCount()
IoServiceManagerMBean
getManagedSessionCount
in interface IoServiceManagerMBean
public void startCollectingStats(int millisecondsPolling)
IoServiceManagerMBean
startCollectingStats
in interface IoServiceManagerMBean
millisecondsPolling
- polling time in milliseconds like 5000 for computing throughput every 5 secondspublic void stopCollectingStats()
IoServiceManagerMBean
stopCollectingStats
in interface IoServiceManagerMBean
public float getTotalByteReadThroughput()
IoServiceManagerMBean
getTotalByteReadThroughput
in interface IoServiceManagerMBean
public float getTotalByteWrittenThroughput()
IoServiceManagerMBean
getTotalByteWrittenThroughput
in interface IoServiceManagerMBean
public float getTotalMessageReadThroughput()
IoServiceManagerMBean
getTotalMessageReadThroughput
in interface IoServiceManagerMBean
public float getTotalMessageWrittenThroughput()
IoServiceManagerMBean
getTotalMessageWrittenThroughput
in interface IoServiceManagerMBean
public float getAverageByteReadThroughput()
IoServiceManagerMBean
getAverageByteReadThroughput
in interface IoServiceManagerMBean
public float getAverageByteWrittenThroughput()
IoServiceManagerMBean
getAverageByteWrittenThroughput
in interface IoServiceManagerMBean
public float getAverageMessageReadThroughput()
IoServiceManagerMBean
getAverageMessageReadThroughput
in interface IoServiceManagerMBean
public float getAverageMessageWrittenThroughput()
IoServiceManagerMBean
getAverageMessageWrittenThroughput
in interface IoServiceManagerMBean
public void closeAllSessions()
IoServiceManagerMBean
closeAllSessions
in interface IoServiceManagerMBean
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.