org.objectweb.dream.protocol.bus
Interface BusOutgoingPush

All Known Implementing Classes:
BusProtocolImpl.Session, ProtocolImpl.Session

public interface BusOutgoingPush

Specialized OutgoingPush interface for bus protocol. Each message is sent to a protocol instance in the bus.


Method Summary
 int getBusSize()
          Returns the size of the bus.
 int getLocalAddress()
          Returns the address of this protocol instance in the bus.
 void outgoingClose(IncomingPush incomingPush)
          Closes the communication channel.
 void outgoingPush(Message message, int to)
          Gives an outgoing message to a protocol.
 

Method Detail

outgoingPush

void outgoingPush(Message message,
                  int to)
                  throws PushException
Gives an outgoing message to a protocol.

Parameters:
message - the message to give to the component.
to - the address in the bus of the receiver of the message.
Throws:
PushException - if an exception occurs.

outgoingClose

void outgoingClose(IncomingPush incomingPush)
                   throws IOException
Closes the communication channel. The implementation of this method must not call the IncomingPush.incomingClosed(java.lang.Object, java.lang.Exception) method, since this latter is only used to inform a upper session that a lower session has been closed unexpectedly.

Parameters:
incomingPush - the interface on which incoming messages of the closed communication channel were received.
Throws:
IOException - the closing process failed.

getLocalAddress

int getLocalAddress()
Returns the address of this protocol instance in the bus.

Returns:
the address of this protocol instance in the bus.

getBusSize

int getBusSize()
Returns the size of the bus.

Returns:
the size of the bus.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.