public static enum CommSystemFacade.Status extends Enum<CommSystemFacade.Status>
| Enum Constant and Description |
|---|
DIFFERENTIPv4 symmetric NAT, IPv6 firewalled or disabled or no address |
DISCONNECTEDNo network interface available on any transport |
HOSEDTransport detection failure, SSU bind port conflict |
IPV4_DISABLED_IPV6_FIREWALLEDIPv4 disabled, IPv6 firewalled |
IPV4_DISABLED_IPV6_OKIPv4 disabled, IPv6 OK |
IPV4_DISABLED_IPV6_UNKNOWNIPv4 disabled, IPv6 connectivity testing |
IPV4_FIREWALLED_IPV6_OKIPv4 firewalled, IPv6 OK |
IPV4_FIREWALLED_IPV6_UNKNOWNIPv4 firewalled, IPv6 connectivity testing |
IPV4_OK_IPV6_FIREWALLEDIPv4 OK, IPv6 firewalled |
IPV4_OK_IPV6_UNKNOWNIPv4 OK, IPv6 connectivity testing |
IPV4_SNAT_IPV6_OKIPv4 symmetric NAT (not source NAT) |
IPV4_SNAT_IPV6_UNKNOWNIPv4 symmetric NAT (not source NAT) |
IPV4_UNKNOWN_IPV6_FIREWALLEDIPv4 connectivity testing, IPv6 firewalled |
IPV4_UNKNOWN_IPV6_OKIPv4 connectivity testing, IPv6 OK |
OKIPv4 OK, IPv6 OK or disabled or no address |
REJECT_UNSOLICITEDIPv4 firewalled, IPv6 firewalled or disabled or no address |
UNKNOWNReachability has not been determined on any transport |
| Modifier and Type | Method and Description |
|---|---|
int | getCode()Get the integer code for this reachability status. |
static CommSystemFacade.Status | merge(CommSystemFacade.Status oldStatus,
CommSystemFacade.Status newStatus)Merge the new status with the old status, producing the best combined estimate. |
String | toLocalizedStatusString(I2PAppContext ctx)toStatusString(), translated if available. |
String | toStatusString()Readable status, not translated |
String | toString()toString. |
static CommSystemFacade.Status | valueOf(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. |
public static final CommSystemFacade.Status DIFFERENT
public static final CommSystemFacade.Status DISCONNECTED
public static final CommSystemFacade.Status HOSED
public static final CommSystemFacade.Status IPV4_DISABLED_IPV6_FIREWALLED
public static final CommSystemFacade.Status IPV4_DISABLED_IPV6_OK
public static final CommSystemFacade.Status IPV4_DISABLED_IPV6_UNKNOWN
public static final CommSystemFacade.Status IPV4_FIREWALLED_IPV6_OK
public static final CommSystemFacade.Status IPV4_FIREWALLED_IPV6_UNKNOWN
public static final CommSystemFacade.Status IPV4_OK_IPV6_FIREWALLED
public static final CommSystemFacade.Status IPV4_OK_IPV6_UNKNOWN
public static final CommSystemFacade.Status IPV4_SNAT_IPV6_OK
public static final CommSystemFacade.Status IPV4_SNAT_IPV6_UNKNOWN
public static final CommSystemFacade.Status IPV4_UNKNOWN_IPV6_FIREWALLED
public static final CommSystemFacade.Status IPV4_UNKNOWN_IPV6_OK
public static final CommSystemFacade.Status OK
public static final CommSystemFacade.Status REJECT_UNSOLICITED
public static final CommSystemFacade.Status UNKNOWN
public int getCode()
public static CommSystemFacade.Status merge(CommSystemFacade.Status oldStatus, CommSystemFacade.Status newStatus)
oldStatus - the previous statusnewStatus - the newly observed statuspublic String toLocalizedStatusString(I2PAppContext ctx)
ctx - the context for translation lookuppublic String toStatusString()
public String toString()
toString in class Enum<CommSystemFacade.Status>public static CommSystemFacade.Status valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CommSystemFacade.Status[] values()
for (CommSystemFacade.Status c : CommSystemFacade.Status.values()) System.out.println(c);