| Package | Description |
|---|---|
| com.orbitz.consul | |
| com.orbitz.consul.model.agent |
| Modifier and Type | Method and Description |
|---|---|
void |
AgentClient.register(int port,
Registration.RegCheck check,
String name,
String id,
List<String> tags,
Map<String,String> meta)
Registers the client as a service with Consul with an existing
Registration.RegCheck |
| Modifier and Type | Method and Description |
|---|---|
void |
AgentClient.register(int port,
List<Registration.RegCheck> checks,
String name,
String id,
List<String> tags,
Map<String,String> meta)
Registers the client as a service with Consul with multiple checks
|
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableRegCheck
Immutable implementation of
Registration.RegCheck. |
| Modifier and Type | Method and Description |
|---|---|
static Registration.RegCheck |
Registration.RegCheck.args(List<String> args,
long interval) |
static Registration.RegCheck |
Registration.RegCheck.args(List<String> args,
long interval,
long timeout) |
static Registration.RegCheck |
Registration.RegCheck.args(List<String> args,
long interval,
long timeout,
String notes) |
static Registration.RegCheck |
Registration.RegCheck.grpc(String grpc,
long interval) |
static Registration.RegCheck |
Registration.RegCheck.grpc(String grpc,
long interval,
boolean useTls) |
static Registration.RegCheck |
Registration.RegCheck.http(String http,
long interval) |
static Registration.RegCheck |
Registration.RegCheck.http(String http,
long interval,
long timeout) |
static Registration.RegCheck |
Registration.RegCheck.http(String http,
long interval,
long timeout,
String notes) |
static Registration.RegCheck |
Registration.RegCheck.tcp(String tcp,
long interval) |
static Registration.RegCheck |
Registration.RegCheck.tcp(String tcp,
long interval,
long timeout) |
static Registration.RegCheck |
Registration.RegCheck.tcp(String tcp,
long interval,
long timeout,
String notes) |
static Registration.RegCheck |
Registration.RegCheck.ttl(long ttl) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Registration.RegCheck> |
ImmutableRegistration.getCheck() |
abstract Optional<Registration.RegCheck> |
Registration.getCheck() |
com.google.common.collect.ImmutableList<Registration.RegCheck> |
ImmutableRegistration.getChecks() |
abstract List<Registration.RegCheck> |
Registration.getChecks() |
| Modifier and Type | Method and Description |
|---|---|
ImmutableRegistration.Builder |
ImmutableRegistration.Builder.addChecks(Registration.RegCheck... elements)
Adds elements to
checks list. |
ImmutableRegistration.Builder |
ImmutableRegistration.Builder.addChecks(Registration.RegCheck element)
Adds one element to
checks list. |
ImmutableRegistration.Builder |
ImmutableRegistration.Builder.check(Registration.RegCheck check)
Initializes the optional value
check to check. |
static ImmutableRegCheck |
ImmutableRegCheck.copyOf(Registration.RegCheck instance)
Creates an immutable copy of a
Registration.RegCheck value. |
ImmutableRegCheck.Builder |
ImmutableRegCheck.Builder.from(Registration.RegCheck instance)
Fill a builder with attribute values from the provided
RegCheck instance. |
ImmutableRegistration |
ImmutableRegistration.withCheck(Registration.RegCheck value)
Copy the current immutable object by setting a present value for the optional
check attribute. |
ImmutableRegistration |
ImmutableRegistration.withChecks(Registration.RegCheck... elements)
Copy the current immutable object with elements that replace the content of
checks. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableRegistration.Builder |
ImmutableRegistration.Builder.addAllChecks(Iterable<? extends Registration.RegCheck> elements)
Adds elements to
checks list. |
ImmutableRegistration.Builder |
ImmutableRegistration.Builder.check(Optional<? extends Registration.RegCheck> check)
Initializes the optional value
check to check. |
ImmutableRegistration.Builder |
ImmutableRegistration.Builder.checks(Iterable<? extends Registration.RegCheck> elements)
Sets or replaces all elements for
checks list. |
ImmutableRegistration |
ImmutableRegistration.withCheck(Optional<? extends Registration.RegCheck> optional)
Copy the current immutable object by setting an optional value for the
check attribute. |
ImmutableRegistration |
ImmutableRegistration.withChecks(Iterable<? extends Registration.RegCheck> elements)
Copy the current immutable object with elements that replace the content of
checks. |
Copyright © 2019. All rights reserved.