Packages that use RateStat
Package
Description
The I2P router application handles I2P network communication.
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
Peer profiles and capacity calculation, peer test jobs, peer selection for tunnel building, and the database and tunnel history used for peer selection.
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Tunnel messages and the tunnel layer: the
TunnelManagerFacade, tunnel build request and reply processing, and the inbound and outbound tunnel structures. Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Statistics collection framework used throughout the router for adaptive operation, monitoring and debugging.
General utility classes shared across the core libraries and the router.
Uses of RateStat in net.i2p.router
Fields in net.i2p.router declared as RateStatModifier and TypeFieldDescriptionprivate RateStatJobQueueRunner._jobLagStatCached "jobQueue.jobLag" handle, resolved on first use.private RateStatJobQueueRunner._jobRunStatCached "jobQueue.jobRun" handle, resolved on first use.private RateStatJobQueueRunner._jobWaitStatCached "jobQueue.jobWait" handle, resolved on first use.Uses of RateStat in net.i2p.router.networkdb.kademlia
Fields in net.i2p.router.networkdb.kademlia declared as RateStatModifier and TypeFieldDescriptionprivate final RateStat[]FloodfillPeerSelector._failedLookupRateStatSlotRate stat slots for the failed lookups.private final RateStat[]FloodfillPeerSelector._testSuccessTimeStatSlotRate stat slots for the test success times.Methods in net.i2p.router.networkdb.kademlia that return RateStatModifier and TypeMethodDescriptionprivate RateStatFloodfillPeerSelector.getRateStat(RateStat[] slot, String name) Get the RateStat handle, caching it in the slot for subsequent calls.Methods in net.i2p.router.networkdb.kademlia with parameters of type RateStatModifier and TypeMethodDescriptionprivate RateStatFloodfillPeerSelector.getRateStat(RateStat[] slot, String name) Get the RateStat handle, caching it in the slot for subsequent calls.Uses of RateStat in net.i2p.router.peermanager
Fields in net.i2p.router.peermanager declared as RateStatModifier and TypeFieldDescriptionprivate RateStatPeerProfile._dbIntroductionRate stat for netdb introductions.private RateStatPeerProfile._dbResponseTimeRate stat for netdb response times.private final RateStatDBHistory._failedLookupRateRate of the failed lookups.private final RateStatTunnelHistory._failRateRate stat for the failures.private final RateStatDBHistory._invalidReplyRateRate of the invalid replies.private final RateStatTunnelHistory._rejectRateRate stat for the rejections.private RateStatPeerProfile._tunnelCreateResponseTimeRate stat for tunnel build response times.Methods in net.i2p.router.peermanager that return RateStatModifier and TypeMethodDescriptionPeerProfile.getDbIntroduction()How many new peers we get from dbSearchReplyMessages or dbStore messages.PeerProfile.getDbResponseTime()How long it takes to get a DB response from the peer (in milliseconds).DBHistory.getFailedLookupRate()How often this peer failed to answer a NetDb request, in 10 minute and 1 hour periods.TunnelHistory.getFailedRate()Failure rate statistics for this peer.DBHistory.getInvalidReplyRate()Rate at which the peer sends us invalid reply data, to be investigated.TunnelHistory.getRejectionRate()Rejection rate statistics for this peer.PeerProfile.getTunnelCreateResponseTime()How long it takes to get a tunnel create response from the peer (in milliseconds).Methods in net.i2p.router.peermanager with parameters of type RateStatModifier and TypeMethodDescriptionprivate static doubleCapacityCalculator.estimateCapacity(RateStat acceptStat, RateStat rejectStat, RateStat failedStat, int period) Compute a tunnel accept capacity-per-hour for the given period This is perhaps the most critical part of the peer ranking and selection system, so adjust with great care and testing to ensure good network performance and prevent congestion collapse.Uses of RateStat in net.i2p.router.transport.udp
Fields in net.i2p.router.transport.udp declared as RateStatModifier and TypeFieldDescriptionprivate RateStatEstablishmentManager._inboundTokenLifetimeStatCached "udp.inboundTokenLifetime" RateStat handle.Methods in net.i2p.router.transport.udp that return RateStatModifier and TypeMethodDescriptionprivate RateStatEstablishmentManager.inboundTokenLifetimeStat()Resolves the "udp.inboundTokenLifetime" RateStat, caching the handle.Uses of RateStat in net.i2p.router.tunnel
Fields in net.i2p.router.tunnel declared as RateStatModifier and TypeFieldDescriptionprivate final RateStatTunnelDispatcher._dispatchEndpointStatStat for messages we process as a tunnel participant.private final RateStatTunnelDispatcher._dispatchInboundStatStat for messages we process as a tunnel endpoint.private final RateStatTunnelDispatcher._dispatchParticipantStatCached handles for the three per-transit-message counters reported byTunnelDispatcher.dispatch(TunnelDataMessage, Hash)andTunnelDispatcher.dispatch(TunnelGatewayMessage).Uses of RateStat in net.i2p.router.tunnel.pool
Fields in net.i2p.router.tunnel.pool declared as RateStatModifier and TypeFieldDescriptionprivate final RateStat[]TunnelPool._avgBWStatSlotHolds the average bandwidth stat once registered.private final RateStat[]TunnelPool._buildSuccessRateStatSlotHolds the build success rate stat once registered.private static RateStatParticipatingThrottler._bwQueueRateStatRate stat tracking the participation queue.private final RateStat[]TunnelPool._expireStatSlotCached rate-stat handles so per-build lookups skip the StatManager map.private final RateStat[]TunnelPool._rejectStatSlotHolds the rejected-build stat once registered.private final RateStat[]TunnelPool._successStatSlotHolds the successful-build stat once registered.Methods in net.i2p.router.tunnel.pool that return RateStatModifier and TypeMethodDescriptionprivate static RateStatParticipatingThrottler.getBwQueueRateStat(RouterContext context) Resolves the "bwLimiter.participatingBandwidthQueue" RateStat once per context.private RateStatTunnelPool.getRateStat(RateStat[] slot, String name) Get a rate stat, caching the handle so per-build lookups skip the StatManager lookup.Methods in net.i2p.router.tunnel.pool with parameters of type RateStatModifier and TypeMethodDescriptionprivate RateStatTunnelPool.getRateStat(RateStat[] slot, String name) Get a rate stat, caching the handle so per-build lookups skip the StatManager lookup.private booleanTunnelPool.tryLengthOverride(int len, int minLen, int th1, int th2, RateStat e, RateStat r, RateStat s) Whether to shorten the length under extreme stress: enough build tries in the last ten minutes, or the router just installed.Uses of RateStat in net.i2p.stat
Fields in net.i2p.stat declared as RateStatFields in net.i2p.stat with type parameters of type RateStatModifier and TypeFieldDescriptionprivate final ConcurrentHashMap<String, RateStat> StatManager._rateStatsStat name to RateStat.Methods in net.i2p.stat that return RateStatModifier and TypeMethodDescriptionStatManager.getOrCreateRateStat(String name, String description, String group, long[] periods) Resolve a rate stat by name, creating it if it does not exist yet, and return the handle to it.Misnamed, as it returns a RateStat, not a Rate.Rate.getRateStat()Return the rate stat this rate belongs to, or null.Methods in net.i2p.stat with parameters of type RateStatModifier and TypeMethodDescription(package private) booleanRateStat.nameGroupDescEquals(RateStat rs) Whether the other stat shares name, group, and description.voidRate.setRateStat(RateStat rs) The rate stat this rate belongs to.Uses of RateStat in net.i2p.util
Fields in net.i2p.util declared as RateStatModifier and TypeFieldDescriptionprivate static RateStatSystemVersion._cpuLoadStatCached "router.cpuLoad" RateStat handle, or null if unresolved.Methods in net.i2p.util that return RateStatModifier and TypeMethodDescriptionprivate static RateStatSystemVersion.getCpuLoadStat()Resolve and cache the "router.cpuLoad" RateStat handle.