java.lang.Object
net.i2p.router.networkdb.kademlia.PersistentDataStore.RiFlags
Enclosing class:
PersistentDataStore

private static class PersistentDataStore.RiFlagsextends Object
Pre-computed classification flags for a RouterInfo being written.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final String
    Bandwidth class of the router info.
    (package private) final String
    Capabilities string of the router info.
    (package private) final boolean
    True if the router info has an IP.
    (package private) final String
    IP address text of the router info.
    (package private) final boolean
    True if the router is banned.
    (package private) final boolean
    True if the router is degraded.
    (package private) final boolean
    True if the version string is invalid.
    (package private) final boolean
    True if the router is in the L tier.
    (package private) final boolean
    True if the router info is old.
    (package private) final boolean
    True if the router is in the S tier.
    (package private) final String
    Our IP as the peer sees it.
    (package private) final boolean
    True if the router was marked reachable.
    (package private) final boolean
    True if the router was marked unreachable.
    (package private) final String
    Version string of the router info.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RiFlags(String version, String caps, String bw, String ip, String ourIP, boolean hasIP, boolean unreachable, boolean reachable, boolean isOld, boolean isInvalidVersion, boolean isLTier, boolean isSlow, boolean isDegraded, boolean isBanned)
    Records the searchable fields of a router info.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • version

      final String version
      Version string of the router info.
    • caps

      final String caps
      Capabilities string of the router info.
    • bw

      final String bw
      Bandwidth class of the router info.
    • ip

      final String ip
      IP address text of the router info.
    • ourIP

      final String ourIP
      Our IP as the peer sees it.
    • hasIP

      final boolean hasIP
      True if the router info has an IP.
    • unreachable

      final boolean unreachable
      True if the router was marked unreachable.
    • reachable

      final boolean reachable
      True if the router was marked reachable.
    • isOld

      final boolean isOld
      True if the router info is old.
    • isInvalidVersion

      final boolean isInvalidVersion
      True if the version string is invalid.
    • isLTier

      final boolean isLTier
      True if the router is in the L tier.
    • isSlow

      final boolean isSlow
      True if the router is in the S tier.
    • isDegraded

      final boolean isDegraded
      True if the router is degraded.
    • isBanned

      final boolean isBanned
      True if the router is banned.
  • Constructor Details

    • RiFlags

      RiFlags(String version, String caps, String bw, String ip, String ourIP, boolean hasIP, boolean unreachable, boolean reachable, boolean isOld, boolean isInvalidVersion, boolean isLTier, boolean isSlow, boolean isDegraded, boolean isBanned)
      Records the searchable fields of a router info.
      Parameters:
      version - the version string
      caps - the capabilities string
      bw - the bandwidth class
      ip - the IP address text
      ourIP - our IP as the peer sees it
      hasIP - true if the router info has an IP
      unreachable - true if the router was marked unreachable
      reachable - true if the router was marked reachable
      isOld - true if the router info is old
      isInvalidVersion - true if the version is invalid
      isLTier - true if the router is in the L tier
      isSlow - true if the router is in the S tier
      isDegraded - true if the router is degraded
      isBanned - true if the router is banned