public static enum DefaultConnectivityResolver.NetworkMode extends java.lang.Enum<DefaultConnectivityResolver.NetworkMode>
Enum Constant and Description |
---|
ONLY_PRIVATE
Check only a node's
NodeMetadata.getPrivateAddresses() private addresses} for reachability. |
ONLY_PUBLIC
Check only a node's
public addresses for reachability. |
PREFER_PRIVATE
Check each node's
private addresses
for reachability before its public addresses . |
PREFER_PUBLIC
Check each node's
public addresses
for reachability before its private addresses . |
Modifier and Type | Method and Description |
---|---|
static DefaultConnectivityResolver.NetworkMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultConnectivityResolver.NetworkMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultConnectivityResolver.NetworkMode PREFER_PUBLIC
public addresses
for reachability before its private addresses
.public static final DefaultConnectivityResolver.NetworkMode PREFER_PRIVATE
private addresses
for reachability before its public addresses
.public static final DefaultConnectivityResolver.NetworkMode ONLY_PUBLIC
public addresses
for reachability.public static final DefaultConnectivityResolver.NetworkMode ONLY_PRIVATE
NodeMetadata.getPrivateAddresses()
private addresses} for reachability.public static DefaultConnectivityResolver.NetworkMode[] values()
for (DefaultConnectivityResolver.NetworkMode c : DefaultConnectivityResolver.NetworkMode.values()) System.out.println(c);
public static DefaultConnectivityResolver.NetworkMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null