All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class magician.Node.RoutingMgr

java.lang.Object
   |
   +----magician.Node.RoutingMgr

public class RoutingMgr
extends Object
The Routing manager is in charge of managing the routing protocols at the active node. The routing manager provides an interface (RoutingProtocol for incoming SmartPackets to deploy their own routing strategies. The default routing protocol, for Smartpackets that do not carry their own, is the RIPRouting protocol.

See Also:
RoutingProtocol, RIPRouting

Variable Index

 o defaultRouting
the routing protocol that is installed as the default
 o EventMgr
Event manager to log events
 o Schemes
Table of Routing protocols managed

Constructor Index

 o RoutingMgr()
constructor sets up the default routing protocol

Method Index

 o defaultRouting()
returns the default routing protocol
 o PortDown(String)
called by Active node manager when the active node goes down.
 o PortUp(String)
called by the active node manager to inform of a new neighbor.
 o Register(RoutingProtocol)
registers a new routing scheme
 o setDefault(RoutingProtocol)
sets the default routing protocol for this node.

Variables

 o defaultRouting
 static RoutingProtocol defaultRouting
the routing protocol that is installed as the default

 o Schemes
 static Hashtable Schemes
Table of Routing protocols managed

 o EventMgr
 static EventManager EventMgr
Event manager to log events

Constructors

 o RoutingMgr
 public RoutingMgr()
constructor sets up the default routing protocol

Methods

 o PortUp
 public static void PortUp(String hadr)
called by the active node manager to inform of a new neighbor. This method calls the PortUp method of all installed routing protocols to inform them of of the new neighbor

Parameters:
hadr - name of the active node
 o PortDown
 public static void PortDown(String PortName)
called by Active node manager when the active node goes down. This method calls the PortUp method of all installed routing protocols to inform them of of the new neighbor

Parameters:
PortName - name of active node
 o defaultRouting
 public static RoutingProtocol defaultRouting()
returns the default routing protocol

Returns:
the default routing protocol
 o setDefault
 protected static RoutingProtocol setDefault(RoutingProtocol newProto)
sets the default routing protocol for this node. Can only be changed by management packets.

Parameters:
newProto - the new default routing protocol
Returns:
the old default
 o Register
 public static boolean Register(RoutingProtocol rp)
registers a new routing scheme

Parameters:
rp - the routing protocol being registered
Returns:
true if protocol gets registered, false otherwise

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1