Package org.apache.mina.integration.jmx
Interface IoSessionManagerMBean
-
- All Known Implementing Classes:
IoSessionManager
public interface IoSessionManagerMBean
MBean interface for the session manager, it's used for instrumenting IoSession
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFirstLoggingFilter()
add a logging filter at begining of the chainvoid
addLastLoggingFilter()
add a logging filter at end of the chainvoid
close()
close the sessionlong
getBothIdleTime()
read and write IDLE timefloat
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 createdjava.lang.String[]
getInstalledFilters()
get the list of filters installed in the filter chainjava.util.Date
getLastIoTime()
last time the session processed an IOjava.util.Date
getLastReadTime()
last time the session processed an readjava.util.Date
getLastWriteTime()
last time the session processed a writefloat
getMessageReadThroughtput()
get the read messages per second throughput works only if a stat collector is inspecting this session, and only if a ProtocolDecoderFilter is usedfloat
getMessageWrittenThroughtput()
get the written messages per second throughput works only if a stat collector is inspecting this session, and only if a ProtocolDecoderFilter is usedlong
getReadBytes()
bytes read from the beginninglong
getReadIdleTime()
read IDLE timelong
getReadMessages()
PDU decoded from the beginning.long
getWriteIdleTime()
write IDLE timelong
getWrittenBytes()
bytes written from the beginninglong
getWrittenMessages()
PDU encoded from the beginning.boolean
isConnected()
is the session is connectedvoid
removeFirstLoggingFilter()
remove the logging filter at begining of the chainvoid
removeLastLoggingFilter()
remove the logging filter at end of the chain
-
-
-
Method Detail
-
isConnected
boolean isConnected()
is the session is connected- Returns:
- connection status
-
getReadBytes
long getReadBytes()
bytes read from the beginning- Returns:
- total of bytes read
-
getWrittenBytes
long getWrittenBytes()
bytes written from the beginning- Returns:
- total of bytes written
-
getReadMessages
long getReadMessages()
PDU decoded from the beginning. Only revelent if a ProtocolCodecFilter is installed.- Returns:
- Number of read messages
-
getWrittenMessages
long getWrittenMessages()
PDU encoded from the beginning. Only revelent if a ProtocolCodecFilter is installed.- Returns:
- Number of written messages
-
close
void close() throws java.lang.InterruptedException
close the session- Throws:
java.lang.InterruptedException
-
getCreationTime
java.util.Date getCreationTime()
when the session was created- Returns:
- the date of session creation
-
getLastIoTime
java.util.Date getLastIoTime()
last time the session processed an IO- Returns:
- date of last IO
-
getLastWriteTime
java.util.Date getLastWriteTime()
last time the session processed a write- Returns:
- date of last write
-
getLastReadTime
java.util.Date getLastReadTime()
last time the session processed an read- Returns:
- date of last read
-
getInstalledFilters
java.lang.String[] getInstalledFilters()
get the list of filters installed in the filter chain- Returns:
- array of filter names
-
addLastLoggingFilter
void addLastLoggingFilter()
add a logging filter at end of the chain
-
removeLastLoggingFilter
void removeLastLoggingFilter()
remove the logging filter at end of the chain
-
addFirstLoggingFilter
void addFirstLoggingFilter()
add a logging filter at begining of the chain
-
removeFirstLoggingFilter
void removeFirstLoggingFilter()
remove the logging filter at begining of the chain
-
getBothIdleTime
long getBothIdleTime()
read and write IDLE time- Returns:
- idle time in milli-seconds
-
getReadIdleTime
long getReadIdleTime()
read IDLE time- Returns:
- read idle time in milli-seconds
-
getWriteIdleTime
long getWriteIdleTime()
write IDLE time- Returns:
- write idle time in milli-seconds
-
getByteReadThroughtput
float getByteReadThroughtput()
get the read bytes per second throughput works only if a stat collector is inspecting this session,- Returns:
- read bytes per seconds
-
getByteWrittenThroughtput
float getByteWrittenThroughtput()
get the written bytes per second throughput works only if a stat collector is inspecting this session,- Returns:
- written bytes per seconds
-
getMessageReadThroughtput
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- Returns:
- read messages per seconds
-
getMessageWrittenThroughtput
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- Returns:
- written messages per seconds
-
-