org.jboss.remoting.transport.async
Interface ChannelServer

All Known Implementing Classes:
BlockingServer

public interface ChannelServer

An ChannelServer allows you accept incomming Channel connections. The accepted channels just get added to the Registry. This interace abstraction is here so that it can be implemented using both the Blocking and Non-blocking IO APIs.

Author:
Hiram Chirino

Method Summary
 void bind(InvokerLocator bindURI)
          Binds the server to network resource.
 void close()
          releases all network resources.
 InvokerLocator getLocalURI()
          The URI that the server is bound to.
 void start()
          Starts the server so that it will accept new channels.
 void stop()
          Stops the server from accepting any more channels.
 

Method Detail

bind

public void bind(InvokerLocator bindURI)
          throws IOException
Binds the server to network resource.

Throws:
IOException

getLocalURI

public InvokerLocator getLocalURI()
The URI that the server is bound to. Asynch channels can be establsihed to this uri.

Returns:

start

public void start()
           throws IOException
Starts the server so that it will accept new channels.

Throws:
IOException

stop

public void stop()
Stops the server from accepting any more channels.


close

public void close()
releases all network resources.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.