public class BadRoute
This class is used to cache negative route information. Bad routes
are represented by three fields:
- route advertisement
- expiration time of the negative cache
- vectors or hops that are known bad for that route
| Field Summary |
private Vector |
|
private RouteAdvertisement |
|
private Long |
|
| Constructor Summary |
| |
BadRoute(RouteAdvertisement route, Long exp, Vector hops) |
| Method Summary |
public void |
add bad hops into the bad route |
public String |
|
public Long |
return the bad route expiration time |
public Vector |
return the known bad hops in the route |
public RouteAdvertisement |
return the bad route info |
public void |
set the bad route expiration time |
public void |
set bad hops into the bad route |
public void |
set the bad route info |
private Vector badHops = new Vector()
private RouteAdvertisement badRoute = null
private Long expiration
BadRoute(RouteAdvertisement route, Long exp, Vector hops)
public void addHops(Vector hops)
add bad hops into the bad route
Parameters:
hops bad route hops
public String display()
public Long getExpiration()
return the bad route expiration time
Return:
bad route expiration time
public Vector getHops()
return the known bad hops in the route
Return:
bad route hops
public RouteAdvertisement getRoute()
return the bad route info
Return:
bad route advertisement
public void setExpiration(Long exp)
set the bad route expiration time
Parameters:
exp bad route expiration time
public void setHops(Vector hops)
set bad hops into the bad route
Parameters:
hops bad route hops
public void setRoute(RouteAdvertisement route)
set the bad route info
Parameters:
route bad route advertisement