|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.orbitz.consul.Consul
public class Consul
Client for interacting with the Consul HTTP API.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_HTTP_HOST
Default Consul HTTP API host. |
static int |
DEFAULT_HTTP_PORT
Default Consul HTTP API port. |
Method Summary | |
---|---|
AgentClient |
agentClient()
Get the Agent HTTP client. |
CatalogClient |
catalogClient()
Get the Catalog HTTP client. |
EventClient |
eventClient()
Get the Event HTTP client. |
HealthClient |
healthClient()
Get the Health HTTP client. |
KeyValueClient |
keyValueClient()
Get the Key/Value HTTP client. |
static Consul |
newClient()
Creates a new client given a host and a port. |
static Consul |
newClient(java.lang.String url,
javax.ws.rs.client.ClientBuilder builder)
Creates a new client given a complete URL. |
static Consul |
newClient(java.lang.String host,
int port)
Creates a new client given a host and a port. |
static Consul |
newClient(java.lang.String host,
int port,
javax.ws.rs.client.ClientBuilder builder)
Creates a new client given a host and a port. |
SessionClient |
sessionClient()
Get the SessionInfo HTTP client. |
StatusClient |
statusClient()
Get the Status HTTP client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_HTTP_HOST
public static final int DEFAULT_HTTP_PORT
Method Detail |
---|
public static Consul newClient(java.lang.String url, javax.ws.rs.client.ClientBuilder builder)
url
- The Consul API URL.builder
- The JAX-RS client builder instance.
public static Consul newClient(java.lang.String host, int port, javax.ws.rs.client.ClientBuilder builder)
host
- The Consul API hostname or IP.port
- The Consul port.builder
- The JAX-RS client builder instance.
public static Consul newClient(java.lang.String host, int port)
host
- The Consul API hostname or IP.port
- The Consul port.
public static Consul newClient()
public AgentClient agentClient()
public CatalogClient catalogClient()
public HealthClient healthClient()
public KeyValueClient keyValueClient()
public StatusClient statusClient()
public SessionClient sessionClient()
public EventClient eventClient()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |