|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.dsr.p2p.NeighborsManager
public class NeighborsManager
| Constructor Summary | |
|---|---|
protected |
NeighborsManager()
Default constructor if you don't want to use as a singleton class |
| Method Summary | |
|---|---|
void |
addNeighborsDSRs(org.codehaus.jettison.json.JSONArray entries,
String type)
Add neighbors GSRs. |
static NeighborsManager |
getInstance()
Get only one instance for the neighbors manager class. |
List<String> |
getNeighbors()
Get list of neighbors. |
int |
getRetry()
Get value of retry. |
void |
hashClear()
Clear the hash table and set the neighbors count to 0. |
void |
resetUnavailableNeighbor(String url)
Reset unavailable neighbor GSR if it is need. |
void |
setUnavailableNeighbor(String url)
Set unavailable neighbor GSR. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected NeighborsManager()
None - | Method Detail |
|---|
public static NeighborsManager getInstance()
None -
public void hashClear()
None - public int getRetry()
None -
public List<String> getNeighbors()
None -
public void addNeighborsDSRs(org.codehaus.jettison.json.JSONArray entries,
String type)
List - of entries for global DSRsType - of the message (Register or Delete)public void setUnavailableNeighbor(String url)
URL - of the unavailable neighbor GSRpublic void resetUnavailableNeighbor(String url)
URL - of the available neighbor GSR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||