|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.tunnel.TunnelParticipant
class TunnelParticipant
Participate in a tunnel at a location other than the gateway or outbound endpoint. This participant should be provided with the necessary processor if it is an inbound tunnel endpoint, and that will enable the InboundMessageDistributor to receive defragmented and decrypted messages, which it will then selectively forward.
Constructor Summary | |
---|---|
TunnelParticipant(RouterContext ctx,
HopConfig config,
HopProcessor processor)
not an inbound endpoint |
|
TunnelParticipant(RouterContext ctx,
InboundEndpointProcessor inEndProc)
inbound endpoint |
Method Summary | |
---|---|
void |
dispatch(TunnelDataMessage msg,
Hash recvFrom)
|
int |
getCompleteCount()
private void incrementThroughput(Hash prev) { if (true) return; long now = System.currentTimeMillis(); long timeSince = now - _lastCoallesced; if (timeSince >= 60*1000) { int amount = 1024 * _periodMessagesTransferred; int normalized = (int)((double)amount * 60d*1000d / (double)timeSince); _periodMessagesTransferred = 0; _lastCoallesced = now; _context.profileManager().tunnelDataPushed1m(prev, normalized); } else { _periodMessagesTransferred++; } } |
int |
getFailedCount()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TunnelParticipant(RouterContext ctx, HopConfig config, HopProcessor processor)
public TunnelParticipant(RouterContext ctx, InboundEndpointProcessor inEndProc)
Method Detail |
---|
public void dispatch(TunnelDataMessage msg, Hash recvFrom)
public int getCompleteCount()
public int getFailedCount()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |