org.jboss.xnio.nio
Class NioTcpServer.MBean

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.jboss.xnio.nio.NioTcpServer.MBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, AcceptorStats, InetBindable, ManagedCloseable, TcpServerMBean
Enclosing class:
NioTcpServer

public final class NioTcpServer.MBean
extends javax.management.StandardMBean
implements TcpServerMBean


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.xnio.management.TcpServerMBean
TcpServerMBean.Listener
 
Constructor Summary
protected NioTcpServer.MBean()
           
 
Method Summary
 void bind(java.net.SocketAddress address)
          Bind the entity to a socket address.
 void bind(java.lang.String hostName, int port)
          Bind the entity to a host and port.
 void close()
          MBean operation to forcibly close a channel.
 long getAcceptedConnections()
          Get the total count of accepted connections.
 TcpServerMBean.Listener[] getBoundListeners()
          Get the currently bound listeners.
 java.lang.String toString()
           
 void unbind(java.net.SocketAddress address)
          Unbind the entity from a socket address.
 void unbind(java.lang.String hostName, int port)
          Unbind the entity from a host and port.
 
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

NioTcpServer.MBean

protected NioTcpServer.MBean()
                      throws javax.management.NotCompliantMBeanException
Throws:
javax.management.NotCompliantMBeanException
Method Detail

toString

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

getBoundListeners

public TcpServerMBean.Listener[] getBoundListeners()
Description copied from interface: TcpServerMBean
Get the currently bound listeners.

Specified by:
getBoundListeners in interface TcpServerMBean
Returns:
the currently bound listeners

getAcceptedConnections

public long getAcceptedConnections()
Description copied from interface: AcceptorStats
Get the total count of accepted connections.

Specified by:
getAcceptedConnections in interface AcceptorStats
Returns:
the count

bind

public void bind(java.net.SocketAddress address)
          throws java.io.IOException
Description copied from interface: InetBindable
Bind the entity to a socket address.

Specified by:
bind in interface InetBindable
Parameters:
address - the address
Throws:
java.io.IOException - if an error occurs

bind

public void bind(java.lang.String hostName,
                 int port)
          throws java.io.IOException
Description copied from interface: InetBindable
Bind the entity to a host and port.

Specified by:
bind in interface InetBindable
Parameters:
hostName - the host name
port - the port number
Throws:
java.io.IOException - if an error occurs

unbind

public void unbind(java.net.SocketAddress address)
            throws java.io.IOException
Description copied from interface: InetBindable
Unbind the entity from a socket address.

Specified by:
unbind in interface InetBindable
Parameters:
address - the address
Throws:
java.io.IOException - if an error occurs

unbind

public void unbind(java.lang.String hostName,
                   int port)
            throws java.io.IOException
Description copied from interface: InetBindable
Unbind the entity from a host and port.

Specified by:
unbind in interface InetBindable
Parameters:
hostName - the host name
port - the port number
Throws:
java.io.IOException - if an error occurs

close

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

Specified by:
close in interface ManagedCloseable