| Package | Description |
|---|---|
| com.orbitz.consul | |
| com.orbitz.consul.cache | |
| com.orbitz.consul.model.health | |
| com.orbitz.consul.model.query |
| Modifier and Type | Method and Description |
|---|---|
ConsulResponse<List<ServiceHealth>> |
HealthClient.getAllServiceInstances(String service)
Retrieves the healthchecks for all nodes.
|
ConsulResponse<List<ServiceHealth>> |
HealthClient.getAllServiceInstances(String service,
QueryOptions queryOptions)
Retrieves the healthchecks for all nodes in a given datacenter with
QueryOptions. |
ConsulResponse<List<ServiceHealth>> |
HealthClient.getHealthyServiceInstances(String service)
Retrieves the healthchecks for all healthy service instances.
|
ConsulResponse<List<ServiceHealth>> |
HealthClient.getHealthyServiceInstances(String service,
QueryOptions queryOptions)
Retrieves the healthchecks for all healthy service instances in a given datacenter with
QueryOptions. |
| Modifier and Type | Method and Description |
|---|---|
void |
HealthClient.getAllServiceInstances(String service,
QueryOptions queryOptions,
ConsulResponseCallback<List<ServiceHealth>> callback)
Asynchronously retrieves the healthchecks for all nodes in a given
datacenter with
QueryOptions. |
void |
HealthClient.getHealthyServiceInstances(String service,
QueryOptions queryOptions,
ConsulResponseCallback<List<ServiceHealth>> callback)
Asynchronously retrieves the healthchecks for all healthy service instances in a given
datacenter with
QueryOptions. |
| Modifier and Type | Method and Description |
|---|---|
static ServiceHealthKey |
ServiceHealthKey.fromServiceHealth(ServiceHealth serviceHealth) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceHealthCache |
ServiceHealthCache.newCache(HealthClient healthClient,
String serviceName,
boolean passing,
int watchSeconds,
QueryOptions queryOptions,
Function<ServiceHealth,ServiceHealthKey> keyExtractor)
Factory method to construct a string/
ServiceHealth map for a particular service. |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableServiceHealth
Immutable implementation of
ServiceHealth. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableServiceHealth |
ImmutableServiceHealth.copyOf(ServiceHealth instance)
Creates an immutable copy of a
ServiceHealth value. |
ImmutableServiceHealth.Builder |
ImmutableServiceHealth.Builder.from(ServiceHealth instance)
Fill a builder with attribute values from the provided
ServiceHealth instance. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<ServiceHealth> |
ImmutableQueryResults.nodes() |
abstract List<ServiceHealth> |
QueryResults.nodes() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableQueryResults.Builder |
ImmutableQueryResults.Builder.addNodes(ServiceHealth... elements)
Adds elements to
nodes list. |
ImmutableQueryResults.Builder |
ImmutableQueryResults.Builder.addNodes(ServiceHealth element)
Adds one element to
nodes list. |
ImmutableQueryResults |
ImmutableQueryResults.withNodes(ServiceHealth... elements)
Copy the current immutable object with elements that replace the content of
nodes. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableQueryResults.Builder |
ImmutableQueryResults.Builder.addAllNodes(Iterable<? extends ServiceHealth> elements)
Adds elements to
nodes list. |
ImmutableQueryResults.Builder |
ImmutableQueryResults.Builder.nodes(Iterable<? extends ServiceHealth> elements)
Sets or replaces all elements for
nodes list. |
ImmutableQueryResults |
ImmutableQueryResults.withNodes(Iterable<? extends ServiceHealth> elements)
Copy the current immutable object with elements that replace the content of
nodes. |
Copyright © 2019. All rights reserved.