java.lang.Object
net.i2p.router.networkdb.kademlia.PersistentDataStore.RiFlags
- Enclosing class:
PersistentDataStore
Pre-computed classification flags for a RouterInfo being written.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final StringBandwidth class of the router info.(package private) final StringCapabilities string of the router info.(package private) final booleanTrue if the router info has an IP.(package private) final StringIP address text of the router info.(package private) final booleanTrue if the router is banned.(package private) final booleanTrue if the router is degraded.(package private) final booleanTrue if the version string is invalid.(package private) final booleanTrue if the router is in the L tier.(package private) final booleanTrue if the router info is old.(package private) final booleanTrue if the router is in the S tier.(package private) final StringOur IP as the peer sees it.(package private) final booleanTrue if the router was marked reachable.(package private) final booleanTrue if the router was marked unreachable.(package private) final StringVersion string of the router info.Constructor Summary
ConstructorsConstructorDescriptionRiFlags(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
Field Details
version
Version string of the router info.caps
Capabilities string of the router info.bw
Bandwidth class of the router info.ip
IP address text of the router info.ourIP
Our IP as the peer sees it.hasIP
final boolean hasIPTrue if the router info has an IP.unreachable
final boolean unreachableTrue if the router was marked unreachable.reachable
final boolean reachableTrue if the router was marked reachable.isOld
final boolean isOldTrue if the router info is old.isInvalidVersion
final boolean isInvalidVersionTrue if the version string is invalid.isLTier
final boolean isLTierTrue if the router is in the L tier.isSlow
final boolean isSlowTrue if the router is in the S tier.isDegraded
final boolean isDegradedTrue if the router is degraded.isBanned
final boolean isBannedTrue 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 stringcaps- the capabilities stringbw- the bandwidth classip- the IP address textourIP- our IP as the peer sees ithasIP- true if the router info has an IPunreachable- true if the router was marked unreachablereachable- true if the router was marked reachableisOld- true if the router info is oldisInvalidVersion- true if the version is invalidisLTier- true if the router is in the L tierisSlow- true if the router is in the S tierisDegraded- true if the router is degradedisBanned- true if the router is banned