- All Implemented Interfaces:
Serializable, Comparable<ProfileOrganizer.PurgeReason>, java.lang.constant.Constable
- Enclosing class:
ProfileOrganizer
Why a peer was evicted from a tier.
Carries a stable lowercase key for the stat name. The whole point of counting these is to compare them across cycles, and a message that embeds a peer hash or a peer count would make every cycle a new stat name.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeclines too many of our tunnel requests.On the banlist, so never selectable again.Sustained recent build or test failures, or inside loss probation.No longer qualifies for this tier's bandwidth class.The transport cannot currently reach it.Method Summary
Modifier and TypeMethodDescription(package private) StringgetKey()The stat-name suffix identifying this reason.static ProfileOrganizer.PurgeReasonReturns the enum constant of this class with the specified name.static ProfileOrganizer.PurgeReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
BANNED
On the banlist, so never selectable again. Applies at any tier size.UNREACHABLE
The transport cannot currently reach it. Applies at any tier size.NOT_CAPABLE
No longer qualifies for this tier's bandwidth class. Applies at any tier size.FAILURES
Sustained recent build or test failures, or inside loss probation. Soft.ACCEPTANCE
Declines too many of our tunnel requests. Soft.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
getKey
String getKey()The stat-name suffix identifying this reason.- Returns:
- the lowercase key used in
peer.tierEvicted.<key>