org.jboss.xnio.nio
Class NioTcpChannel.MBean

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.jboss.xnio.nio.NioTcpChannel.MBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, ChannelStats, InetBound, InetConnected, ManagedCloseable, ReadableChannelStats, TcpConnectionMBean, WritableChannelStats
Enclosing class:
NioTcpChannel

public final class NioTcpChannel.MBean
extends javax.management.StandardMBean
implements TcpConnectionMBean


Constructor Summary
NioTcpChannel.MBean()
           
 
Method Summary
 void close()
          MBean operation to forcibly close a channel.
 java.net.SocketAddress getBindAddress()
          Get the bind address.
 long getBytesRead()
          Get the number of bytes read from this channel.
 long getBytesWritten()
          Get the number of bytes written to this channel.
 long getMessagesRead()
          Get the number of read operations performed on this channel.
 long getMessagesWritten()
          Get the number of write operations performed on this channel.
 java.net.SocketAddress getPeerAddress()
          Get the peer address.
 java.lang.String toString()
           
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NioTcpChannel.MBean

public NioTcpChannel.MBean()
                    throws javax.management.NotCompliantMBeanException
Throws:
javax.management.NotCompliantMBeanException
Method Detail

getBytesRead

public long getBytesRead()
Description copied from interface: ReadableChannelStats
Get the number of bytes read from this channel.

Specified by:
getBytesRead in interface ReadableChannelStats
Returns:
the number of bytes

getBytesWritten

public long getBytesWritten()
Description copied from interface: WritableChannelStats
Get the number of bytes written to this channel.

Specified by:
getBytesWritten in interface WritableChannelStats
Returns:
the number of bytes

getMessagesRead

public long getMessagesRead()
Description copied from interface: ReadableChannelStats
Get the number of read operations performed on this channel.

Specified by:
getMessagesRead in interface ReadableChannelStats
Returns:
the number of messages

getMessagesWritten

public long getMessagesWritten()
Description copied from interface: WritableChannelStats
Get the number of write operations performed on this channel.

Specified by:
getMessagesWritten in interface WritableChannelStats
Returns:
the number of messages

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPeerAddress

public java.net.SocketAddress getPeerAddress()
Description copied from interface: InetConnected
Get the peer address.

Specified by:
getPeerAddress in interface InetConnected
Returns:
the peer address

getBindAddress

public java.net.SocketAddress getBindAddress()
Description copied from interface: InetBound
Get the bind address.

Specified by:
getBindAddress in interface InetBound
Returns:
the bind address

close

public void close()
Description copied from interface: ManagedCloseable
MBean operation to forcibly close a channel.

Specified by:
close in interface ManagedCloseable