| Package | Description |
|---|---|
| com.orbitz.consul | |
| com.orbitz.consul.cache | |
| com.orbitz.consul.model |
| Modifier and Type | Method and Description |
|---|---|
void |
AgentClient.check(String checkId,
State state,
String note)
Checks in with Consul.
|
void |
AgentClient.checkTtl(String serviceId,
State state,
String note)
Prepends the default TTL prefix to the serviceId to produce a check id,
then delegates to check(String checkId, State state, String note)
This method only works with TTL checks that have not been given a custom
name.
|
ConsulResponse<List<HealthCheck>> |
HealthClient.getChecksByState(State state)
Retrieves the healthchecks for a state.
|
ConsulResponse<List<HealthCheck>> |
HealthClient.getChecksByState(State state,
QueryOptions queryOptions)
Retrieves the healthchecks for a state in a given datacenter with
QueryOptions. |
void |
HealthClient.getChecksByState(State state,
QueryOptions queryOptions,
ConsulResponseCallback<List<HealthCheck>> callback)
Asynchronously retrieves the healthchecks for a state in a given datacenter with
QueryOptions. |
| Modifier and Type | Method and Description |
|---|---|
static HealthCheckCache |
HealthCheckCache.newCache(HealthClient healthClient,
State state) |
static HealthCheckCache |
HealthCheckCache.newCache(HealthClient healthClient,
State state,
int watchSeconds) |
static HealthCheckCache |
HealthCheckCache.newCache(HealthClient healthClient,
State state,
int watchSeconds,
QueryOptions queryOptions) |
static HealthCheckCache |
HealthCheckCache.newCache(HealthClient healthClient,
State state,
int watchSeconds,
QueryOptions queryOptions,
Function<HealthCheck,String> keyExtractor)
Factory method to construct a string/
HealthCheck map for a particular State. |
| Modifier and Type | Method and Description |
|---|---|
static State |
State.fromName(String name)
Returns the appropriate
State given the
name. |
static State |
State.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
State.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2018. All rights reserved.