|
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.RouteCM
public class RouteCM
Field Summary | |
---|---|
static long |
DEFAULT_EXPIRATION
Default expiration time for Route advertisements. |
Constructor Summary | |
---|---|
RouteCM()
Constructor |
Method Summary | |
---|---|
protected void |
createRoute(RouteAdvertisement route)
Create a new persistent route to the cache only if we can find set of endpoint addresses |
protected void |
disableRouteCM()
disable routeCM usage |
protected void |
enableRouteCM()
disable routeCM usage |
protected void |
flushRoute(EndpointAddress addr)
flush route adv from CM |
protected Iterator |
getRouteAdv(EndpointAddress pId)
get route advertisements from the local discovery cache. |
void |
init(PeerGroup group,
ID assignedID,
Advertisement impl,
EndpointRouter router)
initialize CM route |
protected void |
publishRoute(RouteAdvertisement route)
Publish a route advertisement to the CM |
int |
startApp(String[] arg)
Make this protocol as up and running. |
void |
stopApp()
Stop the service |
protected boolean |
updateRoute(RouteAdvertisement route)
publish or update new route from the advertisement cache |
protected boolean |
useRouteCM()
return routeCM usage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_EXPIRATION
Constructor Detail |
---|
public RouteCM()
Method Detail |
---|
protected boolean useRouteCM()
protected void disableRouteCM()
protected void enableRouteCM()
public void init(PeerGroup group, ID assignedID, Advertisement impl, EndpointRouter router) throws PeerGroupException
PeerGroupException
public int startApp(String[] arg)
public void stopApp()
protected Iterator getRouteAdv(EndpointAddress pId)
pId
- the target peer's logical address
protected void createRoute(RouteAdvertisement route)
route
- to be publishedprotected void publishRoute(RouteAdvertisement route)
route
- advertisement to be publishedprotected void flushRoute(EndpointAddress addr)
addr
- endpoint addressprotected boolean updateRoute(RouteAdvertisement route)
route
- to be published or updated
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |