org.objectweb.tribe.channel
Class AbstractServerChannel

java.lang.Object
  extended byorg.objectweb.tribe.channel.AbstractServerChannel
Direct Known Subclasses:
TcpServerChannel

public abstract class AbstractServerChannel
extends java.lang.Object

This class defines a AbstractServerChannel to accept new connections.

Version:
1.0
Author:
Emmanuel Cecchet

Constructor Summary
AbstractServerChannel()
           
 
Method Summary
abstract  AbstractReliableFifoChannel accept()
          Accepts a new incoming connection.
abstract  void bind(Address source)
          Binds a source address
abstract  void close()
          Closes the serverSocket.
abstract  Address getBindAddress()
          Get the address on which this channel is bound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractServerChannel

public AbstractServerChannel()
Method Detail

bind

public abstract void bind(Address source)
                   throws ChannelException
Binds a source address

Parameters:
source - source address to bind
Throws:
ChannelException - if an error occurs

accept

public abstract AbstractReliableFifoChannel accept()
                                            throws ChannelException
Accepts a new incoming connection.

Returns:
the new serverSocket
Throws:
ChannelException - if an error occurs

getBindAddress

public abstract Address getBindAddress()
                                throws NotConnectedException
Get the address on which this channel is bound.

Throws:
NotConnectedException - if the channel is not connected.

close

public abstract void close()
                    throws ChannelException
Closes the serverSocket.

Throws:
ChannelException - if an error occurs.


Copyright © 2004 - ObjectWeb Consortium - All Rights Reserved.