Package | Description |
---|---|
org.postgresql.hostchooser |
Modifier and Type | Field and Description |
---|---|
private HostRequirement |
MultiHostChooser.targetServerType |
HostRequirement |
CandidateHost.targetServerType |
Modifier and Type | Method and Description |
---|---|
static HostRequirement |
HostRequirement.getTargetServerType(java.lang.String targetServerType)
The postgreSQL project has decided not to use the term slave to refer to alternate servers.
|
static HostRequirement |
HostRequirement.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HostRequirement[] |
HostRequirement.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static HostChooser |
HostChooserFactory.createHostChooser(HostSpec[] hostSpecs,
HostRequirement targetServerType,
java.util.Properties info) |
private java.util.List<CandidateHost> |
MultiHostChooser.getCandidateHosts(HostRequirement hostRequirement) |
(package private) static java.util.List<HostSpec> |
GlobalHostStatusTracker.getCandidateHosts(HostSpec[] hostSpecs,
HostRequirement targetServerType,
long hostRecheckMillis)
Returns a list of candidate hosts that have the required targetServerType.
|
private java.util.List<CandidateHost> |
MultiHostChooser.withReqStatus(HostRequirement requirement,
java.util.List<HostSpec> hosts) |
Constructor and Description |
---|
CandidateHost(HostSpec hostSpec,
HostRequirement targetServerType) |
MultiHostChooser(HostSpec[] hostSpecs,
HostRequirement targetServerType,
java.util.Properties info) |
SingleHostChooser(HostSpec hostSpec,
HostRequirement targetServerType) |