public class IoSessionManager extends java.lang.Object implements IoSessionManagerMBean
Constructor and Description |
---|
IoSessionManager(IoSession session)
create the session manager
|
Modifier and Type | Method and Description |
---|---|
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()
IoSessionManagerMBean
isConnected
in interface IoSessionManagerMBean
public long getReadBytes()
IoSessionManagerMBean
getReadBytes
in interface IoSessionManagerMBean
public long getWrittenBytes()
IoSessionManagerMBean
getWrittenBytes
in interface IoSessionManagerMBean
public long getReadMessages()
IoSessionManagerMBean
getReadMessages
in interface IoSessionManagerMBean
public long getWrittenMessages()
IoSessionManagerMBean
getWrittenMessages
in interface IoSessionManagerMBean
public void close() throws java.lang.InterruptedException
IoSessionManagerMBean
close
in interface IoSessionManagerMBean
java.lang.InterruptedException
public java.util.Date getCreationTime()
IoSessionManagerMBean
getCreationTime
in interface IoSessionManagerMBean
public java.util.Date getLastIoTime()
IoSessionManagerMBean
getLastIoTime
in interface IoSessionManagerMBean
public java.util.Date getLastReadTime()
IoSessionManagerMBean
getLastReadTime
in interface IoSessionManagerMBean
public java.util.Date getLastWriteTime()
IoSessionManagerMBean
getLastWriteTime
in interface IoSessionManagerMBean
public java.lang.String[] getInstalledFilters()
IoSessionManagerMBean
getInstalledFilters
in interface IoSessionManagerMBean
public void addLastLoggingFilter()
IoSessionManagerMBean
addLastLoggingFilter
in interface IoSessionManagerMBean
public void removeLastLoggingFilter()
IoSessionManagerMBean
removeLastLoggingFilter
in interface IoSessionManagerMBean
public void addFirstLoggingFilter()
IoSessionManagerMBean
addFirstLoggingFilter
in interface IoSessionManagerMBean
public void removeFirstLoggingFilter()
IoSessionManagerMBean
removeFirstLoggingFilter
in interface IoSessionManagerMBean
public long getReadIdleTime()
IoSessionManagerMBean
getReadIdleTime
in interface IoSessionManagerMBean
public long getWriteIdleTime()
IoSessionManagerMBean
getWriteIdleTime
in interface IoSessionManagerMBean
public long getBothIdleTime()
IoSessionManagerMBean
getBothIdleTime
in interface IoSessionManagerMBean
public float getByteReadThroughtput()
IoSessionManagerMBean
getByteReadThroughtput
in interface IoSessionManagerMBean
public float getByteWrittenThroughtput()
IoSessionManagerMBean
getByteWrittenThroughtput
in interface IoSessionManagerMBean
public float getMessageReadThroughtput()
IoSessionManagerMBean
getMessageReadThroughtput
in interface IoSessionManagerMBean
public float getMessageWrittenThroughtput()
IoSessionManagerMBean
getMessageWrittenThroughtput
in interface IoSessionManagerMBean
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.