|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.endpoint.router.BadRoute
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
Constructor Summary | |
---|---|
BadRoute(RouteAdvertisement route,
Long exp,
Vector hops)
|
Method Summary | |
---|---|
void |
addHops(Vector hops)
add bad hops into the bad route |
String |
display()
|
Long |
getExpiration()
return the bad route expiration time |
Vector |
getHops()
return the known bad hops in the route |
RouteAdvertisement |
getRoute()
return the bad route info |
void |
setExpiration(Long exp)
set the bad route expiration time |
void |
setHops(Vector hops)
set bad hops into the bad route |
void |
setRoute(RouteAdvertisement route)
set the bad route info |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
BadRoute(RouteAdvertisement route, Long exp, Vector hops)
Method Detail |
---|
public RouteAdvertisement getRoute()
public void setRoute(RouteAdvertisement route)
route
- bad route advertisementpublic Long getExpiration()
public void setExpiration(Long exp)
exp
- bad route expiration timepublic Vector getHops()
public void setHops(Vector hops)
hops
- bad route hopspublic void addHops(Vector hops)
hops
- bad route hopspublic String display()
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |