|
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.RouteControl
public class RouteControl
| Field Summary | |
|---|---|
static int |
ALREADY_EXIST
|
static int |
DIRECT_ROUTE
|
static int |
FAILED
|
static int |
INVALID_ROUTE
|
static int |
OK
return value for operation |
| Constructor Summary | |
|---|---|
RouteControl(EndpointRouter router,
ID pid)
initialize RouteControl |
|
| Method Summary | |
|---|---|
int |
addRoute(RouteAdvertisement newRoute)
add a new route. |
int |
deleteRoute(PeerID pId)
Delete route info |
void |
disableRouteCM()
disable usage of Route CM cache |
void |
disableRouteResolver()
disable usage of Route resolver |
void |
enableRouteCM()
enable usage of Route CM cache |
void |
enableRouteResolver()
enable usage of Route Resolver |
Vector |
getAllRoutesInfo()
get all the know routes by the router. |
RouteAdvertisement |
getMyLocalRoute()
get my local route |
RouteAdvertisement |
getRouteInfo(PeerID pId)
get a current route info |
boolean |
useRouteCM()
get RouteCM usage |
boolean |
useRouteResolver()
get RouteResolver usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int OK
public static final int ALREADY_EXIST
public static final int FAILED
public static final int DIRECT_ROUTE
public static final int INVALID_ROUTE
| Constructor Detail |
|---|
public RouteControl(EndpointRouter router,
ID pid)
| Method Detail |
|---|
public RouteAdvertisement getMyLocalRoute()
public int addRoute(RouteAdvertisement newRoute)
newRoute - route to add
public RouteAdvertisement getRouteInfo(PeerID pId)
pId - destination of the route
public int deleteRoute(PeerID pId)
pId - destination route to be removed
public Vector getAllRoutesInfo()
public boolean useRouteCM()
public boolean useRouteResolver()
public void enableRouteCM()
public void disableRouteCM()
public void enableRouteResolver()
public void disableRouteResolver()
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||