Class BadRoute
package: src.net.jxta.impl.endpoint.router
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
addHops(Vector hops)
   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
setExpiration(Long exp)
   set the bad route expiration time
 
public void
setHops(Vector hops)
   set bad hops into the bad route
 
public void
setRoute(RouteAdvertisement route)
   set the bad route info
 
Field Detail
badHops
private Vector badHops = new Vector()

badRoute
private RouteAdvertisement badRoute = null

expiration
private Long expiration
Constructor Detail
BadRoute
BadRoute(RouteAdvertisement route, Long exp, Vector hops)
Method Detail
addHops
public void addHops(Vector hops)
add bad hops into the bad route
Parameters:
hops bad route hops

display
public String display()

getExpiration
public Long getExpiration()
return the bad route expiration time
Return:
bad route expiration time

getHops
public Vector getHops()
return the known bad hops in the route
Return:
bad route hops

getRoute
public RouteAdvertisement getRoute()
return the bad route info
Return:
bad route advertisement

setExpiration
public void setExpiration(Long exp)
set the bad route expiration time
Parameters:
exp bad route expiration time

setHops
public void setHops(Vector hops)
set bad hops into the bad route
Parameters:
hops bad route hops

setRoute
public void setRoute(RouteAdvertisement route)
set the bad route info
Parameters:
route bad route advertisement