net.i2p.router
public abstract class CommSystemFacade extends Object implements Service
Modifier and Type | Field and Description |
---|---|
static short |
STATUS_DIFFERENT
We are behind a symmetric NAT which will make our 'from' address look
differently when we talk to multiple people
|
static short |
STATUS_HOSED
Our detection system is broken (SSU bind port failed)
|
static short |
STATUS_OK
These must be increasing in "badness" (see TransportManager.java),
but UNKNOWN must be last.
|
static short |
STATUS_REJECT_UNSOLICITED
We are able to talk to peers that we initiate communication with, but
cannot receive unsolicited connections
|
static short |
STATUS_UNKNOWN
Our reachability is unknown
|
Constructor and Description |
---|
CommSystemFacade() |
Modifier and Type | Method and Description |
---|---|
int |
countActivePeers() |
int |
countActiveSendPeers() |
Set<RouterAddress> |
createAddresses()
Create the set of RouterAddress structures based on the router's config
|
String |
getCountry(Hash peer) |
String |
getCountryName(String code) |
long |
getFramedAveragePeerClockSkew(int percentToInclude)
Return framed average clock skew of connected peers in seconds, or null if we cannot answer.
|
byte[] |
getIP(Hash dest) |
Long |
getMedianPeerClockSkew()
Median clock skew of connected peers in seconds, or null if we cannot answer.
|
List |
getMostRecentErrorMessages() |
short |
getReachabilityStatus()
Determine under what conditions we are remotely reachable.
|
boolean |
haveHighOutboundCapacity() |
boolean |
haveInboundCapacity(int pct) |
boolean |
haveOutboundCapacity(int pct) |
boolean |
isBacklogged(Hash dest) |
boolean |
isEstablished(Hash dest) |
void |
notifyReplaceAddress(RouterAddress UDPAddr)
Tell other transports our address changed
|
abstract void |
processMessage(OutNetMessage msg) |
void |
queueLookup(byte[] ip) |
void |
recheckReachability() |
String |
renderPeerHTML(Hash peer) |
void |
renderStatusHTML(Writer out) |
void |
renderStatusHTML(Writer out,
String urlBase,
int sortFlags) |
boolean |
wasUnreachable(Hash dest) |
public static final short STATUS_OK
public static final short STATUS_DIFFERENT
public static final short STATUS_REJECT_UNSOLICITED
public static final short STATUS_HOSED
public static final short STATUS_UNKNOWN
public abstract void processMessage(OutNetMessage msg)
public void renderStatusHTML(Writer out, String urlBase, int sortFlags) throws IOException
IOException
public void renderStatusHTML(Writer out) throws IOException
renderStatusHTML
in interface Service
IOException
public Set<RouterAddress> createAddresses()
public int countActivePeers()
public int countActiveSendPeers()
public boolean haveInboundCapacity(int pct)
public boolean haveOutboundCapacity(int pct)
public boolean haveHighOutboundCapacity()
public List getMostRecentErrorMessages()
public Long getMedianPeerClockSkew()
public long getFramedAveragePeerClockSkew(int percentToInclude)
public short getReachabilityStatus()
public void recheckReachability()
public boolean isBacklogged(Hash dest)
public boolean wasUnreachable(Hash dest)
public boolean isEstablished(Hash dest)
public byte[] getIP(Hash dest)
public void queueLookup(byte[] ip)
public void notifyReplaceAddress(RouterAddress UDPAddr)