|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.CommSystemFacade
public abstract class CommSystemFacade
Manages the communication subsystem between peers, including connections, listeners, transports, connection keys, etc.
Field Summary | |
---|---|
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_OK
We are able to receive unsolicited connections |
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 Summary | |
---|---|
CommSystemFacade()
|
Method Summary | |
---|---|
int |
countActivePeers()
|
int |
countActiveSendPeers()
|
java.util.Set |
createAddresses()
Create the set of RouterAddress structures based on the router's config |
java.lang.Long |
getFramedAveragePeerClockSkew(int percentToInclude)
Return framed average clock skew of connected peers in seconds, or null if we cannot answer. |
java.lang.Long |
getMedianPeerClockSkew()
Median clock skew of connected peers in seconds, or null if we cannot answer. |
java.util.List |
getMostRecentErrorMessages()
|
short |
getReachabilityStatus()
Determine under what conditions we are remotely reachable. |
boolean |
isBacklogged(Hash dest)
|
void |
notifyReplaceAddress(RouterAddress UDPAddr)
Tell other transports our address changed |
abstract void |
processMessage(OutNetMessage msg)
|
void |
recheckReachability()
|
void |
renderStatusHTML(java.io.Writer out)
|
void |
renderStatusHTML(java.io.Writer out,
java.lang.String urlBase,
int sortFlags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.i2p.router.Service |
---|
restart, shutdown, startup |
Field Detail |
---|
public static final short STATUS_OK
public static final short STATUS_DIFFERENT
public static final short STATUS_REJECT_UNSOLICITED
public static final short STATUS_UNKNOWN
Constructor Detail |
---|
public CommSystemFacade()
Method Detail |
---|
public abstract void processMessage(OutNetMessage msg)
public void renderStatusHTML(java.io.Writer out, java.lang.String urlBase, int sortFlags) throws java.io.IOException
java.io.IOException
public void renderStatusHTML(java.io.Writer out) throws java.io.IOException
renderStatusHTML
in interface Service
java.io.IOException
public java.util.Set createAddresses()
public int countActivePeers()
public int countActiveSendPeers()
public java.util.List getMostRecentErrorMessages()
public java.lang.Long getMedianPeerClockSkew()
public java.lang.Long getFramedAveragePeerClockSkew(int percentToInclude)
public short getReachabilityStatus()
public void recheckReachability()
public boolean isBacklogged(Hash dest)
public void notifyReplaceAddress(RouterAddress UDPAddr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |