public final class EmptyRouteTable extends Object implements RouteTable
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Releases route table resources across the entire cluster.
|
Collection<RouteSet> |
getRoutes()
Returns all routes in the route table.
|
RouteSet |
getRoutes(org.onlab.packet.IpPrefix prefix)
Returns the routes in this table pertaining to a given prefix.
|
Collection<Route> |
getRoutesForNextHop(org.onlab.packet.IpAddress nextHop)
Returns all routes that have the given next hop.
|
RouteTableId |
id()
Returns the route table ID.
|
static EmptyRouteTable |
instance()
Returns the instance of the empty route table.
|
void |
remove(Route route)
Removes a route from the route table.
|
void |
shutdown()
Releases route table resources held locally.
|
void |
update(Route route)
Adds a route to the route table.
|
public static EmptyRouteTable instance()
public void update(Route route)
RouteTableupdate in interface RouteTableroute - routepublic void remove(Route route)
RouteTableremove in interface RouteTableroute - routepublic RouteTableId id()
RouteTableid in interface RouteTablepublic Collection<RouteSet> getRoutes()
RouteTablegetRoutes in interface RouteTablepublic RouteSet getRoutes(org.onlab.packet.IpPrefix prefix)
RouteTablegetRoutes in interface RouteTableprefix - IP prefixpublic Collection<Route> getRoutesForNextHop(org.onlab.packet.IpAddress nextHop)
RouteTablegetRoutesForNextHop in interface RouteTablenextHop - next hop IP addresspublic void shutdown()
RouteTableshutdown in interface RouteTablepublic void destroy()
RouteTabledestroy in interface RouteTable