public class GhostPeerManager extends Object
| Constructor and Description |
|---|
GhostPeerManager(RouterContext context)GhostPeerManager. |
| Modifier and Type | Method and Description |
|---|---|
void | clearGhost(Hash peer)Clear ghost status for a peer (manual intervention). |
int | getGhostCount()Get count of currently tracked ghost peers. |
int | getThreshold()Get the current timeout threshold. |
boolean | isGhost(Hash peer)Check if a peer should be excluded from tunnel selection. |
void | recordSuccess(Hash peer)Record successful tunnel participation by a peer. |
void | recordTimeout(Hash peer)Record that a peer timed out during tunnel build. |
public GhostPeerManager(RouterContext context)
public void clearGhost(Hash peer)
peer - the peerpublic int getGhostCount()
public int getThreshold()
public boolean isGhost(Hash peer)
peer - the peerpublic void recordSuccess(Hash peer)
peer - the peerpublic void recordTimeout(Hash peer)
peer - the peer