Package net.i2p.router
Enum CommSystemFacade.Status
- All Implemented Interfaces:
Serializable,Comparable<CommSystemFacade.Status>,java.lang.constant.Constable
- Enclosing class:
- CommSystemFacade
public static enum CommSystemFacade.Status extends Enum<CommSystemFacade.Status>
Since the codes may change.
- Since:
- 0.9.20
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DIFFERENTIPv4 symmetric NAT, IPv6 firewalled or disabled or no addressDISCONNECTEDHOSEDIPV4_DISABLED_IPV6_FIREWALLEDIPV4_DISABLED_IPV6_OKIPV4_DISABLED_IPV6_UNKNOWNIPV4_FIREWALLED_IPV6_OKIPV4_FIREWALLED_IPV6_UNKNOWNIPV4_OK_IPV6_FIREWALLEDIPV4_OK_IPV6_UNKNOWNIPV4_SNAT_IPV6_OKIPV4_SNAT_IPV6_UNKNOWNIPV4_UNKNOWN_IPV6_FIREWALLEDIPV4_UNKNOWN_IPV6_OKOKIPv4 OK, IPv6 OK or disabled or no addressREJECT_UNSOLICITEDIPv4 firewalled, IPv6 firewalled or disabled or no addressUNKNOWN -
Method Summary
Modifier and Type Method Description intgetCode()static CommSystemFacade.Statusmerge(CommSystemFacade.Status oldStatus, CommSystemFacade.Status newStatus)merge the new Status with the old StatusStringtoLocalizedStatusString(I2PAppContext ctx)toStatusString(), translated if available.StringtoStatusString()Readable status, not translatedStringtoString()static CommSystemFacade.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static CommSystemFacade.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OK
IPv4 OK, IPv6 OK or disabled or no address -
IPV4_OK_IPV6_UNKNOWN
-
IPV4_OK_IPV6_FIREWALLED
-
IPV4_UNKNOWN_IPV6_OK
-
IPV4_FIREWALLED_IPV6_OK
-
IPV4_DISABLED_IPV6_OK
-
IPV4_SNAT_IPV6_OK
-
DIFFERENT
IPv4 symmetric NAT, IPv6 firewalled or disabled or no address -
IPV4_SNAT_IPV6_UNKNOWN
-
IPV4_FIREWALLED_IPV6_UNKNOWN
-
REJECT_UNSOLICITED
IPv4 firewalled, IPv6 firewalled or disabled or no address -
IPV4_UNKNOWN_IPV6_FIREWALLED
-
IPV4_DISABLED_IPV6_UNKNOWN
-
IPV4_DISABLED_IPV6_FIREWALLED
-
DISCONNECTED
-
HOSED
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode() -
merge
public static CommSystemFacade.Status merge(CommSystemFacade.Status oldStatus, CommSystemFacade.Status newStatus)merge the new Status with the old Status -
toStatusString
Readable status, not translated -
toLocalizedStatusString
toStatusString(), translated if available.- Since:
- 0.9.45
-
toString
- Overrides:
toStringin classEnum<CommSystemFacade.Status>
-