org.objectweb.tribe.channel
Class AbstractReliableFifoChannel

java.lang.Object
  extended byorg.objectweb.tribe.channel.AbstractReliableFifoChannel
Direct Known Subclasses:
TcpChannel

public abstract class AbstractReliableFifoChannel
extends java.lang.Object

This interface defines a AbstractReliableFifoChannel

Version:
1.0
Author:
Emmanuel Cecchet

Constructor Summary
AbstractReliableFifoChannel()
           
 
Method Summary
abstract  void close()
          Closes the channel.
abstract  void connect(Address destination)
          Connects to the given endpoint.
abstract  Address getDestinationAddress()
          Get the destination endpoint of this channel.
abstract  Address getSourceAddress()
          Get the source endpoint of this channel.
abstract  void send(ChannelMessage msg)
          Sends a message on the channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReliableFifoChannel

public AbstractReliableFifoChannel()
Method Detail

connect

public abstract void connect(Address destination)
                      throws ChannelException
Connects to the given endpoint.

Parameters:
destination - endpoint to connect to.
Throws:
ChannelException - if an error occurs.

send

public abstract void send(ChannelMessage msg)
                   throws ChannelException,
                          NotConnectedException
Sends a message on the channel.

Parameters:
msg - the message to send
Throws:
ChannelException - if an error occurs.
NotConnectedException - if the channel is not connected

close

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

Throws:
ChannelException - if an error occurs.

getSourceAddress

public abstract Address getSourceAddress()
                                  throws ChannelException
Get the source endpoint of this channel.

Returns:
the source address
Throws:
ChannelException

getDestinationAddress

public abstract Address getDestinationAddress()
                                       throws ChannelException
Get the destination endpoint of this channel.

Returns:
the destination address
Throws:
ChannelException


Copyright © 2004 - ObjectWeb Consortium - All Rights Reserved.