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

public static enum CommSystemFacade.Statusextends Enum<CommSystemFacade.Status>
Network connectivity status enumeration for IPv4 and IPv6 transport capabilities. Represents firewall status, NAT configuration, and transport readiness for tunnel participation. Since codes may change.
  • Enum Constant Details

    • OK

      public static final CommSystemFacade.Status OK
      IPv4 OK, IPv6 OK or disabled or no address.
    • IPV4_OK_IPV6_UNKNOWN

      public static final CommSystemFacade.Status IPV4_OK_IPV6_UNKNOWN
      IPv4 OK, IPv6 connectivity testing.
    • IPV4_OK_IPV6_FIREWALLED

      public static final CommSystemFacade.Status IPV4_OK_IPV6_FIREWALLED
      IPv4 OK, IPv6 firewalled.
    • IPV4_UNKNOWN_IPV6_OK

      public static final CommSystemFacade.Status IPV4_UNKNOWN_IPV6_OK
      IPv4 connectivity testing, IPv6 OK.
    • IPV4_FIREWALLED_IPV6_OK

      public static final CommSystemFacade.Status IPV4_FIREWALLED_IPV6_OK
      IPv4 firewalled, IPv6 OK.
    • IPV4_DISABLED_IPV6_OK

      public static final CommSystemFacade.Status IPV4_DISABLED_IPV6_OK
      IPv4 disabled, IPv6 OK.
    • IPV4_SNAT_IPV6_OK

      public static final CommSystemFacade.Status IPV4_SNAT_IPV6_OK
      IPv4 symmetric NAT (not source NAT).
    • DIFFERENT

      public static final CommSystemFacade.Status DIFFERENT
      IPv4 symmetric NAT, IPv6 firewalled or disabled or no address.
    • IPV4_SNAT_IPV6_UNKNOWN

      public static final CommSystemFacade.Status IPV4_SNAT_IPV6_UNKNOWN
      IPv4 symmetric NAT (not source NAT).
    • IPV4_FIREWALLED_IPV6_UNKNOWN

      public static final CommSystemFacade.Status IPV4_FIREWALLED_IPV6_UNKNOWN
      IPv4 firewalled, IPv6 connectivity testing.
    • REJECT_UNSOLICITED

      public static final CommSystemFacade.Status REJECT_UNSOLICITED
      IPv4 firewalled, IPv6 firewalled or disabled or no address.
    • IPV4_UNKNOWN_IPV6_FIREWALLED

      public static final CommSystemFacade.Status IPV4_UNKNOWN_IPV6_FIREWALLED
      IPv4 connectivity testing, IPv6 firewalled.
    • IPV4_DISABLED_IPV6_UNKNOWN

      public static final CommSystemFacade.Status IPV4_DISABLED_IPV6_UNKNOWN
      IPv4 disabled, IPv6 connectivity testing.
    • IPV4_DISABLED_IPV6_FIREWALLED

      public static final CommSystemFacade.Status IPV4_DISABLED_IPV6_FIREWALLED
      IPv4 disabled, IPv6 firewalled.
    • DISCONNECTED

      public static final CommSystemFacade.Status DISCONNECTED
      No network interface available on any transport.
    • HOSED

      public static final CommSystemFacade.Status HOSED
      Transport detection failure, SSU bind port conflict.
    • UNKNOWN

      public static final CommSystemFacade.Status UNKNOWN
      Reachability has not been determined on any transport.
  • Field Details

    • code

      private final int code
      Number for this status.
    • status

      private final String status
      Text describing the status.
  • Constructor Details

    • Status

      private Status(int code, String status)
      Creates a status with the given code and text.
      Parameters:
      code - the integer status code
      status - the human-readable status string
  • Method Details

    • values

      public static CommSystemFacade.Status[] 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 CommSystemFacade.Status 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
    • getCode

      public int getCode()
      Get the integer code for this reachability status.
      Returns:
      the integer status code
    • merge

      public static CommSystemFacade.Status merge(CommSystemFacade.Status oldStatus, CommSystemFacade.Status newStatus)
      Merge the new status with the old status, producing the best combined estimate.
      Parameters:
      oldStatus - the previous status
      newStatus - the newly observed status
      Returns:
      the merged status reflecting both observations
    • toStatusString

      public String toStatusString()
      Readable status, not translated.
      Returns:
      the status as a human readable string
    • toLocalizedStatusString

      public String toLocalizedStatusString(I2PAppContext ctx)
      Status string translated to the current language if available.
      Parameters:
      ctx - the context for translation lookup
      Returns:
      translated status string
    • toString

      public String toString()
      String representation of this status.
      Overrides:
      toString in class Enum<CommSystemFacade.Status>
    • _x

      private static String _x(String s)
      Tag for translation.
      Parameters:
      s - the string to mark for extraction
      Returns:
      the string, unchanged and untranslated