java.lang.Object
java.lang.Enum<GraphGenerator.HealAction>
net.i2p.router.web.GraphGenerator.HealAction
All Implemented Interfaces:
Serializable, Comparable<GraphGenerator.HealAction>, java.lang.constant.Constable
Enclosing class:
GraphGenerator

static enum GraphGenerator.HealActionextends Enum<GraphGenerator.HealAction>
What the watchdog may do about one rate's listener.

Ordered by cost, and the order is the whole point: every rung keeps more of the existing recording than the one above it.

  • Enum Constant Details

    • NONE

      public static final GraphGenerator.HealAction NONE
      Healthy, or nothing worth doing.
    • REARM

      public static final GraphGenerator.HealAction REARM
      The Rate no longer points at this listener but the listener itself is fine.

      Never returned: a lost registration is repaired by REBUILD, which also covers a listener that was never attached in the first place. Re-pointing the Rate at a listener another instance may have claimed would make two listeners fight over one registration, so the constant is kept for the ladder's shape and is deliberately not a rung.

    • REOPEN

      public static final GraphGenerator.HealAction REOPEN
      The handle is closed but the listener, registration and file all survive.
    • BACKFILL

      public static final GraphGenerator.HealAction BACKFILL
      Coalesces produced steps this listener never stored, and they are still retained.
    • REBUILD

      public static final GraphGenerator.HealAction REBUILD
      Nothing usable is left; build a fresh listener from the same file.
  • Method Details

    • values

      public static GraphGenerator.HealAction[] 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

      public static GraphGenerator.HealAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null