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
-
defaultRouting
- the routing protocol that is installed as the default
-
EventMgr
- Event manager to log events
-
Schemes
- Table of Routing protocols managed
-
RoutingMgr()
- constructor sets up the default routing protocol
-
defaultRouting()
- returns the default routing protocol
-
PortDown(String)
- called by Active node manager when the active node goes down.
-
PortUp(String)
-
called by the active node manager to inform of a new neighbor.
-
Register(RoutingProtocol)
- registers a new routing scheme
-
setDefault(RoutingProtocol)
- sets the default routing protocol for this node.
defaultRouting
static RoutingProtocol defaultRouting
- the routing protocol that is installed as the default
Schemes
static Hashtable Schemes
- Table of Routing protocols managed
EventMgr
static EventManager EventMgr
- Event manager to log events
RoutingMgr
public RoutingMgr()
- constructor sets up the default routing protocol
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
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
defaultRouting
public static RoutingProtocol defaultRouting()
- returns the default routing protocol
- Returns:
- the default routing protocol
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
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