public class IoSessionManager extends java.lang.Object implements IoSessionManagerMBean
| 构造器和说明 |
|---|
IoSessionManager(IoSession session)
create the session manager
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFirstLoggingFilter()
add a logging filter at begining of the chain
|
void |
addLastLoggingFilter()
add a logging filter at end of the chain
|
void |
close()
close the session
|
long |
getBothIdleTime()
read and write IDLE time
|
float |
getByteReadThroughtput()
get the read bytes per second throughput
works only if a stat collector is inspecting this session,
|
float |
getByteWrittenThroughtput()
get the written bytes per second throughput
works only if a stat collector is inspecting this session,
|
java.util.Date |
getCreationTime()
when the session was created
|
java.lang.String[] |
getInstalledFilters()
get the list of filters installed in the filter chain
|
java.util.Date |
getLastIoTime()
last time the session processed an IO
|
java.util.Date |
getLastReadTime()
last time the session processed an read
|
java.util.Date |
getLastWriteTime()
last time the session processed a write
|
float |
getMessageReadThroughtput()
get the read messages per second throughput
works only if a stat collector is inspecting this session, and only if a ProtocolDecoderFilter is used
|
float |
getMessageWrittenThroughtput()
get the written messages per second throughput
works only if a stat collector is inspecting this session, and only if a ProtocolDecoderFilter is used
|
long |
getReadBytes()
bytes read from the beginning
|
long |
getReadIdleTime()
read IDLE time
|
long |
getReadMessages()
PDU decoded from the beginning.
|
long |
getWriteIdleTime()
write IDLE time
|
long |
getWrittenBytes()
bytes written from the beginning
|
long |
getWrittenMessages()
PDU encoded from the beginning.
|
boolean |
isConnected()
is the session is connected
|
void |
removeFirstLoggingFilter()
remove the logging filter at begining of the chain
|
void |
removeLastLoggingFilter()
remove the logging filter at end of the chain
|
public IoSessionManager(IoSession session)
session - the MINA's session to managepublic boolean isConnected()
IoSessionManagerMBeanisConnected 在接口中 IoSessionManagerMBeanpublic long getReadBytes()
IoSessionManagerMBeangetReadBytes 在接口中 IoSessionManagerMBeanpublic long getWrittenBytes()
IoSessionManagerMBeangetWrittenBytes 在接口中 IoSessionManagerMBeanpublic long getReadMessages()
IoSessionManagerMBeangetReadMessages 在接口中 IoSessionManagerMBeanpublic long getWrittenMessages()
IoSessionManagerMBeangetWrittenMessages 在接口中 IoSessionManagerMBeanpublic void close()
throws java.lang.InterruptedException
IoSessionManagerMBeanclose 在接口中 IoSessionManagerMBeanjava.lang.InterruptedExceptionpublic java.util.Date getCreationTime()
IoSessionManagerMBeangetCreationTime 在接口中 IoSessionManagerMBeanpublic java.util.Date getLastIoTime()
IoSessionManagerMBeangetLastIoTime 在接口中 IoSessionManagerMBeanpublic java.util.Date getLastReadTime()
IoSessionManagerMBeangetLastReadTime 在接口中 IoSessionManagerMBeanpublic java.util.Date getLastWriteTime()
IoSessionManagerMBeangetLastWriteTime 在接口中 IoSessionManagerMBeanpublic java.lang.String[] getInstalledFilters()
IoSessionManagerMBeangetInstalledFilters 在接口中 IoSessionManagerMBeanpublic void addLastLoggingFilter()
IoSessionManagerMBeanaddLastLoggingFilter 在接口中 IoSessionManagerMBeanpublic void removeLastLoggingFilter()
IoSessionManagerMBeanremoveLastLoggingFilter 在接口中 IoSessionManagerMBeanpublic void addFirstLoggingFilter()
IoSessionManagerMBeanaddFirstLoggingFilter 在接口中 IoSessionManagerMBeanpublic void removeFirstLoggingFilter()
IoSessionManagerMBeanpublic long getReadIdleTime()
IoSessionManagerMBeangetReadIdleTime 在接口中 IoSessionManagerMBeanpublic long getWriteIdleTime()
IoSessionManagerMBeangetWriteIdleTime 在接口中 IoSessionManagerMBeanpublic long getBothIdleTime()
IoSessionManagerMBeangetBothIdleTime 在接口中 IoSessionManagerMBeanpublic float getByteReadThroughtput()
IoSessionManagerMBeangetByteReadThroughtput 在接口中 IoSessionManagerMBeanpublic float getByteWrittenThroughtput()
IoSessionManagerMBeangetByteWrittenThroughtput 在接口中 IoSessionManagerMBeanpublic float getMessageReadThroughtput()
IoSessionManagerMBeangetMessageReadThroughtput 在接口中 IoSessionManagerMBeanpublic float getMessageWrittenThroughtput()
IoSessionManagerMBeangetMessageWrittenThroughtput 在接口中 IoSessionManagerMBean