public enum HostRequirement extends Enum<HostRequirement>
| Enum Constant and Description |
|---|
any |
master |
preferSlave |
slave |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
allowConnectingTo(HostStatus status) |
static HostRequirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HostRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HostRequirement any
public static final HostRequirement master
public static final HostRequirement slave
public static final HostRequirement preferSlave
public static HostRequirement[] values()
for (HostRequirement c : HostRequirement.values()) System.out.println(c);
public static HostRequirement 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 abstract boolean allowConnectingTo(HostStatus status)
Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.