ostore.tapestry.impl
Class ChannelHandler

java.lang.Object
  |
  +--ostore.tapestry.impl.ChannelHandler

public class ChannelHandler
extends Object


Field Summary
 LinkedList _dispatched
           
static int MAX_CHANNEL_NUMBER
           
 
Constructor Summary
ChannelHandler(Router router)
           
 
Method Summary
 ostore.tapestry.channel.Channel channel_creation(NodeId nexthop)
           
 boolean channel_exist(NodeId nexthop)
           
protected  void dispatch(NetworkMessage msg, SecureHash msg_id)
           
protected  void dispatch(QueueElementIF item)
           
 ostore.tapestry.channel.Channel get_channel(NodeId nexthop)
           
 void handle_msg(ostore.tapestry.channel.ChannelACKMsg msg)
           
 boolean handle_msg(ostore.tapestry.channel.ChannelRequestMsg msg)
           
 boolean handle_msg(ostore.tapestry.channel.ChannelResponseMsg msg)
           
 void handle_msg(ostore.tapestry.channel.ChannelRouteMsg msg)
           
 void retransmit()
           
 void send_ack(NodeId prevhop, SecureHash msg_id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dispatched

public LinkedList _dispatched

MAX_CHANNEL_NUMBER

public static final int MAX_CHANNEL_NUMBER
Constructor Detail

ChannelHandler

public ChannelHandler(Router router)
Method Detail

dispatch

protected void dispatch(QueueElementIF item)

dispatch

protected void dispatch(NetworkMessage msg,
                        SecureHash msg_id)

send_ack

public void send_ack(NodeId prevhop,
                     SecureHash msg_id)

handle_msg

public void handle_msg(ostore.tapestry.channel.ChannelACKMsg msg)

handle_msg

public boolean handle_msg(ostore.tapestry.channel.ChannelRequestMsg msg)

handle_msg

public boolean handle_msg(ostore.tapestry.channel.ChannelResponseMsg msg)

handle_msg

public void handle_msg(ostore.tapestry.channel.ChannelRouteMsg msg)

get_channel

public ostore.tapestry.channel.Channel get_channel(NodeId nexthop)

channel_exist

public boolean channel_exist(NodeId nexthop)

channel_creation

public ostore.tapestry.channel.Channel channel_creation(NodeId nexthop)

retransmit

public void retransmit()