|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object network.MaintainNeighbors
Periodically checks if the number of neighbors is below the minimum number of neighbors. If it is, it tries to add more neighbors.
Constructor Summary | |
MaintainNeighbors(Network network)
Creates a new MaintainNeighbors TimerTask. |
Method Summary | |
void |
run()
If the number of neighbors is under minimum, try to add some neighbors from the cache. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MaintainNeighbors(Network network)
network
- The network of neighbors to maintain.Method Detail |
public void start()
public void run()
run
in interface java.lang.Runnable
public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |