|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.integration.jmx.IoSessionManager
public class IoSessionManager
| Constructor Summary | |
|---|---|
IoSessionManager(IoSession session)
create the session manager |
|
| Method Summary | |
|---|---|
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, |
Date |
getCreationTime()
when the session was created |
String[] |
getInstalledFilters()
get the list of filters installed in the filter chain |
Date |
getLastIoTime()
last time the session processed an IO |
Date |
getLastReadTime()
last time the session processed an read |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IoSessionManager(IoSession session)
session - the MINA's session to manage| Method Detail |
|---|
public boolean isConnected()
IoSessionManagerMBean
isConnected in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#isConnected()public long getReadBytes()
IoSessionManagerMBean
getReadBytes in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getReadBytes()public long getWrittenBytes()
IoSessionManagerMBean
getWrittenBytes in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getWrittenBytes()public long getReadMessages()
IoSessionManagerMBean
getReadMessages in interface IoSessionManagerMBeanpublic long getWrittenMessages()
IoSessionManagerMBean
getWrittenMessages in interface IoSessionManagerMBeanpublic void close()
IoSessionManagerMBean
close in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#close()public Date getCreationTime()
IoSessionManagerMBean
getCreationTime in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getCreationTime()public Date getLastIoTime()
IoSessionManagerMBean
getLastIoTime in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getLastIoTime()public Date getLastReadTime()
IoSessionManagerMBean
getLastReadTime in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getLastReadTime()public Date getLastWriteTime()
IoSessionManagerMBean
getLastWriteTime in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getLastWriteTime()public String[] getInstalledFilters()
IoSessionManagerMBean
getInstalledFilters in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getInstalledFilters()public void addLastLoggingFilter()
IoSessionManagerMBean
addLastLoggingFilter in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#addLastLoggingFilter()public void removeLastLoggingFilter()
IoSessionManagerMBean
removeLastLoggingFilter in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#removeLastLoggingFilter()public void addFirstLoggingFilter()
IoSessionManagerMBean
addFirstLoggingFilter in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#addFirstLoggingFilter()public void removeFirstLoggingFilter()
IoSessionManagerMBean
removeFirstLoggingFilter in interface IoSessionManagerMBeanpublic long getReadIdleTime()
IoSessionManagerMBean
getReadIdleTime in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getReadIdleTime()public long getWriteIdleTime()
IoSessionManagerMBean
getWriteIdleTime in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getWriteIdleTime()public long getBothIdleTime()
IoSessionManagerMBean
getBothIdleTime in interface IoSessionManagerMBeanarchean.util.mina.IoSessionManagerMBean#getBothIdleTime()public float getByteReadThroughtput()
IoSessionManagerMBean
getByteReadThroughtput in interface IoSessionManagerMBeanpublic float getByteWrittenThroughtput()
IoSessionManagerMBean
getByteWrittenThroughtput in interface IoSessionManagerMBeanpublic float getMessageReadThroughtput()
IoSessionManagerMBean
getMessageReadThroughtput in interface IoSessionManagerMBeanpublic float getMessageWrittenThroughtput()
IoSessionManagerMBean
getMessageWrittenThroughtput in interface IoSessionManagerMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||