XNIO version 1.2.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(SocketAddress address)
          Bind the entity to a socket address.
 void bind(String hostName, int port)
          Bind the entity to a host and port.
 void unbind(SocketAddress address)
          Unbind the entity from a socket address.
 void unbind(String hostName, int port)
          Unbind the entity from a host and port.
 

Method Detail

bind

void bind(SocketAddress address)
          throws IOException
Bind the entity to a socket address.

Parameters:
address - the address
Throws:
IOException - if an error occurs

bind

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

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

unbind

void unbind(SocketAddress address)
            throws IOException
Unbind the entity from a socket address.

Parameters:
address - the address
Throws:
IOException - if an error occurs

unbind

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

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

XNIO version 1.2.0.GA

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