| Modifier and Type | Field and Description |
|---|---|
static TypeArg<ConsulClient> |
__TYPE_ARG |
| Constructor and Description |
|---|
ConsulClient(ConsulClient delegate) |
ConsulClient(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
agentInfo()
Returns the configuration and member information of the local agent
|
io.reactivex.rxjava3.core.Single<List<String>> |
catalogDatacenters()
Return all the datacenters that are known by the Consul server
|
io.reactivex.rxjava3.core.Single<NodeList> |
catalogNodes()
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<ServiceList> |
catalogNodeServices(String node)
Returns the node's registered services
|
io.reactivex.rxjava3.core.Single<ServiceList> |
catalogNodeServicesWithOptions(String node,
BlockingQueryOptions options)
Returns the node's registered services
This is blocking query unlike
catalogNodeServices(java.lang.String) |
io.reactivex.rxjava3.core.Single<NodeList> |
catalogNodesWithOptions(NodeQueryOptions options)
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<ServiceList> |
catalogServiceNodes(String service)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<ServiceList> |
catalogServiceNodesWithOptions(String service,
ServiceQueryOptions options)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<ServiceList> |
catalogServices()
Returns the services registered in a datacenter
|
io.reactivex.rxjava3.core.Single<ServiceList> |
catalogServicesWithOptions(BlockingQueryOptions options)
Returns the services registered in a datacenter
This is blocking query unlike
catalogServices() |
io.reactivex.rxjava3.core.Single<String> |
cloneAclToken(String id)
Clone Acl token
|
void |
close()
Close the client and release its resources
|
io.reactivex.rxjava3.core.Single<List<DcCoordinates>> |
coordinateDatacenters()
Returns the WAN network coordinates for all Consul servers, organized by DCs
|
io.reactivex.rxjava3.core.Single<CoordinateList> |
coordinateNodes()
Returns the LAN network coordinates for all nodes in a given DC
|
io.reactivex.rxjava3.core.Single<CoordinateList> |
coordinateNodesWithOptions(BlockingQueryOptions options)
Returns the LAN network coordinates for all nodes in a given DC
This is blocking query unlike
coordinateNodes() |
static ConsulClient |
create(Vertx vertx)
Create a Consul client with default options.
|
static ConsulClient |
create(Vertx vertx,
ConsulClientOptions options)
Create a Consul client.
|
io.reactivex.rxjava3.core.Single<String> |
createAclToken(AclToken token)
Create new Acl token
|
io.reactivex.rxjava3.core.Single<String> |
createPreparedQuery(PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Single<String> |
createSession()
Initialize a new session
|
io.reactivex.rxjava3.core.Single<String> |
createSessionWithOptions(SessionOptions options)
Initialize a new session
|
io.reactivex.rxjava3.core.Completable |
deletePreparedQuery(String id)
Deletes an existing prepared query
|
io.reactivex.rxjava3.core.Completable |
deleteValue(String key)
Remove the key/value pair that corresponding to the specified key
|
io.reactivex.rxjava3.core.Completable |
deleteValues(String keyPrefix)
Removes all the key/value pair that corresponding to the specified key prefix
|
io.reactivex.rxjava3.core.Completable |
deregisterCatalogService(String nodeId,
String serviceId)
Deregister entities from the node or deregister the node itself.
|
io.reactivex.rxjava3.core.Completable |
deregisterCheck(String checkId)
Remove a check from the local agent.
|
io.reactivex.rxjava3.core.Completable |
deregisterService(String id)
Remove a service from the local agent.
|
io.reactivex.rxjava3.core.Completable |
destroyAclToken(String id)
Destroy Acl token
|
io.reactivex.rxjava3.core.Completable |
destroySession(String id)
Destroys the given session
|
boolean |
equals(Object o) |
io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> |
executePreparedQuery(String query)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> |
executePreparedQueryWithOptions(String query,
PreparedQueryExecuteOptions options)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Completable |
failCheck(String checkId)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Completable |
failCheckWithNote(String checkId,
String note)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Single<Event> |
fireEvent(String name)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<Event> |
fireEventWithOptions(String name,
EventOptions options)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<List<PreparedQueryDefinition>> |
getAllPreparedQueries()
Returns a list of all prepared queries.
|
ConsulClient |
getDelegate() |
io.reactivex.rxjava3.core.Single<List<String>> |
getKeys(String keyPrefix)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<List<String>> |
getKeysWithOptions(String keyPrefix,
BlockingQueryOptions options)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<PreparedQueryDefinition> |
getPreparedQuery(String id)
Returns an existing prepared query
|
io.reactivex.rxjava3.core.Single<KeyValue> |
getValue(String key)
Returns key/value pair that corresponding to the specified key.
|
io.reactivex.rxjava3.core.Single<KeyValueList> |
getValues(String keyPrefix)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<KeyValueList> |
getValuesWithOptions(String keyPrefix,
BlockingQueryOptions options)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<KeyValue> |
getValueWithOptions(String key,
BlockingQueryOptions options)
Returns key/value pair that corresponding to the specified key.
|
int |
hashCode() |
io.reactivex.rxjava3.core.Single<CheckList> |
healthChecks(String service)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<CheckList> |
healthChecksWithOptions(String service,
CheckQueryOptions options)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<ServiceEntryList> |
healthServiceNodes(String service,
boolean passing)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<ServiceEntryList> |
healthServiceNodesWithOptions(String service,
boolean passing,
ServiceQueryOptions options)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<CheckList> |
healthState(HealthState healthState)
Returns the checks in the specified status
|
io.reactivex.rxjava3.core.Single<CheckList> |
healthStateWithOptions(HealthState healthState,
CheckQueryOptions options)
Returns the checks in the specified status
|
io.reactivex.rxjava3.core.Single<AclToken> |
infoAclToken(String id)
Get info of Acl token
|
io.reactivex.rxjava3.core.Single<Session> |
infoSession(String id)
Returns the requested session information
|
io.reactivex.rxjava3.core.Single<Session> |
infoSessionWithOptions(String id,
BlockingQueryOptions options)
Returns the requested session information
This is blocking query unlike
infoSession(java.lang.String) |
io.reactivex.rxjava3.core.Single<String> |
leaderStatus()
Get the Raft leader for the datacenter in which the agent is running.
|
io.reactivex.rxjava3.core.Single<List<AclToken>> |
listAclTokens()
Get list of Acl token
|
io.reactivex.rxjava3.core.Single<EventList> |
listEvents()
Returns the most recent events known by the agent
|
io.reactivex.rxjava3.core.Single<EventList> |
listEventsWithOptions(EventListOptions options)
Returns the most recent events known by the agent.
|
io.reactivex.rxjava3.core.Single<SessionList> |
listNodeSessions(String nodeId)
Returns the active sessions for a given node
|
io.reactivex.rxjava3.core.Single<SessionList> |
listNodeSessionsWithOptions(String nodeId,
BlockingQueryOptions options)
Returns the active sessions for a given node
This is blocking query unlike
listNodeSessions(java.lang.String) |
io.reactivex.rxjava3.core.Single<SessionList> |
listSessions()
Returns the active sessions
|
io.reactivex.rxjava3.core.Single<SessionList> |
listSessionsWithOptions(BlockingQueryOptions options)
Returns the active sessions
This is blocking query unlike
listSessions() |
io.reactivex.rxjava3.core.Single<List<Check>> |
localChecks()
Return all the checks that are registered with the local agent.
|
io.reactivex.rxjava3.core.Single<List<Service>> |
localServices()
Returns list of services registered with the local agent.
|
io.reactivex.rxjava3.core.Completable |
maintenanceService(MaintenanceOptions maintenanceOptions)
Places a given service into "maintenance mode"
|
static ConsulClient |
newInstance(ConsulClient arg) |
io.reactivex.rxjava3.core.Completable |
passCheck(String checkId)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Completable |
passCheckWithNote(String checkId,
String note)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Single<List<String>> |
peersStatus()
Retrieves the Raft peers for the datacenter in which the the agent is running.
|
io.reactivex.rxjava3.core.Single<Boolean> |
putValue(String key,
String value)
Adds specified key/value pair
|
io.reactivex.rxjava3.core.Single<Boolean> |
putValueWithOptions(String key,
String value,
KeyValueOptions options) |
io.reactivex.rxjava3.core.Completable |
registerCatalogService(Node nodeOptions,
ServiceOptions serviceOptions)
Register node with external service
|
io.reactivex.rxjava3.core.Completable |
registerCheck(CheckOptions checkOptions)
Add a new check to the local agent.
|
io.reactivex.rxjava3.core.Completable |
registerService(ServiceOptions serviceOptions)
Adds a new service, with an optional health check, to the local agent.
|
io.reactivex.rxjava3.core.Single<Session> |
renewSession(String id)
Renews the given session.
|
io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> |
rxAgentInfo()
Returns the configuration and member information of the local agent
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxCatalogDatacenters()
Return all the datacenters that are known by the Consul server
|
io.reactivex.rxjava3.core.Single<NodeList> |
rxCatalogNodes()
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<ServiceList> |
rxCatalogNodeServices(String node)
Returns the node's registered services
|
io.reactivex.rxjava3.core.Single<ServiceList> |
rxCatalogNodeServicesWithOptions(String node,
BlockingQueryOptions options)
Returns the node's registered services
This is blocking query unlike
catalogNodeServices(java.lang.String) |
io.reactivex.rxjava3.core.Single<NodeList> |
rxCatalogNodesWithOptions(NodeQueryOptions options)
Returns the nodes registered in a datacenter
|
io.reactivex.rxjava3.core.Single<ServiceList> |
rxCatalogServiceNodes(String service)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<ServiceList> |
rxCatalogServiceNodesWithOptions(String service,
ServiceQueryOptions options)
Returns the nodes providing a service
|
io.reactivex.rxjava3.core.Single<ServiceList> |
rxCatalogServices()
Returns the services registered in a datacenter
|
io.reactivex.rxjava3.core.Single<ServiceList> |
rxCatalogServicesWithOptions(BlockingQueryOptions options)
Returns the services registered in a datacenter
This is blocking query unlike
catalogServices() |
io.reactivex.rxjava3.core.Single<String> |
rxCloneAclToken(String id)
Clone Acl token
|
io.reactivex.rxjava3.core.Single<List<DcCoordinates>> |
rxCoordinateDatacenters()
Returns the WAN network coordinates for all Consul servers, organized by DCs
|
io.reactivex.rxjava3.core.Single<CoordinateList> |
rxCoordinateNodes()
Returns the LAN network coordinates for all nodes in a given DC
|
io.reactivex.rxjava3.core.Single<CoordinateList> |
rxCoordinateNodesWithOptions(BlockingQueryOptions options)
Returns the LAN network coordinates for all nodes in a given DC
This is blocking query unlike
coordinateNodes() |
io.reactivex.rxjava3.core.Single<String> |
rxCreateAclToken(AclToken token)
Create new Acl token
|
io.reactivex.rxjava3.core.Single<String> |
rxCreatePreparedQuery(PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Single<String> |
rxCreateSession()
Initialize a new session
|
io.reactivex.rxjava3.core.Single<String> |
rxCreateSessionWithOptions(SessionOptions options)
Initialize a new session
|
io.reactivex.rxjava3.core.Completable |
rxDeletePreparedQuery(String id)
Deletes an existing prepared query
|
io.reactivex.rxjava3.core.Completable |
rxDeleteValue(String key)
Remove the key/value pair that corresponding to the specified key
|
io.reactivex.rxjava3.core.Completable |
rxDeleteValues(String keyPrefix)
Removes all the key/value pair that corresponding to the specified key prefix
|
io.reactivex.rxjava3.core.Completable |
rxDeregisterCatalogService(String nodeId,
String serviceId)
Deregister entities from the node or deregister the node itself.
|
io.reactivex.rxjava3.core.Completable |
rxDeregisterCheck(String checkId)
Remove a check from the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxDeregisterService(String id)
Remove a service from the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxDestroyAclToken(String id)
Destroy Acl token
|
io.reactivex.rxjava3.core.Completable |
rxDestroySession(String id)
Destroys the given session
|
io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> |
rxExecutePreparedQuery(String query)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> |
rxExecutePreparedQueryWithOptions(String query,
PreparedQueryExecuteOptions options)
Executes an existing prepared query.
|
io.reactivex.rxjava3.core.Completable |
rxFailCheck(String checkId)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Completable |
rxFailCheckWithNote(String checkId,
String note)
Set status of the check to "critical".
|
io.reactivex.rxjava3.core.Single<Event> |
rxFireEvent(String name)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<Event> |
rxFireEventWithOptions(String name,
EventOptions options)
Fires a new user event
|
io.reactivex.rxjava3.core.Single<List<PreparedQueryDefinition>> |
rxGetAllPreparedQueries()
Returns a list of all prepared queries.
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxGetKeys(String keyPrefix)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxGetKeysWithOptions(String keyPrefix,
BlockingQueryOptions options)
Returns the list of keys that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<PreparedQueryDefinition> |
rxGetPreparedQuery(String id)
Returns an existing prepared query
|
io.reactivex.rxjava3.core.Single<KeyValue> |
rxGetValue(String key)
Returns key/value pair that corresponding to the specified key.
|
io.reactivex.rxjava3.core.Single<KeyValueList> |
rxGetValues(String keyPrefix)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<KeyValueList> |
rxGetValuesWithOptions(String keyPrefix,
BlockingQueryOptions options)
Returns the list of key/value pairs that corresponding to the specified key prefix.
|
io.reactivex.rxjava3.core.Single<KeyValue> |
rxGetValueWithOptions(String key,
BlockingQueryOptions options)
Returns key/value pair that corresponding to the specified key.
|
io.reactivex.rxjava3.core.Single<CheckList> |
rxHealthChecks(String service)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<CheckList> |
rxHealthChecksWithOptions(String service,
CheckQueryOptions options)
Returns the checks associated with the service
|
io.reactivex.rxjava3.core.Single<ServiceEntryList> |
rxHealthServiceNodes(String service,
boolean passing)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<ServiceEntryList> |
rxHealthServiceNodesWithOptions(String service,
boolean passing,
ServiceQueryOptions options)
Returns the nodes providing the service.
|
io.reactivex.rxjava3.core.Single<CheckList> |
rxHealthState(HealthState healthState)
Returns the checks in the specified status
|
io.reactivex.rxjava3.core.Single<CheckList> |
rxHealthStateWithOptions(HealthState healthState,
CheckQueryOptions options)
Returns the checks in the specified status
|
io.reactivex.rxjava3.core.Single<AclToken> |
rxInfoAclToken(String id)
Get info of Acl token
|
io.reactivex.rxjava3.core.Single<Session> |
rxInfoSession(String id)
Returns the requested session information
|
io.reactivex.rxjava3.core.Single<Session> |
rxInfoSessionWithOptions(String id,
BlockingQueryOptions options)
Returns the requested session information
This is blocking query unlike
infoSession(java.lang.String) |
io.reactivex.rxjava3.core.Single<String> |
rxLeaderStatus()
Get the Raft leader for the datacenter in which the agent is running.
|
io.reactivex.rxjava3.core.Single<List<AclToken>> |
rxListAclTokens()
Get list of Acl token
|
io.reactivex.rxjava3.core.Single<EventList> |
rxListEvents()
Returns the most recent events known by the agent
|
io.reactivex.rxjava3.core.Single<EventList> |
rxListEventsWithOptions(EventListOptions options)
Returns the most recent events known by the agent.
|
io.reactivex.rxjava3.core.Single<SessionList> |
rxListNodeSessions(String nodeId)
Returns the active sessions for a given node
|
io.reactivex.rxjava3.core.Single<SessionList> |
rxListNodeSessionsWithOptions(String nodeId,
BlockingQueryOptions options)
Returns the active sessions for a given node
This is blocking query unlike
listNodeSessions(java.lang.String) |
io.reactivex.rxjava3.core.Single<SessionList> |
rxListSessions()
Returns the active sessions
|
io.reactivex.rxjava3.core.Single<SessionList> |
rxListSessionsWithOptions(BlockingQueryOptions options)
Returns the active sessions
This is blocking query unlike
listSessions() |
io.reactivex.rxjava3.core.Single<List<Check>> |
rxLocalChecks()
Return all the checks that are registered with the local agent.
|
io.reactivex.rxjava3.core.Single<List<Service>> |
rxLocalServices()
Returns list of services registered with the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxMaintenanceService(MaintenanceOptions maintenanceOptions)
Places a given service into "maintenance mode"
|
io.reactivex.rxjava3.core.Completable |
rxPassCheck(String checkId)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Completable |
rxPassCheckWithNote(String checkId,
String note)
Set status of the check to "passing".
|
io.reactivex.rxjava3.core.Single<List<String>> |
rxPeersStatus()
Retrieves the Raft peers for the datacenter in which the the agent is running.
|
io.reactivex.rxjava3.core.Single<Boolean> |
rxPutValue(String key,
String value)
Adds specified key/value pair
|
io.reactivex.rxjava3.core.Single<Boolean> |
rxPutValueWithOptions(String key,
String value,
KeyValueOptions options) |
io.reactivex.rxjava3.core.Completable |
rxRegisterCatalogService(Node nodeOptions,
ServiceOptions serviceOptions)
Register node with external service
|
io.reactivex.rxjava3.core.Completable |
rxRegisterCheck(CheckOptions checkOptions)
Add a new check to the local agent.
|
io.reactivex.rxjava3.core.Completable |
rxRegisterService(ServiceOptions serviceOptions)
Adds a new service, with an optional health check, to the local agent.
|
io.reactivex.rxjava3.core.Single<Session> |
rxRenewSession(String id)
Renews the given session.
|
io.reactivex.rxjava3.core.Single<TxnResponse> |
rxTransaction(TxnRequest request)
Manages multiple operations inside a single, atomic transaction.
|
io.reactivex.rxjava3.core.Single<String> |
rxUpdateAclToken(AclToken token)
Update Acl token
|
io.reactivex.rxjava3.core.Completable |
rxUpdateCheck(String checkId,
CheckStatus status)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
rxUpdateCheckWithNote(String checkId,
CheckStatus status,
String note)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
rxUpdatePreparedQuery(PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Completable |
rxWarnCheck(String checkId)
Set status of the check to "warning".
|
io.reactivex.rxjava3.core.Completable |
rxWarnCheckWithNote(String checkId,
String note)
Set status of the check to "warning".
|
String |
toString() |
io.reactivex.rxjava3.core.Single<TxnResponse> |
transaction(TxnRequest request)
Manages multiple operations inside a single, atomic transaction.
|
io.reactivex.rxjava3.core.Single<String> |
updateAclToken(AclToken token)
Update Acl token
|
io.reactivex.rxjava3.core.Completable |
updateCheck(String checkId,
CheckStatus status)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
updateCheckWithNote(String checkId,
CheckStatus status,
String note)
Set status of the check to given status.
|
io.reactivex.rxjava3.core.Completable |
updatePreparedQuery(PreparedQueryDefinition definition) |
io.reactivex.rxjava3.core.Completable |
warnCheck(String checkId)
Set status of the check to "warning".
|
io.reactivex.rxjava3.core.Completable |
warnCheckWithNote(String checkId,
String note)
Set status of the check to "warning".
|
public static final TypeArg<ConsulClient> __TYPE_ARG
public ConsulClient(ConsulClient delegate)
public ConsulClient(Object delegate)
public ConsulClient getDelegate()
public static ConsulClient create(Vertx vertx)
vertx - the Vert.x instancepublic static ConsulClient create(Vertx vertx, ConsulClientOptions options)
vertx - the Vert.x instanceoptions - the optionspublic io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> agentInfo()
public io.reactivex.rxjava3.core.Single<io.vertx.core.json.JsonObject> rxAgentInfo()
public io.reactivex.rxjava3.core.Single<CoordinateList> coordinateNodes()
public io.reactivex.rxjava3.core.Single<CoordinateList> rxCoordinateNodes()
public io.reactivex.rxjava3.core.Single<CoordinateList> coordinateNodesWithOptions(BlockingQueryOptions options)
coordinateNodes()options - the blocking optionspublic io.reactivex.rxjava3.core.Single<CoordinateList> rxCoordinateNodesWithOptions(BlockingQueryOptions options)
coordinateNodes()options - the blocking optionspublic io.reactivex.rxjava3.core.Single<List<DcCoordinates>> coordinateDatacenters()
public io.reactivex.rxjava3.core.Single<List<DcCoordinates>> rxCoordinateDatacenters()
public io.reactivex.rxjava3.core.Single<List<String>> getKeys(String keyPrefix)
keyPrefix - the prefixpublic io.reactivex.rxjava3.core.Single<List<String>> rxGetKeys(String keyPrefix)
keyPrefix - the prefixpublic io.reactivex.rxjava3.core.Single<List<String>> getKeysWithOptions(String keyPrefix, BlockingQueryOptions options)
keyPrefix - the prefixoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<List<String>> rxGetKeysWithOptions(String keyPrefix, BlockingQueryOptions options)
keyPrefix - the prefixoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<KeyValue> getValue(String key)
KeyValue object will be returned if no such key is found.key - the keypublic io.reactivex.rxjava3.core.Single<KeyValue> rxGetValue(String key)
KeyValue object will be returned if no such key is found.key - the keypublic io.reactivex.rxjava3.core.Single<KeyValue> getValueWithOptions(String key, BlockingQueryOptions options)
KeyValue object will be returned if no such key is found.
This is blocking query unlike getValue(java.lang.String)key - the keyoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<KeyValue> rxGetValueWithOptions(String key, BlockingQueryOptions options)
KeyValue object will be returned if no such key is found.
This is blocking query unlike getValue(java.lang.String)key - the keyoptions - the blocking optionspublic io.reactivex.rxjava3.core.Completable deleteValue(String key)
key - the keypublic io.reactivex.rxjava3.core.Completable rxDeleteValue(String key)
key - the keypublic io.reactivex.rxjava3.core.Single<KeyValueList> getValues(String keyPrefix)
KeyValueList object will be returned if no such key prefix is found.keyPrefix - the prefixpublic io.reactivex.rxjava3.core.Single<KeyValueList> rxGetValues(String keyPrefix)
KeyValueList object will be returned if no such key prefix is found.keyPrefix - the prefixpublic io.reactivex.rxjava3.core.Single<KeyValueList> getValuesWithOptions(String keyPrefix, BlockingQueryOptions options)
KeyValueList object will be returned if no such key prefix is found.
This is blocking query unlike getValues(java.lang.String)keyPrefix - the prefixoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<KeyValueList> rxGetValuesWithOptions(String keyPrefix, BlockingQueryOptions options)
KeyValueList object will be returned if no such key prefix is found.
This is blocking query unlike getValues(java.lang.String)keyPrefix - the prefixoptions - the blocking optionspublic io.reactivex.rxjava3.core.Completable deleteValues(String keyPrefix)
keyPrefix - the prefixpublic io.reactivex.rxjava3.core.Completable rxDeleteValues(String keyPrefix)
keyPrefix - the prefixpublic io.reactivex.rxjava3.core.Single<Boolean> putValue(String key, String value)
key - the keyvalue - the valuepublic io.reactivex.rxjava3.core.Single<Boolean> rxPutValue(String key, String value)
key - the keyvalue - the valuepublic io.reactivex.rxjava3.core.Single<Boolean> putValueWithOptions(String key, String value, KeyValueOptions options)
key - the keyvalue - the valueoptions - options used to push pairpublic io.reactivex.rxjava3.core.Single<Boolean> rxPutValueWithOptions(String key, String value, KeyValueOptions options)
key - the keyvalue - the valueoptions - options used to push pairpublic io.reactivex.rxjava3.core.Single<TxnResponse> transaction(TxnRequest request)
request - transaction requestpublic io.reactivex.rxjava3.core.Single<TxnResponse> rxTransaction(TxnRequest request)
request - transaction requestpublic io.reactivex.rxjava3.core.Single<String> createAclToken(AclToken token)
token - properties of the tokenpublic io.reactivex.rxjava3.core.Single<String> rxCreateAclToken(AclToken token)
token - properties of the tokenpublic io.reactivex.rxjava3.core.Single<String> updateAclToken(AclToken token)
token - properties of the token to be updatedpublic io.reactivex.rxjava3.core.Single<String> rxUpdateAclToken(AclToken token)
token - properties of the token to be updatedpublic io.reactivex.rxjava3.core.Single<String> cloneAclToken(String id)
id - the ID of token to be clonedpublic io.reactivex.rxjava3.core.Single<String> rxCloneAclToken(String id)
id - the ID of token to be clonedpublic io.reactivex.rxjava3.core.Single<List<AclToken>> listAclTokens()
public io.reactivex.rxjava3.core.Single<List<AclToken>> rxListAclTokens()
public io.reactivex.rxjava3.core.Single<AclToken> infoAclToken(String id)
id - the ID of tokenpublic io.reactivex.rxjava3.core.Single<AclToken> rxInfoAclToken(String id)
id - the ID of tokenpublic io.reactivex.rxjava3.core.Completable destroyAclToken(String id)
id - the ID of tokenpublic io.reactivex.rxjava3.core.Completable rxDestroyAclToken(String id)
id - the ID of tokenpublic io.reactivex.rxjava3.core.Single<Event> fireEvent(String name)
name - name of eventpublic io.reactivex.rxjava3.core.Single<Event> rxFireEvent(String name)
name - name of eventpublic io.reactivex.rxjava3.core.Single<Event> fireEventWithOptions(String name, EventOptions options)
name - name of eventoptions - options used to create eventpublic io.reactivex.rxjava3.core.Single<Event> rxFireEventWithOptions(String name, EventOptions options)
name - name of eventoptions - options used to create eventpublic io.reactivex.rxjava3.core.Single<EventList> listEvents()
public io.reactivex.rxjava3.core.Single<EventList> rxListEvents()
public io.reactivex.rxjava3.core.Single<EventList> listEventsWithOptions(EventListOptions options)
listEvents(). However, the semantics of this endpoint
are slightly different. Most blocking queries provide a monotonic index and block until a newer index is available.
This can be supported as a consequence of the total ordering of the consensus protocol. With gossip,
there is no ordering, and instead X-Consul-Index maps to the newest event that matches the query.
In practice, this means the index is only useful when used against a single agent and has no meaning globally. Because Consul defines the index as being opaque, clients should not be expecting a natural ordering either.
options - the blocking optionspublic io.reactivex.rxjava3.core.Single<EventList> rxListEventsWithOptions(EventListOptions options)
listEvents(). However, the semantics of this endpoint
are slightly different. Most blocking queries provide a monotonic index and block until a newer index is available.
This can be supported as a consequence of the total ordering of the consensus protocol. With gossip,
there is no ordering, and instead X-Consul-Index maps to the newest event that matches the query.
In practice, this means the index is only useful when used against a single agent and has no meaning globally. Because Consul defines the index as being opaque, clients should not be expecting a natural ordering either.
options - the blocking optionspublic io.reactivex.rxjava3.core.Completable registerService(ServiceOptions serviceOptions)
serviceOptions - the options of new servicepublic io.reactivex.rxjava3.core.Completable rxRegisterService(ServiceOptions serviceOptions)
serviceOptions - the options of new servicepublic io.reactivex.rxjava3.core.Completable maintenanceService(MaintenanceOptions maintenanceOptions)
maintenanceOptions - the maintenance optionspublic io.reactivex.rxjava3.core.Completable rxMaintenanceService(MaintenanceOptions maintenanceOptions)
maintenanceOptions - the maintenance optionspublic io.reactivex.rxjava3.core.Completable deregisterService(String id)
id - the ID of servicepublic io.reactivex.rxjava3.core.Completable rxDeregisterService(String id)
id - the ID of servicepublic io.reactivex.rxjava3.core.Single<ServiceList> catalogServiceNodes(String service)
service - name of servicepublic io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogServiceNodes(String service)
service - name of servicepublic io.reactivex.rxjava3.core.Single<ServiceList> catalogServiceNodesWithOptions(String service, ServiceQueryOptions options)
service - name of serviceoptions - options used to request servicespublic io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogServiceNodesWithOptions(String service, ServiceQueryOptions options)
service - name of serviceoptions - options used to request servicespublic io.reactivex.rxjava3.core.Single<List<String>> catalogDatacenters()
public io.reactivex.rxjava3.core.Single<List<String>> rxCatalogDatacenters()
public io.reactivex.rxjava3.core.Single<NodeList> catalogNodes()
public io.reactivex.rxjava3.core.Single<NodeList> rxCatalogNodes()
public io.reactivex.rxjava3.core.Single<NodeList> catalogNodesWithOptions(NodeQueryOptions options)
options - options used to request nodespublic io.reactivex.rxjava3.core.Single<NodeList> rxCatalogNodesWithOptions(NodeQueryOptions options)
options - options used to request nodespublic io.reactivex.rxjava3.core.Single<CheckList> healthChecks(String service)
service - the service namepublic io.reactivex.rxjava3.core.Single<CheckList> rxHealthChecks(String service)
service - the service namepublic io.reactivex.rxjava3.core.Single<CheckList> healthChecksWithOptions(String service, CheckQueryOptions options)
service - the service nameoptions - options used to request checkspublic io.reactivex.rxjava3.core.Single<CheckList> rxHealthChecksWithOptions(String service, CheckQueryOptions options)
service - the service nameoptions - options used to request checkspublic io.reactivex.rxjava3.core.Single<CheckList> healthState(HealthState healthState)
healthState - the health statepublic io.reactivex.rxjava3.core.Single<CheckList> rxHealthState(HealthState healthState)
healthState - the health statepublic io.reactivex.rxjava3.core.Single<CheckList> healthStateWithOptions(HealthState healthState, CheckQueryOptions options)
healthState - the health stateoptions - options used to request checkspublic io.reactivex.rxjava3.core.Single<CheckList> rxHealthStateWithOptions(HealthState healthState, CheckQueryOptions options)
healthState - the health stateoptions - options used to request checkspublic io.reactivex.rxjava3.core.Single<ServiceEntryList> healthServiceNodes(String service, boolean passing)
catalogServiceNodes(java.lang.String) endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service - the service namepassing - if true, filter results to only nodes with all checks in the passing statepublic io.reactivex.rxjava3.core.Single<ServiceEntryList> rxHealthServiceNodes(String service, boolean passing)
catalogServiceNodes(java.lang.String) endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service - the service namepassing - if true, filter results to only nodes with all checks in the passing statepublic io.reactivex.rxjava3.core.Single<ServiceEntryList> healthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options)
catalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions) endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service - the service namepassing - if true, filter results to only nodes with all checks in the passing stateoptions - options used to request servicespublic io.reactivex.rxjava3.core.Single<ServiceEntryList> rxHealthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options)
catalogServiceNodesWithOptions(java.lang.String, io.vertx.ext.consul.ServiceQueryOptions) endpoint;
however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.service - the service namepassing - if true, filter results to only nodes with all checks in the passing stateoptions - options used to request servicespublic io.reactivex.rxjava3.core.Single<ServiceList> catalogServices()
public io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogServices()
public io.reactivex.rxjava3.core.Single<ServiceList> catalogServicesWithOptions(BlockingQueryOptions options)
catalogServices()options - the blocking optionspublic io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogServicesWithOptions(BlockingQueryOptions options)
catalogServices()options - the blocking optionspublic io.reactivex.rxjava3.core.Single<ServiceList> catalogNodeServices(String node)
node - node namepublic io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogNodeServices(String node)
node - node namepublic io.reactivex.rxjava3.core.Single<ServiceList> catalogNodeServicesWithOptions(String node, BlockingQueryOptions options)
catalogNodeServices(java.lang.String)node - node nameoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogNodeServicesWithOptions(String node, BlockingQueryOptions options)
catalogNodeServices(java.lang.String)node - node nameoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<List<Service>> localServices()
public io.reactivex.rxjava3.core.Single<List<Service>> rxLocalServices()
public io.reactivex.rxjava3.core.Single<List<Check>> localChecks()
public io.reactivex.rxjava3.core.Single<List<Check>> rxLocalChecks()
public io.reactivex.rxjava3.core.Completable registerCheck(CheckOptions checkOptions)
checkOptions - options used to register new checkpublic io.reactivex.rxjava3.core.Completable rxRegisterCheck(CheckOptions checkOptions)
checkOptions - options used to register new checkpublic io.reactivex.rxjava3.core.Completable deregisterCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable rxDeregisterCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable passCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable rxPassCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable passCheckWithNote(String checkId, String note)
checkId - the ID of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Completable rxPassCheckWithNote(String checkId, String note)
checkId - the ID of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Completable warnCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable rxWarnCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable warnCheckWithNote(String checkId, String note)
checkId - the ID of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Completable rxWarnCheckWithNote(String checkId, String note)
checkId - the ID of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Completable failCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable rxFailCheck(String checkId)
checkId - the ID of checkpublic io.reactivex.rxjava3.core.Completable failCheckWithNote(String checkId, String note)
checkId - the ID of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Completable rxFailCheckWithNote(String checkId, String note)
checkId - the ID of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Completable updateCheck(String checkId, CheckStatus status)
checkId - the ID of checkstatus - new status of checkpublic io.reactivex.rxjava3.core.Completable rxUpdateCheck(String checkId, CheckStatus status)
checkId - the ID of checkstatus - new status of checkpublic io.reactivex.rxjava3.core.Completable updateCheckWithNote(String checkId, CheckStatus status, String note)
checkId - the ID of checkstatus - new status of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Completable rxUpdateCheckWithNote(String checkId, CheckStatus status, String note)
checkId - the ID of checkstatus - new status of checknote - specifies a human-readable message. This will be passed through to the check's Output field.public io.reactivex.rxjava3.core.Single<String> leaderStatus()
10.1.10.12:8300"public io.reactivex.rxjava3.core.Single<String> rxLeaderStatus()
10.1.10.12:8300"public io.reactivex.rxjava3.core.Single<List<String>> peersStatus()
10.1.10.12:8300", "10.1.10.13:8300"public io.reactivex.rxjava3.core.Single<List<String>> rxPeersStatus()
10.1.10.12:8300", "10.1.10.13:8300"public io.reactivex.rxjava3.core.Single<String> createSession()
public io.reactivex.rxjava3.core.Single<String> rxCreateSession()
public io.reactivex.rxjava3.core.Single<String> createSessionWithOptions(SessionOptions options)
options - options used to create sessionpublic io.reactivex.rxjava3.core.Single<String> rxCreateSessionWithOptions(SessionOptions options)
options - options used to create sessionpublic io.reactivex.rxjava3.core.Single<Session> infoSession(String id)
id - the ID of requested sessionpublic io.reactivex.rxjava3.core.Single<Session> rxInfoSession(String id)
id - the ID of requested sessionpublic io.reactivex.rxjava3.core.Single<Session> infoSessionWithOptions(String id, BlockingQueryOptions options)
infoSession(java.lang.String)id - the ID of requested sessionoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<Session> rxInfoSessionWithOptions(String id, BlockingQueryOptions options)
infoSession(java.lang.String)id - the ID of requested sessionoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<Session> renewSession(String id)
id - the ID of session that should be renewedpublic io.reactivex.rxjava3.core.Single<Session> rxRenewSession(String id)
id - the ID of session that should be renewedpublic io.reactivex.rxjava3.core.Single<SessionList> listSessions()
public io.reactivex.rxjava3.core.Single<SessionList> rxListSessions()
public io.reactivex.rxjava3.core.Single<SessionList> listSessionsWithOptions(BlockingQueryOptions options)
listSessions()options - the blocking optionspublic io.reactivex.rxjava3.core.Single<SessionList> rxListSessionsWithOptions(BlockingQueryOptions options)
listSessions()options - the blocking optionspublic io.reactivex.rxjava3.core.Single<SessionList> listNodeSessions(String nodeId)
nodeId - the ID of nodepublic io.reactivex.rxjava3.core.Single<SessionList> rxListNodeSessions(String nodeId)
nodeId - the ID of nodepublic io.reactivex.rxjava3.core.Single<SessionList> listNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options)
listNodeSessions(java.lang.String)nodeId - the ID of nodeoptions - the blocking optionspublic io.reactivex.rxjava3.core.Single<SessionList> rxListNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options)
listNodeSessions(java.lang.String)nodeId - the ID of nodeoptions - the blocking optionspublic io.reactivex.rxjava3.core.Completable destroySession(String id)
id - the ID of sessionpublic io.reactivex.rxjava3.core.Completable rxDestroySession(String id)
id - the ID of sessionpublic io.reactivex.rxjava3.core.Single<String> createPreparedQuery(PreparedQueryDefinition definition)
definition - definition of the prepare querypublic io.reactivex.rxjava3.core.Single<String> rxCreatePreparedQuery(PreparedQueryDefinition definition)
definition - definition of the prepare querypublic io.reactivex.rxjava3.core.Single<PreparedQueryDefinition> getPreparedQuery(String id)
id - the id of the query to readpublic io.reactivex.rxjava3.core.Single<PreparedQueryDefinition> rxGetPreparedQuery(String id)
id - the id of the query to readpublic io.reactivex.rxjava3.core.Single<List<PreparedQueryDefinition>> getAllPreparedQueries()
public io.reactivex.rxjava3.core.Single<List<PreparedQueryDefinition>> rxGetAllPreparedQueries()
public io.reactivex.rxjava3.core.Completable updatePreparedQuery(PreparedQueryDefinition definition)
definition - definition of the prepare querypublic io.reactivex.rxjava3.core.Completable rxUpdatePreparedQuery(PreparedQueryDefinition definition)
definition - definition of the prepare querypublic io.reactivex.rxjava3.core.Completable deletePreparedQuery(String id)
id - the id of the query to deletepublic io.reactivex.rxjava3.core.Completable rxDeletePreparedQuery(String id)
id - the id of the query to deletepublic io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> executePreparedQuery(String query)
query - the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.public io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> rxExecutePreparedQuery(String query)
query - the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.public io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> executePreparedQueryWithOptions(String query, PreparedQueryExecuteOptions options)
query - the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.options - the options used to execute prepared querypublic io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> rxExecutePreparedQueryWithOptions(String query, PreparedQueryExecuteOptions options)
query - the ID of the query to execute. This can also be the name of an existing prepared query, or a name that matches a prefix name for a prepared query template.options - the options used to execute prepared querypublic io.reactivex.rxjava3.core.Completable registerCatalogService(Node nodeOptions, ServiceOptions serviceOptions)
nodeOptions - the options of new nodeserviceOptions - the options of new servicepublic io.reactivex.rxjava3.core.Completable rxRegisterCatalogService(Node nodeOptions, ServiceOptions serviceOptions)
nodeOptions - the options of new nodeserviceOptions - the options of new servicepublic io.reactivex.rxjava3.core.Completable deregisterCatalogService(String nodeId, String serviceId)
nodeId - the ID of nodeserviceId - the ID of the service to de-registered; if it is null, the node itself will be de-registered (as well as the entities that belongs to that node)public io.reactivex.rxjava3.core.Completable rxDeregisterCatalogService(String nodeId, String serviceId)
nodeId - the ID of nodeserviceId - the ID of the service to de-registered; if it is null, the node itself will be de-registered (as well as the entities that belongs to that node)public void close()
public static ConsulClient newInstance(ConsulClient arg)
Copyright © 2022 Eclipse. All rights reserved.