Packages that use HostChecker.PingResult
Package
Description
Address book application for fetching and maintaining I2P host databases from subscription sources.
Uses of HostChecker.PingResult in net.i2p.addressbook
Fields in net.i2p.addressbook with type parameters of type HostChecker.PingResultModifier and TypeFieldDescriptionprivate final Map<String, HostChecker.PingResult> HostChecker._pingResultsLatest ping result by host name.private static final Comparator<Map.Entry<String, HostChecker.PingResult>> HostChecker.PING_TIMESTAMP_COMPARATORSorts ping results by timestamp, oldest first.Methods in net.i2p.addressbook that return HostChecker.PingResultModifier and TypeMethodDescriptionprivate HostChecker.PingResultHostChecker.createPingResult(boolean reachable, long timestamp, long responseTime, String hostname) Helper method to create PingResult with category.private HostChecker.PingResultHostChecker.createPingResult(boolean reachable, long timestamp, long responseTime, String hostname, String leaseSetTypes) Helper method to create PingResult with category and leaseSetTypes.private HostChecker.PingResultHostChecker.fallbackToEepHead(String hostname, long startTime) Fallback method to useEepHeadfor HTTP HEAD request testing Marks site as up if any response is received.private HostChecker.PingResultHostChecker.fallbackToEepHead(String hostname, long startTime, String leaseSetTypes, boolean saveResult) Fallback method to use EepHead for HTTP HEAD request testing Marks site as up if any response is received.HostChecker.getPingResult(String hostname) Get ping result for a hostname.private HostChecker.PingResultHostChecker.lookupLeaseSetRemotely(String hostname, Hash destHash, long startTime, long existingResponseTime) Perform remote LeaseSet lookup via floodfill network and record the result.private HostChecker.PingResultHostChecker.performLeaseSetLookup(String hostname, Destination destination) Perform LeaseSet lookup as the first check Any cached LeaseSet marks the host up directly — even an expired one proves the host exists.private HostChecker.PingResultHostChecker.pingDestination(String hostname, Destination destination) Ping destination using single tunnel and I2Ping-style retry handling Falls back to EepHead HTTP HEAD request if ping fails, accepts leaseSetTypes parameter.private HostChecker.PingResultHostChecker.pingDestination(String hostname, Destination destination, String leaseSetTypes) Ping destination using single tunnel and I2Ping-style retry handling Falls back to EepHead HTTP HEAD request if ping fails, accepts leaseSetTypes parameter.private HostChecker.PingResultHostChecker.pingDestination(String hostname, Destination destination, String leaseSetTypes, boolean saveResult) Ping destination using single tunnel and I2Ping-style retry handling Falls back to EepHead HTTP HEAD request if ping fails, accepts leaseSetTypes parameter.private HostChecker.PingResultHostChecker.retainRecentUp(String hostname, long now) If the host was confirmed up within the last 24h, keep it up when the current cycle can't fetch its LeaseSet - an unverifiable host is not a confirmed-down host.HostChecker.testDestination(String hostname) Test a single destination immediately If LeaseSet lookup succeeds, we don't overwrite the result with failed ping/eephead.Methods in net.i2p.addressbook that return types with arguments of type HostChecker.PingResultModifier and TypeMethodDescriptionHostChecker.getAllPingResults()Get all ping results.static Map<String, HostChecker.PingResult> HostCheckerBridge.getAllPingResults()Get all current ping results.