java.io.Serializable, java.lang.Comparable<HostStatus>public enum HostStatus extends java.lang.Enum<HostStatus>
| Enum Constant | Description |
|---|---|
ConnectFail |
|
ConnectOK |
|
Master |
|
Secondary |
| Modifier and Type | Method | Description |
|---|---|---|
static HostStatus |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static HostStatus[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HostStatus ConnectFail
public static final HostStatus ConnectOK
public static final HostStatus Master
public static final HostStatus Secondary
public static HostStatus[] values()
for (HostStatus c : HostStatus.values()) System.out.println(c);
public static HostStatus 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 nullCopyright © 2018 PostgreSQL Global Development Group. All rights reserved.