Class ConsulClient
java.lang.Object
io.vertx.rxjava3.ext.consul.ConsulClient
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration and member information of the local agentReturn all the datacenters that are known by the Consul serverReturns the nodes registered in a datacentercatalogNodeServices(String node) Returns the node's registered servicescatalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)catalogNodesWithOptions(NodeQueryOptions options) Returns the nodes registered in a datacentercatalogServiceNodes(String service) Returns the nodes providing a servicecatalogServiceNodesWithOptions(String service, ServiceQueryOptions options) Returns the nodes providing a serviceReturns the services registered in a datacenterReturns the services registered in a datacenter This is blocking query unlikecatalogServices()cloneAclToken(String accessorId, CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenvoidclose()Close the client and release its resourcesReturns the WAN network coordinates for all Consul servers, organized by DCsReturns the LAN network coordinates for all nodes in a given DCReturns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()static ConsulClientCreate a Consul client with default options.static ConsulClientcreate(Vertx vertx, ConsulClientOptions options) Create a Consul client.createAclPolicy(AclPolicy policy) Creates a new ACL policycreateAclToken(AclToken token) Create an Acl tokencreatePreparedQuery(PreparedQueryDefinition definition) Initialize a new sessioncreateSessionWithOptions(SessionOptions options) Initialize a new sessiondeleteAclToken(String accessorId) Deletes an ACL tokendeletePolicy(String id) This endpoint deletes an ACL policyDeletes an existing prepared querydeleteValue(String key) Remove the key/value pair that corresponding to the specified keydeleteValues(String keyPrefix) Removes all the key/value pair that corresponding to the specified key prefixderegisterCatalogService(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.deregisterCheck(String checkId) Remove a check from the local agent.Remove a service from the local agent.destroySession(String id) Destroys the given sessionbooleanexecutePreparedQuery(String query) Executes an existing prepared query.executePreparedQueryWithOptions(String query, PreparedQueryExecuteOptions options) Executes an existing prepared query.Set status of the check to "critical".failCheckWithNote(String checkId, String note) Set status of the check to "critical".Fires a new user eventfireEventWithOptions(String name, EventOptions options) Fires a new user eventThis endpoint lists all the ACL policies.Get list of Acl tokenReturns a list of all prepared queries.Returns the list of keys that corresponding to the specified key prefix.getKeysWithOptions(String keyPrefix, BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.Returns an existing prepared queryReturns key/value pair that corresponding to the specified key.Returns the list of key/value pairs that corresponding to the specified key prefix.getValuesWithOptions(String keyPrefix, BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix.getValueWithOptions(String key, BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key.inthashCode()healthChecks(String service) Returns the checks associated with the servicehealthChecksWithOptions(String service, CheckQueryOptions options) Returns the checks associated with the servicehealthNodesWithOptions(String node, CheckQueryOptions options) Returns the checks specific to the node provided on the path.healthServiceNodes(String service, boolean passing) Returns the nodes providing the service.healthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options) Returns the nodes providing the service.healthState(HealthState healthState) Returns the checks in the specified statushealthStateWithOptions(HealthState healthState, CheckQueryOptions options) Returns the checks in the specified statusinfoSession(String id) Returns the requested session informationinfoSessionWithOptions(String id, BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)Get the Raft leader for the datacenter in which the agent is running.Returns the most recent events known by the agentlistEventsWithOptions(EventListOptions options) Returns the most recent events known by the agent.listNodeSessions(String nodeId) Returns the active sessions for a given nodelistNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)Returns the active sessionsReturns the active sessions This is blocking query unlikelistSessions()Return all the checks that are registered with the local agent.Returns list of services registered with the local agent.maintenanceService(MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"static ConsulClientnewInstance(ConsulClient arg) Set status of the check to "passing".passCheckWithNote(String checkId, String note) Set status of the check to "passing".Retrieves the Raft peers for the datacenter in which the the agent is running.Adds specified key/value pairputValueWithOptions(String key, String value, KeyValueOptions options) readAclToken(String accessorId) Reads an ACL token with the given Accessor IDreadPolicy(String id) This endpoint reads an ACL policy with the given IDreadPolicyByName(String name) This endpoint reads an ACL policy with the given nameregisterCatalogService(Node nodeOptions, ServiceOptions serviceOptions) Register node with external serviceregisterCheck(CheckOptions checkOptions) Add a new check to the local agent.registerService(ServiceOptions serviceOptions) Adds a new service, with an optional health check, to the local agent.renewSession(String id) Renews the given session.Returns the configuration and member information of the local agentReturn all the datacenters that are known by the Consul serverReturns the nodes registered in a datacenterrxCatalogNodeServices(String node) Returns the node's registered servicesrxCatalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)Returns the nodes registered in a datacenterrxCatalogServiceNodes(String service) Returns the nodes providing a servicerxCatalogServiceNodesWithOptions(String service, ServiceQueryOptions options) Returns the nodes providing a serviceReturns the services registered in a datacenterReturns the services registered in a datacenter This is blocking query unlikecatalogServices()rxCloneAclToken(String accessorId, CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenReturns the WAN network coordinates for all Consul servers, organized by DCsReturns the LAN network coordinates for all nodes in a given DCReturns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()rxCreateAclPolicy(AclPolicy policy) Creates a new ACL policyrxCreateAclToken(AclToken token) Create an Acl tokenrxCreatePreparedQuery(PreparedQueryDefinition definition) Initialize a new sessionrxCreateSessionWithOptions(SessionOptions options) Initialize a new sessionrxDeleteAclToken(String accessorId) Deletes an ACL tokenrxDeletePolicy(String id) This endpoint deletes an ACL policyDeletes an existing prepared queryrxDeleteValue(String key) Remove the key/value pair that corresponding to the specified keyrxDeleteValues(String keyPrefix) Removes all the key/value pair that corresponding to the specified key prefixrxDeregisterCatalogService(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.rxDeregisterCheck(String checkId) Remove a check from the local agent.Remove a service from the local agent.Destroys the given sessionrxExecutePreparedQuery(String query) Executes an existing prepared query.rxExecutePreparedQueryWithOptions(String query, PreparedQueryExecuteOptions options) Executes an existing prepared query.rxFailCheck(String checkId) Set status of the check to "critical".rxFailCheckWithNote(String checkId, String note) Set status of the check to "critical".rxFireEvent(String name) Fires a new user eventrxFireEventWithOptions(String name, EventOptions options) Fires a new user eventThis endpoint lists all the ACL policies.Get list of Acl tokenReturns a list of all prepared queries.Returns the list of keys that corresponding to the specified key prefix.rxGetKeysWithOptions(String keyPrefix, BlockingQueryOptions options) Returns the list of keys that corresponding to the specified key prefix.Returns an existing prepared queryrxGetValue(String key) Returns key/value pair that corresponding to the specified key.rxGetValues(String keyPrefix) Returns the list of key/value pairs that corresponding to the specified key prefix.rxGetValuesWithOptions(String keyPrefix, BlockingQueryOptions options) Returns the list of key/value pairs that corresponding to the specified key prefix.rxGetValueWithOptions(String key, BlockingQueryOptions options) Returns key/value pair that corresponding to the specified key.rxHealthChecks(String service) Returns the checks associated with the servicerxHealthChecksWithOptions(String service, CheckQueryOptions options) Returns the checks associated with the servicerxHealthNodesWithOptions(String node, CheckQueryOptions options) Returns the checks specific to the node provided on the path.rxHealthServiceNodes(String service, boolean passing) Returns the nodes providing the service.rxHealthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options) Returns the nodes providing the service.rxHealthState(HealthState healthState) Returns the checks in the specified statusrxHealthStateWithOptions(HealthState healthState, CheckQueryOptions options) Returns the checks in the specified statusrxInfoSession(String id) Returns the requested session informationrxInfoSessionWithOptions(String id, BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(String)Get the Raft leader for the datacenter in which the agent is running.Returns the most recent events known by the agentrxListEventsWithOptions(EventListOptions options) Returns the most recent events known by the agent.rxListNodeSessions(String nodeId) Returns the active sessions for a given noderxListNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)Returns the active sessionsReturns the active sessions This is blocking query unlikelistSessions()Return all the checks that are registered with the local agent.Returns list of services registered with the local agent.rxMaintenanceService(MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"rxPassCheck(String checkId) Set status of the check to "passing".rxPassCheckWithNote(String checkId, String note) Set status of the check to "passing".Retrieves the Raft peers for the datacenter in which the the agent is running.rxPutValue(String key, String value) Adds specified key/value pairrxPutValueWithOptions(String key, String value, KeyValueOptions options) rxReadAclToken(String accessorId) Reads an ACL token with the given Accessor IDrxReadPolicy(String id) This endpoint reads an ACL policy with the given IDrxReadPolicyByName(String name) This endpoint reads an ACL policy with the given namerxRegisterCatalogService(Node nodeOptions, ServiceOptions serviceOptions) Register node with external servicerxRegisterCheck(CheckOptions checkOptions) Add a new check to the local agent.rxRegisterService(ServiceOptions serviceOptions) Adds a new service, with an optional health check, to the local agent.rxRenewSession(String id) Renews the given session.rxTransaction(TxnRequest request) Manages multiple operations inside a single, atomic transaction.rxUpdateAclToken(String accessorId, AclToken token) Update an existing Acl tokenrxUpdateCheck(String checkId, CheckStatus status) Set status of the check to given status.rxUpdateCheckWithNote(String checkId, CheckStatus status, String note) Set status of the check to given status.rxUpdatePolicy(String id, AclPolicy policy) This endpoint updates an existing ACL policyrxUpdatePreparedQuery(PreparedQueryDefinition definition) rxWarnCheck(String checkId) Set status of the check to "warning".rxWarnCheckWithNote(String checkId, String note) Set status of the check to "warning".toString()transaction(TxnRequest request) Manages multiple operations inside a single, atomic transaction.updateAclToken(String accessorId, AclToken token) Update an existing Acl tokenupdateCheck(String checkId, CheckStatus status) Set status of the check to given status.updateCheckWithNote(String checkId, CheckStatus status, String note) Set status of the check to given status.updatePolicy(String id, AclPolicy policy) This endpoint updates an existing ACL policyupdatePreparedQuery(PreparedQueryDefinition definition) Set status of the check to "warning".warnCheckWithNote(String checkId, String note) Set status of the check to "warning".
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ConsulClient
-
ConsulClient
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
create
Create a Consul client with default options.- Parameters:
vertx- the Vert.x instance- Returns:
- the client
-
create
Create a Consul client.- Parameters:
vertx- the Vert.x instanceoptions- the options- Returns:
- the client
-
agentInfo
Returns the configuration and member information of the local agent- Returns:
- a future provided with the configuration and member information of the local agent
-
rxAgentInfo
Returns the configuration and member information of the local agent- Returns:
- a future provided with the configuration and member information of the local agent
-
coordinateNodes
Returns the LAN network coordinates for all nodes in a given DC- Returns:
- a future provided with network coordinates of nodes in datacenter
-
rxCoordinateNodes
Returns the LAN network coordinates for all nodes in a given DC- Returns:
- a future provided with network coordinates of nodes in datacenter
-
coordinateNodesWithOptions
Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()- Parameters:
options- the blocking options- Returns:
- a future provided with network coordinates of nodes in datacenter
-
rxCoordinateNodesWithOptions
Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()- Parameters:
options- the blocking options- Returns:
- a future provided with network coordinates of nodes in datacenter
-
coordinateDatacenters
Returns the WAN network coordinates for all Consul servers, organized by DCs- Returns:
- a future provided with network coordinates for all Consul servers
-
rxCoordinateDatacenters
Returns the WAN network coordinates for all Consul servers, organized by DCs- Returns:
- a future provided with network coordinates for all Consul servers
-
getKeys
-
rxGetKeys
-
getKeysWithOptions
Returns the list of keys that corresponding to the specified key prefix.- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- a future provided with keys list
-
rxGetKeysWithOptions
Returns the list of keys that corresponding to the specified key prefix.- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- a future provided with keys list
-
getValue
-
rxGetValue
-
getValueWithOptions
Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found. This is blocking query unlikegetValue(String)- Parameters:
key- the keyoptions- the blocking options- Returns:
- a future provided with key/value pair
-
rxGetValueWithOptions
Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found. This is blocking query unlikegetValue(String)- Parameters:
key- the keyoptions- the blocking options- Returns:
- a future provided with key/value pair
-
deleteValue
Remove the key/value pair that corresponding to the specified key- Parameters:
key- the key- Returns:
- a future notified on complete
-
rxDeleteValue
Remove the key/value pair that corresponding to the specified key- Parameters:
key- the key- Returns:
- a future notified on complete
-
getValues
Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found.- Parameters:
keyPrefix- the prefix- Returns:
- a future provided with list of key/value pairs
-
rxGetValues
Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found.- Parameters:
keyPrefix- the prefix- Returns:
- a future provided with list of key/value pairs
-
getValuesWithOptions
Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found. This is blocking query unlikegetValues(String)- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- a future provided with list of key/value pairs
-
rxGetValuesWithOptions
Returns the list of key/value pairs that corresponding to the specified key prefix. An emptyKeyValueListobject will be returned if no such key prefix is found. This is blocking query unlikegetValues(String)- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- a future provided with list of key/value pairs
-
deleteValues
Removes all the key/value pair that corresponding to the specified key prefix- Parameters:
keyPrefix- the prefix- Returns:
- a future notified on complete
-
rxDeleteValues
Removes all the key/value pair that corresponding to the specified key prefix- Parameters:
keyPrefix- the prefix- Returns:
- a future notified on complete
-
putValue
-
rxPutValue
-
putValueWithOptions
- Parameters:
key- the keyvalue- the valueoptions- options used to push pair- Returns:
- a future provided with success of operation
-
rxPutValueWithOptions
- Parameters:
key- the keyvalue- the valueoptions- options used to push pair- Returns:
- a future provided with success of operation
-
transaction
Manages multiple operations inside a single, atomic transaction.- Parameters:
request- transaction request- Returns:
- a future provided with result of transaction
-
rxTransaction
Manages multiple operations inside a single, atomic transaction.- Parameters:
request- transaction request- Returns:
- a future provided with result of transaction
-
createAclPolicy
-
rxCreateAclPolicy
-
readPolicy
-
rxReadPolicy
-
readPolicyByName
This endpoint reads an ACL policy with the given name- Parameters:
name- unique name of created policy- Returns:
- a future of AclPolicy like in
readPolicy(String)
-
rxReadPolicyByName
This endpoint reads an ACL policy with the given name- Parameters:
name- unique name of created policy- Returns:
- a future of AclPolicy like in
readPolicy(String)
-
updatePolicy
-
rxUpdatePolicy
-
deletePolicy
-
rxDeletePolicy
-
getAclPolicies
-
rxGetAclPolicies
-
createAclToken
Create an Acl token- Parameters:
token- properties of the token- Returns:
- a future NewAclToken in which two fields accessorId and secretId. accessorId - required in the URL path or JSON body for getting, updating and cloning token. secretId - using in
ConsulClientOptions.
-
rxCreateAclToken
Create an Acl token- Parameters:
token- properties of the token- Returns:
- a future NewAclToken in which two fields accessorId and secretId. accessorId - required in the URL path or JSON body for getting, updating and cloning token. secretId - using in
ConsulClientOptions.
-
updateAclToken
Update an existing Acl token- Parameters:
accessorId- uuid of the tokentoken- properties of the token- Returns:
- a future NewAclToken like in
createAclToken(AclToken)
-
rxUpdateAclToken
Update an existing Acl token- Parameters:
accessorId- uuid of the tokentoken- properties of the token- Returns:
- a future NewAclToken like in
createAclToken(AclToken)
-
cloneAclToken
Clones an existing ACL token- Parameters:
accessorId- uuid of the tokencloneAclTokenOptions- properties of cloned token- Returns:
- a future NewAclToken like in
createAclToken(AclToken)
-
rxCloneAclToken
public Single<AclToken> rxCloneAclToken(String accessorId, CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL token- Parameters:
accessorId- uuid of the tokencloneAclTokenOptions- properties of cloned token- Returns:
- a future NewAclToken like in
createAclToken(AclToken)
-
getAclTokens
-
rxGetAclTokens
-
readAclToken
-
rxReadAclToken
-
deleteAclToken
-
rxDeleteAclToken
-
fireEvent
-
rxFireEvent
-
fireEventWithOptions
Fires a new user event- Parameters:
name- name of eventoptions- options used to create event- Returns:
- a future provided with properties of event
-
rxFireEventWithOptions
Fires a new user event- Parameters:
name- name of eventoptions- options used to create event- Returns:
- a future provided with properties of event
-
listEvents
-
rxListEvents
-
listEventsWithOptions
Returns the most recent events known by the agent. This is blocking query unlikelistEvents(). 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 insteadX-Consul-Indexmaps 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.
- Parameters:
options- the blocking options- Returns:
- a future provided with list of events
-
rxListEventsWithOptions
Returns the most recent events known by the agent. This is blocking query unlikelistEvents(). 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 insteadX-Consul-Indexmaps 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.
- Parameters:
options- the blocking options- Returns:
- a future provided with list of events
-
registerService
Adds a new service, with an optional health check, to the local agent.- Parameters:
serviceOptions- the options of new service- Returns:
- a future notified when complete
-
rxRegisterService
Adds a new service, with an optional health check, to the local agent.- Parameters:
serviceOptions- the options of new service- Returns:
- a future notified when complete
-
maintenanceService
Places a given service into "maintenance mode"- Parameters:
maintenanceOptions- the maintenance options- Returns:
- a future notified when complete
-
rxMaintenanceService
Places a given service into "maintenance mode"- Parameters:
maintenanceOptions- the maintenance options- Returns:
- a future notified when complete
-
deregisterService
Remove a service from the local agent. The agent will take care of deregistering the service with the Catalog. If there is an associated check, that is also deregistered.- Parameters:
id- the ID of service- Returns:
- a future notified when complete
-
rxDeregisterService
Remove a service from the local agent. The agent will take care of deregistering the service with the Catalog. If there is an associated check, that is also deregistered.- Parameters:
id- the ID of service- Returns:
- a future notified when complete
-
catalogServiceNodes
Returns the nodes providing a service- Parameters:
service- name of service- Returns:
- a future provided with list of nodes providing given service
-
rxCatalogServiceNodes
Returns the nodes providing a service- Parameters:
service- name of service- Returns:
- a future provided with list of nodes providing given service
-
catalogServiceNodesWithOptions
public Single<ServiceList> catalogServiceNodesWithOptions(String service, ServiceQueryOptions options) Returns the nodes providing a service- Parameters:
service- name of serviceoptions- options used to request services- Returns:
- a future provided with list of nodes providing given service
-
rxCatalogServiceNodesWithOptions
public Single<ServiceList> rxCatalogServiceNodesWithOptions(String service, ServiceQueryOptions options) Returns the nodes providing a service- Parameters:
service- name of serviceoptions- options used to request services- Returns:
- a future provided with list of nodes providing given service
-
catalogDatacenters
-
rxCatalogDatacenters
-
catalogNodes
-
rxCatalogNodes
-
catalogNodesWithOptions
Returns the nodes registered in a datacenter- Parameters:
options- options used to request nodes- Returns:
- a future provided with list of nodes
-
rxCatalogNodesWithOptions
Returns the nodes registered in a datacenter- Parameters:
options- options used to request nodes- Returns:
- a future provided with list of nodes
-
healthChecks
-
rxHealthChecks
-
healthChecksWithOptions
Returns the checks associated with the service- Parameters:
service- the service nameoptions- options used to request checks- Returns:
- a future provided with list of checks
-
rxHealthChecksWithOptions
Returns the checks associated with the service- Parameters:
service- the service nameoptions- options used to request checks- Returns:
- a future provided with list of checks
-
healthState
Returns the checks in the specified status- Parameters:
healthState- the health state- Returns:
- a future provided with list of checks
-
rxHealthState
Returns the checks in the specified status- Parameters:
healthState- the health state- Returns:
- a future provided with list of checks
-
healthStateWithOptions
Returns the checks in the specified status- Parameters:
healthState- the health stateoptions- options used to request checks- Returns:
- a future provided with list of checks
-
rxHealthStateWithOptions
public Single<CheckList> rxHealthStateWithOptions(HealthState healthState, CheckQueryOptions options) Returns the checks in the specified status- Parameters:
healthState- the health stateoptions- options used to request checks- Returns:
- a future provided with list of checks
-
healthServiceNodes
Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodes(String)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing state- Returns:
- a future provided with list of services
-
rxHealthServiceNodes
Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodes(String)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing state- Returns:
- a future provided with list of services
-
healthServiceNodesWithOptions
public Single<ServiceEntryList> healthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodesWithOptions(String, ServiceQueryOptions)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing stateoptions- options used to request services- Returns:
- a future provided with list of services
-
rxHealthServiceNodesWithOptions
public Single<ServiceEntryList> rxHealthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodesWithOptions(String, ServiceQueryOptions)endpoint; however, this endpoint automatically returns the status of the associated health check as well as any system level health checks.- Parameters:
service- the service namepassing- if true, filter results to only nodes with all checks in the passing stateoptions- options used to request services- Returns:
- a future provided with list of services
-
healthNodesWithOptions
Returns the checks specific to the node provided on the path.- Parameters:
node- the node name or IDoptions- options used to request node health checks- Returns:
- a future provided with list of services
-
rxHealthNodesWithOptions
Returns the checks specific to the node provided on the path.- Parameters:
node- the node name or IDoptions- options used to request node health checks- Returns:
- a future provided with list of services
-
catalogServices
Returns the services registered in a datacenter- Returns:
- a future provided with list of services
-
rxCatalogServices
Returns the services registered in a datacenter- Returns:
- a future provided with list of services
-
catalogServicesWithOptions
Returns the services registered in a datacenter This is blocking query unlikecatalogServices()- Parameters:
options- the blocking options- Returns:
- a future provided with list of services
-
rxCatalogServicesWithOptions
Returns the services registered in a datacenter This is blocking query unlikecatalogServices()- Parameters:
options- the blocking options- Returns:
- a future provided with list of services
-
catalogNodeServices
Returns the node's registered services- Parameters:
node- node name- Returns:
- a future provided with list of services
-
rxCatalogNodeServices
Returns the node's registered services- Parameters:
node- node name- Returns:
- a future provided with list of services
-
catalogNodeServicesWithOptions
public Single<ServiceList> catalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)- Parameters:
node- node nameoptions- the blocking options- Returns:
- a future provided with list of services
-
rxCatalogNodeServicesWithOptions
public Single<ServiceList> rxCatalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(String)- Parameters:
node- node nameoptions- the blocking options- Returns:
- a future provided with list of services
-
localServices
-
rxLocalServices
-
localChecks
-
rxLocalChecks
-
registerCheck
Add a new check to the local agent. The agent is responsible for managing the status of the check and keeping the Catalog in sync.- Parameters:
checkOptions- options used to register new check- Returns:
- a future notified when complete
-
rxRegisterCheck
Add a new check to the local agent. The agent is responsible for managing the status of the check and keeping the Catalog in sync.- Parameters:
checkOptions- options used to register new check- Returns:
- a future notified when complete
-
deregisterCheck
Remove a check from the local agent. The agent will take care of deregistering the check from the Catalog.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
rxDeregisterCheck
Remove a check from the local agent. The agent will take care of deregistering the check from the Catalog.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
passCheck
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
rxPassCheck
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
passCheckWithNote
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
rxPassCheckWithNote
Set status of the check to "passing". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
warnCheck
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
rxWarnCheck
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
warnCheckWithNote
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
rxWarnCheckWithNote
Set status of the check to "warning". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
failCheck
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
rxFailCheck
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of check- Returns:
- a future notified when complete
-
failCheckWithNote
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
rxFailCheckWithNote
Set status of the check to "critical". Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
updateCheck
Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checkstatus- new status of check- Returns:
- a future notified when complete
-
rxUpdateCheck
Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checkstatus- new status of check- Returns:
- a future notified when complete
-
updateCheckWithNote
Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checkstatus- new status of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
rxUpdateCheckWithNote
Set status of the check to given status. Used with a check that is of the TTL type. The TTL clock will be reset.- Parameters:
checkId- the ID of checkstatus- new status of checknote- specifies a human-readable message. This will be passed through to the check'sOutputfield.- Returns:
- a future notified when complete
-
leaderStatus
-
rxLeaderStatus
-
peersStatus
-
rxPeersStatus
-
createSession
-
rxCreateSession
-
createSessionWithOptions
Initialize a new session- Parameters:
options- options used to create session- Returns:
- a future provided with ID of new session
-
rxCreateSessionWithOptions
Initialize a new session- Parameters:
options- options used to create session- Returns:
- a future provided with ID of new session
-
infoSession
-
rxInfoSession
-
infoSessionWithOptions
Returns the requested session information This is blocking query unlikeinfoSession(String)- Parameters:
id- the ID of requested sessionoptions- the blocking options- Returns:
- a future provided with info of requested session
-
rxInfoSessionWithOptions
Returns the requested session information This is blocking query unlikeinfoSession(String)- Parameters:
id- the ID of requested sessionoptions- the blocking options- Returns:
- a future provided with info of requested session
-
renewSession
-
rxRenewSession
-
listSessions
Returns the active sessions- Returns:
- a future provided with list of sessions
-
rxListSessions
Returns the active sessions- Returns:
- a future provided with list of sessions
-
listSessionsWithOptions
Returns the active sessions This is blocking query unlikelistSessions()- Parameters:
options- the blocking options- Returns:
- a future provided with list of sessions
-
rxListSessionsWithOptions
Returns the active sessions This is blocking query unlikelistSessions()- Parameters:
options- the blocking options- Returns:
- a future provided with list of sessions
-
listNodeSessions
Returns the active sessions for a given node- Parameters:
nodeId- the ID of node- Returns:
- a future provided with list of sessions
-
rxListNodeSessions
Returns the active sessions for a given node- Parameters:
nodeId- the ID of node- Returns:
- a future provided with list of sessions
-
listNodeSessionsWithOptions
Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)- Parameters:
nodeId- the ID of nodeoptions- the blocking options- Returns:
- a future provided with list of sessions
-
rxListNodeSessionsWithOptions
public Single<SessionList> rxListNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(String)- Parameters:
nodeId- the ID of nodeoptions- the blocking options- Returns:
- a future provided with list of sessions
-
destroySession
Destroys the given session- Parameters:
id- the ID of session- Returns:
- a future notified when complete
-
rxDestroySession
Destroys the given session- Parameters:
id- the ID of session- Returns:
- a future notified when complete
-
createPreparedQuery
- Parameters:
definition- definition of the prepare query- Returns:
- a future provided with id of created prepare query
-
rxCreatePreparedQuery
- Parameters:
definition- definition of the prepare query- Returns:
- a future provided with id of created prepare query
-
getPreparedQuery
Returns an existing prepared query- Parameters:
id- the id of the query to read- Returns:
- a future provided with definition of the prepare query
-
rxGetPreparedQuery
Returns an existing prepared query- Parameters:
id- the id of the query to read- Returns:
- a future provided with definition of the prepare query
-
getAllPreparedQueries
Returns a list of all prepared queries.- Returns:
- a future provided with list of definitions of the all prepare queries
-
rxGetAllPreparedQueries
Returns a list of all prepared queries.- Returns:
- a future provided with list of definitions of the all prepare queries
-
updatePreparedQuery
- Parameters:
definition- definition of the prepare query- Returns:
- a future notified when complete
-
rxUpdatePreparedQuery
- Parameters:
definition- definition of the prepare query- Returns:
- a future notified when complete
-
deletePreparedQuery
Deletes an existing prepared query- Parameters:
id- the id of the query to delete- Returns:
- a future notified when complete
-
rxDeletePreparedQuery
Deletes an existing prepared query- Parameters:
id- the id of the query to delete- Returns:
- a future notified when complete
-
executePreparedQuery
Executes an existing prepared query.- Parameters:
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.- Returns:
- a future provided with response
-
rxExecutePreparedQuery
Executes an existing prepared query.- Parameters:
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.- Returns:
- a future provided with response
-
executePreparedQueryWithOptions
public Single<PreparedQueryExecuteResponse> executePreparedQueryWithOptions(String query, PreparedQueryExecuteOptions options) Executes an existing prepared query.- Parameters:
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 query- Returns:
- a future provided with response
-
rxExecutePreparedQueryWithOptions
public Single<PreparedQueryExecuteResponse> rxExecutePreparedQueryWithOptions(String query, PreparedQueryExecuteOptions options) Executes an existing prepared query.- Parameters:
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 query- Returns:
- a future provided with response
-
registerCatalogService
Register node with external service- Parameters:
nodeOptions- the options of new nodeserviceOptions- the options of new service- Returns:
- a future provided with response
-
rxRegisterCatalogService
Register node with external service- Parameters:
nodeOptions- the options of new nodeserviceOptions- the options of new service- Returns:
- a future provided with response
-
deregisterCatalogService
Deregister entities from the node or deregister the node itself.- Parameters:
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)- Returns:
- a future notified when complete
-
rxDeregisterCatalogService
Deregister entities from the node or deregister the node itself.- Parameters:
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)- Returns:
- a future notified when complete
-
close
public void close()Close the client and release its resources -
newInstance
-