XNIO API 2.0.0.GA

org.jboss.xnio.management
Interface InetBindable

All Known Subinterfaces:
TcpServerMBean

public interface InetBindable

A managed object which may be bound and unbound to a socket address.

Since:
1.2

Method Summary
 void bind(java.net.InetSocketAddress 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 unbind(java.net.InetSocketAddress address)
          Unbind the entity from a socket address.
 void unbind(java.lang.String hostName, int port)
          Unbind the entity from a host and port.
 

Method Detail

bind

void bind(java.net.InetSocketAddress address)
          throws java.io.IOException
Bind the entity to a socket address.

Parameters:
address - the address
Throws:
java.io.IOException - if an error occurs

bind

void bind(java.lang.String hostName,
          int port)
          throws java.io.IOException
Bind the entity to a host and port.

Parameters:
hostName - the host name
port - the port number
Throws:
java.io.IOException - if an error occurs

unbind

void unbind(java.net.InetSocketAddress address)
            throws java.io.IOException
Unbind the entity from a socket address.

Parameters:
address - the address
Throws:
java.io.IOException - if an error occurs

unbind

void unbind(java.lang.String hostName,
            int port)
            throws java.io.IOException
Unbind the entity from a host and port.

Parameters:
hostName - the host name
port - the port number
Throws:
java.io.IOException - if an error occurs

XNIO API 2.0.0.GA

Copyright © 2009 JBoss, a division of Red Hat, Inc.