|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.CommSystemFacade
net.i2p.router.transport.CommSystemFacadeImpl
public class CommSystemFacadeImpl
Field Summary | |
---|---|
static java.lang.String |
PROP_I2NP_NTCP_AUTO_IP
|
static java.lang.String |
PROP_I2NP_NTCP_AUTO_PORT
|
static java.lang.String |
PROP_I2NP_NTCP_HOSTNAME
|
static java.lang.String |
PROP_I2NP_NTCP_PORT
|
Fields inherited from class net.i2p.router.CommSystemFacade |
---|
STATUS_DIFFERENT, STATUS_OK, STATUS_REJECT_UNSOLICITED, STATUS_UNKNOWN |
Constructor Summary | |
---|---|
CommSystemFacadeImpl(RouterContext context)
|
Method Summary | |
---|---|
int |
countActivePeers()
|
int |
countActiveSendPeers()
|
java.util.Set |
createAddresses()
Create the set of RouterAddress structures based on the router's config |
static RouterAddress |
createNTCPAddress(RouterContext ctx)
|
TransportBid |
getBid(OutNetMessage msg)
|
java.util.List |
getBids(OutNetMessage msg)
|
java.lang.Long |
getFramedAveragePeerClockSkew(int percentToInclude)
Framed average clock skew of connected peers in seconds, or null if we cannot answer. |
java.util.List |
getMostRecentErrorMessages()
|
TransportBid |
getNextBid(OutNetMessage msg)
|
short |
getReachabilityStatus()
Determine under what conditions we are remotely reachable. |
(package private) int |
getTransportCount()
|
boolean |
isBacklogged(Hash dest)
|
void |
notifyReplaceAddress(RouterAddress UDPAddr)
UDP changed addresses, tell NTCP and restart |
void |
processMessage(OutNetMessage msg)
|
void |
recheckReachability()
|
void |
renderStatusHTML(java.io.Writer out,
java.lang.String urlBase,
int sortFlags)
|
void |
restart()
Perform a soft restart. |
void |
shutdown()
Instruct the service that the router is shutting down and that it should do whatever is necessary to go down gracefully. |
void |
startup()
Instruct the service that it should start normal operation. |
Methods inherited from class net.i2p.router.CommSystemFacade |
---|
getMedianPeerClockSkew, renderStatusHTML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_I2NP_NTCP_HOSTNAME
public static final java.lang.String PROP_I2NP_NTCP_PORT
public static final java.lang.String PROP_I2NP_NTCP_AUTO_PORT
public static final java.lang.String PROP_I2NP_NTCP_AUTO_IP
Constructor Detail |
---|
public CommSystemFacadeImpl(RouterContext context)
Method Detail |
---|
public void startup()
Service
public void shutdown()
Service
public void restart()
Service
public int countActivePeers()
countActivePeers
in class CommSystemFacade
public int countActiveSendPeers()
countActiveSendPeers
in class CommSystemFacade
public java.lang.Long getFramedAveragePeerClockSkew(int percentToInclude)
getFramedAveragePeerClockSkew
in class CommSystemFacade
public java.util.List getBids(OutNetMessage msg)
public TransportBid getBid(OutNetMessage msg)
public TransportBid getNextBid(OutNetMessage msg)
int getTransportCount()
public void processMessage(OutNetMessage msg)
processMessage
in class CommSystemFacade
public boolean isBacklogged(Hash dest)
isBacklogged
in class CommSystemFacade
public java.util.List getMostRecentErrorMessages()
getMostRecentErrorMessages
in class CommSystemFacade
public short getReachabilityStatus()
CommSystemFacade
getReachabilityStatus
in class CommSystemFacade
public void recheckReachability()
recheckReachability
in class CommSystemFacade
public void renderStatusHTML(java.io.Writer out, java.lang.String urlBase, int sortFlags) throws java.io.IOException
renderStatusHTML
in class CommSystemFacade
java.io.IOException
public java.util.Set createAddresses()
CommSystemFacade
createAddresses
in class CommSystemFacade
public static RouterAddress createNTCPAddress(RouterContext ctx)
public void notifyReplaceAddress(RouterAddress UDPAddr)
notifyReplaceAddress
in class CommSystemFacade
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |