addFirstLoggingFilter
public void addFirstLoggingFilter()
add a logging filter at begining of the chain
addLastLoggingFilter
public void addLastLoggingFilter()
add a logging filter at end of the chain
close
public void close()
throws InterruptedException
close the session
getBothIdleTime
public long getBothIdleTime()
read and write IDLE time
- idle time in milli-seconds
getByteReadThroughtput
public float getByteReadThroughtput()
get the read bytes per second throughput
works only if a stat collector is inspecting this session,
getByteWrittenThroughtput
public float getByteWrittenThroughtput()
get the written bytes per second throughput
works only if a stat collector is inspecting this session,
- written bytes per seconds
getCreationTime
public Date getCreationTime()
when the session was created
- the date of session creation
getInstalledFilters
public String[] getInstalledFilters()
get the list of filters installed in the filter chain
getLastIoTime
public Date getLastIoTime()
last time the session processed an IO
getLastReadTime
public Date getLastReadTime()
last time the session processed an read
getLastWriteTime
public Date getLastWriteTime()
last time the session processed a write
getMessageReadThroughtput
public 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
- read messages per seconds
getMessageWrittenThroughtput
public 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
- written messages per seconds
getReadBytes
public long getReadBytes()
bytes read from the beginning
getReadIdleTime
public long getReadIdleTime()
read IDLE time
- read idle time in milli-seconds
getReadMessages
public long getReadMessages()
PDU decoded from the beginning. Only revelent if a ProtocolCodecFilter is installed.
getWriteIdleTime
public long getWriteIdleTime()
write IDLE time
- write idle time in milli-seconds
getWrittenBytes
public long getWrittenBytes()
bytes written from the beginning
getWrittenMessages
public long getWrittenMessages()
PDU encoded from the beginning. Only revelent if a ProtocolCodecFilter is installed.
- Number of written messages
isConnected
public boolean isConnected()
is the session is connected
removeFirstLoggingFilter
public void removeFirstLoggingFilter()
remove the logging filter at begining of the chain
removeLastLoggingFilter
public void removeLastLoggingFilter()
remove the logging filter at end of the chain