|
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
class BadRoute
This class is used to cache negative route information. Bad routes are represented by three fields:
Constructor Summary | |
---|---|
BadRoute(RouteAdvertisement route,
long exp,
Set<PeerID> hops)
|
Method Summary | |
---|---|
void |
addBadHop(PeerID hop)
add a bad hop into the bad route |
void |
addBadHops(Set<PeerID> hops)
add bad hops into the bad route |
Set<PeerID> |
getBadHops()
return the known bad hops in the route |
long |
getExpiration()
Return the absolute time at which the this entry expires. |
RouteAdvertisement |
getRoute()
Return the bad route info |
void |
setBadHops(Set<PeerID> hops)
set bad hops into the bad route |
void |
setExpiration(long exp)
set the bad route expiration time |
String |
toString()
Implementation useful for debugging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
BadRoute(RouteAdvertisement route, long exp, Set<PeerID> hops)
Method Detail |
---|
public RouteAdvertisement getRoute()
public long getExpiration()
public void setExpiration(long exp)
exp
- bad route expiration timepublic Set<PeerID> getBadHops()
public void setBadHops(Set<PeerID> hops)
hops
- bad route hopspublic void addBadHops(Set<PeerID> hops)
hops
- bad route hopspublic void addBadHop(PeerID hop)
hop
- The bad route hop.public String toString()
toString
in class Object
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |