- All Implemented Interfaces:
Serializable, Comparable<CommSystemFacade.Status>, java.lang.constant.Constable
- Enclosing class:
CommSystemFacade
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.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIPv4 symmetric NAT, IPv6 firewalled or disabled or no address.No network interface available on any transport.Transport detection failure, SSU bind port conflict.IPv4 disabled, IPv6 firewalled.IPv4 disabled, IPv6 OK.IPv4 disabled, IPv6 connectivity testing.IPv4 firewalled, IPv6 OK.IPv4 firewalled, IPv6 connectivity testing.IPv4 OK, IPv6 firewalled.IPv4 OK, IPv6 connectivity testing.IPv4 symmetric NAT (not source NAT).IPv4 symmetric NAT (not source NAT).IPv4 connectivity testing, IPv6 firewalled.IPv4 connectivity testing, IPv6 OK.IPv4 OK, IPv6 OK or disabled or no address.IPv4 firewalled, IPv6 firewalled or disabled or no address.Reachability has not been determined on any transport.Field Summary
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionprivate static StringTag for translation.intgetCode()Get the integer code for this reachability status.static CommSystemFacade.Statusmerge(CommSystemFacade.Status oldStatus, CommSystemFacade.Status newStatus) Merge the new status with the old status, producing the best combined estimate.Status string translated to the current language if available.Readable status, not translated.toString()String representation of this status.static CommSystemFacade.StatusReturns the enum constant of this class with the specified name.static CommSystemFacade.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
Enum Constant Details
OK
IPv4 OK, IPv6 OK or disabled or no address.IPV4_OK_IPV6_UNKNOWN
IPv4 OK, IPv6 connectivity testing.IPV4_OK_IPV6_FIREWALLED
IPv4 OK, IPv6 firewalled.IPV4_UNKNOWN_IPV6_OK
IPv4 connectivity testing, IPv6 OK.IPV4_FIREWALLED_IPV6_OK
IPv4 firewalled, IPv6 OK.IPV4_DISABLED_IPV6_OK
IPv4 disabled, IPv6 OK.IPV4_SNAT_IPV6_OK
IPv4 symmetric NAT (not source NAT).DIFFERENT
IPv4 symmetric NAT, IPv6 firewalled or disabled or no address.IPV4_SNAT_IPV6_UNKNOWN
IPv4 symmetric NAT (not source NAT).IPV4_FIREWALLED_IPV6_UNKNOWN
IPv4 firewalled, IPv6 connectivity testing.REJECT_UNSOLICITED
IPv4 firewalled, IPv6 firewalled or disabled or no address.IPV4_UNKNOWN_IPV6_FIREWALLED
IPv4 connectivity testing, IPv6 firewalled.IPV4_DISABLED_IPV6_UNKNOWN
IPv4 disabled, IPv6 connectivity testing.IPV4_DISABLED_IPV6_FIREWALLED
IPv4 disabled, IPv6 firewalled.DISCONNECTED
No network interface available on any transport.HOSED
Transport detection failure, SSU bind port conflict.UNKNOWN
Reachability has not been determined on any transport.
Field Details
code
private final int codeNumber for this status.status
Text describing the status.
Constructor Details
Status
Creates a status with the given code and text.- Parameters:
code- the integer status codestatus- the human-readable status string
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
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 statusnewStatus- the newly observed status- Returns:
- the merged status reflecting both observations
toStatusString
Readable status, not translated.- Returns:
- the status as a human readable string
toLocalizedStatusString
Status string translated to the current language if available.- Parameters:
ctx- the context for translation lookup- Returns:
- translated status string
toString
String representation of this status.- Overrides:
toStringin classEnum<CommSystemFacade.Status>
_x