Package io.vertx.rxjava3.ext.consul
Class ConsulClient
java.lang.Object
io.vertx.rxjava3.ext.consul.ConsulClient
- All Implemented Interfaces:
RxDelegate
A Vert.x service used to interact with Consul.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<JsonObject>Returns the configuration and member information of the local agentReturn all the datacenters that are known by the Consul serverio.reactivex.rxjava3.core.Single<NodeList>Returns the nodes registered in a datacenterio.reactivex.rxjava3.core.Single<ServiceList>catalogNodeServices(String node) Returns the node's registered servicesio.reactivex.rxjava3.core.Single<ServiceList>catalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(java.lang.String)io.reactivex.rxjava3.core.Single<NodeList>catalogNodesWithOptions(NodeQueryOptions options) Returns the nodes registered in a datacenterio.reactivex.rxjava3.core.Single<ServiceList>catalogServiceNodes(String service) Returns the nodes providing a serviceio.reactivex.rxjava3.core.Single<ServiceList>catalogServiceNodesWithOptions(String service, ServiceQueryOptions options) Returns the nodes providing a serviceio.reactivex.rxjava3.core.Single<ServiceList>Returns the services registered in a datacenterio.reactivex.rxjava3.core.Single<ServiceList>Returns the services registered in a datacenter This is blocking query unlikecatalogServices()io.reactivex.rxjava3.core.Single<AclToken>cloneAclToken(String accessorId, CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenvoidclose()Close the client and release its resourcesio.reactivex.rxjava3.core.Single<List<DcCoordinates>>Returns the WAN network coordinates for all Consul servers, organized by DCsio.reactivex.rxjava3.core.Single<CoordinateList>Returns the LAN network coordinates for all nodes in a given DCio.reactivex.rxjava3.core.Single<CoordinateList>Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()static ConsulClientcreate(io.vertx.rxjava3.core.Vertx vertx) Create a Consul client with default options.static ConsulClientcreate(io.vertx.rxjava3.core.Vertx vertx, ConsulClientOptions options) Create a Consul client.io.reactivex.rxjava3.core.Single<String>createAclPolicy(AclPolicy policy) Creates a new ACL policyio.reactivex.rxjava3.core.Single<AclToken>createAclToken(AclToken token) Create an Acl tokenio.reactivex.rxjava3.core.Single<String>createPreparedQuery(PreparedQueryDefinition definition) io.reactivex.rxjava3.core.Single<String>Initialize a new sessionio.reactivex.rxjava3.core.Single<String>createSessionWithOptions(SessionOptions options) Initialize a new sessionio.reactivex.rxjava3.core.Single<Boolean>deleteAclToken(String accessorId) Deletes an ACL tokenio.reactivex.rxjava3.core.Single<Boolean>deletePolicy(String id) This endpoint deletes an ACL policyio.reactivex.rxjava3.core.CompletableDeletes an existing prepared queryio.reactivex.rxjava3.core.CompletabledeleteValue(String key) Remove the key/value pair that corresponding to the specified keyio.reactivex.rxjava3.core.CompletabledeleteValues(String keyPrefix) Removes all the key/value pair that corresponding to the specified key prefixio.reactivex.rxjava3.core.CompletablederegisterCatalogService(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.io.reactivex.rxjava3.core.CompletablederegisterCheck(String checkId) Remove a check from the local agent.io.reactivex.rxjava3.core.CompletableRemove a service from the local agent.io.reactivex.rxjava3.core.CompletabledestroySession(String id) Destroys the given sessionbooleanio.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.CompletableSet status of the check to "critical".io.reactivex.rxjava3.core.CompletablefailCheckWithNote(String checkId, String note) Set status of the check to "critical".io.reactivex.rxjava3.core.Single<Event>Fires a new user eventio.reactivex.rxjava3.core.Single<Event>fireEventWithOptions(String name, EventOptions options) Fires a new user eventThis endpoint lists all the ACL policies.Get list of Acl tokenio.reactivex.rxjava3.core.Single<List<PreparedQueryDefinition>>Returns 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.io.reactivex.rxjava3.core.Single<PreparedQueryDefinition>Returns an existing prepared queryio.reactivex.rxjava3.core.Single<KeyValue>Returns key/value pair that corresponding to the specified key.io.reactivex.rxjava3.core.Single<KeyValueList>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.inthashCode()io.reactivex.rxjava3.core.Single<CheckList>healthChecks(String service) Returns the checks associated with the serviceio.reactivex.rxjava3.core.Single<CheckList>healthChecksWithOptions(String service, CheckQueryOptions options) Returns the checks associated with the serviceio.reactivex.rxjava3.core.Single<CheckList>healthNodesWithOptions(String node, CheckQueryOptions options) Returns the checks specific to the node provided on the path.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 statusio.reactivex.rxjava3.core.Single<CheckList>healthStateWithOptions(HealthState healthState, CheckQueryOptions options) Returns the checks in the specified statusio.reactivex.rxjava3.core.Single<Session>infoSession(String id) Returns the requested session informationio.reactivex.rxjava3.core.Single<Session>infoSessionWithOptions(String id, BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(java.lang.String)io.reactivex.rxjava3.core.Single<String>Get the Raft leader for the datacenter in which the agent is running.io.reactivex.rxjava3.core.Single<EventList>Returns the most recent events known by the agentio.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 nodeio.reactivex.rxjava3.core.Single<SessionList>listNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(java.lang.String)io.reactivex.rxjava3.core.Single<SessionList>Returns the active sessionsio.reactivex.rxjava3.core.Single<SessionList>Returns 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.io.reactivex.rxjava3.core.CompletablemaintenanceService(MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"static ConsulClientnewInstance(ConsulClient arg) io.reactivex.rxjava3.core.CompletableSet status of the check to "passing".io.reactivex.rxjava3.core.CompletablepassCheckWithNote(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.io.reactivex.rxjava3.core.Single<Boolean>Adds specified key/value pairio.reactivex.rxjava3.core.Single<Boolean>putValueWithOptions(String key, String value, KeyValueOptions options) io.reactivex.rxjava3.core.Single<AclToken>readAclToken(String accessorId) Reads an ACL token with the given Accessor IDio.reactivex.rxjava3.core.Single<AclPolicy>readPolicy(String id) This endpoint reads an ACL policy with the given IDio.reactivex.rxjava3.core.Single<AclPolicy>readPolicyByName(String name) This endpoint reads an ACL policy with the given nameio.reactivex.rxjava3.core.CompletableregisterCatalogService(Node nodeOptions, ServiceOptions serviceOptions) Register node with external serviceio.reactivex.rxjava3.core.CompletableregisterCheck(CheckOptions checkOptions) Add a new check to the local agent.io.reactivex.rxjava3.core.CompletableregisterService(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<JsonObject>Returns the configuration and member information of the local agentReturn all the datacenters that are known by the Consul serverio.reactivex.rxjava3.core.Single<NodeList>Returns the nodes registered in a datacenterio.reactivex.rxjava3.core.Single<ServiceList>rxCatalogNodeServices(String node) Returns the node's registered servicesio.reactivex.rxjava3.core.Single<ServiceList>rxCatalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(java.lang.String)io.reactivex.rxjava3.core.Single<NodeList>Returns the nodes registered in a datacenterio.reactivex.rxjava3.core.Single<ServiceList>rxCatalogServiceNodes(String service) Returns the nodes providing a serviceio.reactivex.rxjava3.core.Single<ServiceList>rxCatalogServiceNodesWithOptions(String service, ServiceQueryOptions options) Returns the nodes providing a serviceio.reactivex.rxjava3.core.Single<ServiceList>Returns the services registered in a datacenterio.reactivex.rxjava3.core.Single<ServiceList>Returns the services registered in a datacenter This is blocking query unlikecatalogServices()io.reactivex.rxjava3.core.Single<AclToken>rxCloneAclToken(String accessorId, CloneAclTokenOptions cloneAclTokenOptions) Clones an existing ACL tokenio.reactivex.rxjava3.core.Single<List<DcCoordinates>>Returns the WAN network coordinates for all Consul servers, organized by DCsio.reactivex.rxjava3.core.Single<CoordinateList>Returns the LAN network coordinates for all nodes in a given DCio.reactivex.rxjava3.core.Single<CoordinateList>Returns the LAN network coordinates for all nodes in a given DC This is blocking query unlikecoordinateNodes()io.reactivex.rxjava3.core.Single<String>rxCreateAclPolicy(AclPolicy policy) Creates a new ACL policyio.reactivex.rxjava3.core.Single<AclToken>rxCreateAclToken(AclToken token) Create an Acl tokenio.reactivex.rxjava3.core.Single<String>rxCreatePreparedQuery(PreparedQueryDefinition definition) io.reactivex.rxjava3.core.Single<String>Initialize a new sessionio.reactivex.rxjava3.core.Single<String>rxCreateSessionWithOptions(SessionOptions options) Initialize a new sessionio.reactivex.rxjava3.core.Single<Boolean>rxDeleteAclToken(String accessorId) Deletes an ACL tokenio.reactivex.rxjava3.core.Single<Boolean>rxDeletePolicy(String id) This endpoint deletes an ACL policyio.reactivex.rxjava3.core.CompletableDeletes an existing prepared queryio.reactivex.rxjava3.core.CompletablerxDeleteValue(String key) Remove the key/value pair that corresponding to the specified keyio.reactivex.rxjava3.core.CompletablerxDeleteValues(String keyPrefix) Removes all the key/value pair that corresponding to the specified key prefixio.reactivex.rxjava3.core.CompletablerxDeregisterCatalogService(String nodeId, String serviceId) Deregister entities from the node or deregister the node itself.io.reactivex.rxjava3.core.CompletablerxDeregisterCheck(String checkId) Remove a check from the local agent.io.reactivex.rxjava3.core.CompletableRemove a service from the local agent.io.reactivex.rxjava3.core.CompletableDestroys the given sessionio.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.CompletablerxFailCheck(String checkId) Set status of the check to "critical".io.reactivex.rxjava3.core.CompletablerxFailCheckWithNote(String checkId, String note) Set status of the check to "critical".io.reactivex.rxjava3.core.Single<Event>rxFireEvent(String name) Fires a new user eventio.reactivex.rxjava3.core.Single<Event>rxFireEventWithOptions(String name, EventOptions options) Fires a new user eventThis endpoint lists all the ACL policies.Get list of Acl tokenio.reactivex.rxjava3.core.Single<List<PreparedQueryDefinition>>Returns 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.io.reactivex.rxjava3.core.Single<PreparedQueryDefinition>Returns an existing prepared queryio.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 serviceio.reactivex.rxjava3.core.Single<CheckList>rxHealthChecksWithOptions(String service, CheckQueryOptions options) Returns the checks associated with the serviceio.reactivex.rxjava3.core.Single<CheckList>rxHealthNodesWithOptions(String node, CheckQueryOptions options) Returns the checks specific to the node provided on the path.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 statusio.reactivex.rxjava3.core.Single<CheckList>rxHealthStateWithOptions(HealthState healthState, CheckQueryOptions options) Returns the checks in the specified statusio.reactivex.rxjava3.core.Single<Session>rxInfoSession(String id) Returns the requested session informationio.reactivex.rxjava3.core.Single<Session>rxInfoSessionWithOptions(String id, BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(java.lang.String)io.reactivex.rxjava3.core.Single<String>Get the Raft leader for the datacenter in which the agent is running.io.reactivex.rxjava3.core.Single<EventList>Returns the most recent events known by the agentio.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 nodeio.reactivex.rxjava3.core.Single<SessionList>rxListNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(java.lang.String)io.reactivex.rxjava3.core.Single<SessionList>Returns the active sessionsio.reactivex.rxjava3.core.Single<SessionList>Returns 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.io.reactivex.rxjava3.core.CompletablerxMaintenanceService(MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"io.reactivex.rxjava3.core.CompletablerxPassCheck(String checkId) Set status of the check to "passing".io.reactivex.rxjava3.core.CompletablerxPassCheckWithNote(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.io.reactivex.rxjava3.core.Single<Boolean>rxPutValue(String key, String value) Adds specified key/value pairio.reactivex.rxjava3.core.Single<Boolean>rxPutValueWithOptions(String key, String value, KeyValueOptions options) io.reactivex.rxjava3.core.Single<AclToken>rxReadAclToken(String accessorId) Reads an ACL token with the given Accessor IDio.reactivex.rxjava3.core.Single<AclPolicy>rxReadPolicy(String id) This endpoint reads an ACL policy with the given IDio.reactivex.rxjava3.core.Single<AclPolicy>rxReadPolicyByName(String name) This endpoint reads an ACL policy with the given nameio.reactivex.rxjava3.core.CompletablerxRegisterCatalogService(Node nodeOptions, ServiceOptions serviceOptions) Register node with external serviceio.reactivex.rxjava3.core.CompletablerxRegisterCheck(CheckOptions checkOptions) Add a new check to the local agent.io.reactivex.rxjava3.core.CompletablerxRegisterService(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<AclToken>rxUpdateAclToken(String accessorId, AclToken token) Update an existing Acl tokenio.reactivex.rxjava3.core.CompletablerxUpdateCheck(String checkId, CheckStatus status) Set status of the check to given status.io.reactivex.rxjava3.core.CompletablerxUpdateCheckWithNote(String checkId, CheckStatus status, String note) Set status of the check to given status.io.reactivex.rxjava3.core.Single<AclPolicy>rxUpdatePolicy(String id, AclPolicy policy) This endpoint updates an existing ACL policyio.reactivex.rxjava3.core.CompletablerxUpdatePreparedQuery(PreparedQueryDefinition definition) io.reactivex.rxjava3.core.CompletablerxWarnCheck(String checkId) Set status of the check to "warning".io.reactivex.rxjava3.core.CompletablerxWarnCheckWithNote(String checkId, String note) Set status of the check to "warning".toString()io.reactivex.rxjava3.core.Single<TxnResponse>transaction(TxnRequest request) Manages multiple operations inside a single, atomic transaction.io.reactivex.rxjava3.core.Single<AclToken>updateAclToken(String accessorId, AclToken token) Update an existing Acl tokenio.reactivex.rxjava3.core.CompletableupdateCheck(String checkId, CheckStatus status) Set status of the check to given status.io.reactivex.rxjava3.core.CompletableupdateCheckWithNote(String checkId, CheckStatus status, String note) Set status of the check to given status.io.reactivex.rxjava3.core.Single<AclPolicy>updatePolicy(String id, AclPolicy policy) This endpoint updates an existing ACL policyio.reactivex.rxjava3.core.CompletableupdatePreparedQuery(PreparedQueryDefinition definition) io.reactivex.rxjava3.core.CompletableSet status of the check to "warning".io.reactivex.rxjava3.core.CompletablewarnCheckWithNote(String checkId, String note) Set status of the check to "warning".
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ConsulClient
-
ConsulClient
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getDelegate
- Specified by:
getDelegatein interfaceRxDelegate
-
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
public 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 unlikecoordinateNodes()- Parameters:
options- the blocking options- Returns:
- a future provided with network coordinates of nodes in datacenter
-
rxCoordinateNodesWithOptions
public 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 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
Returns the list of keys that corresponding to the specified key prefix.- Parameters:
keyPrefix- the prefix- Returns:
- a future provided with keys list
-
rxGetKeys
Returns the list of keys that corresponding to the specified key prefix.- Parameters:
keyPrefix- the prefix- Returns:
- a future provided with keys list
-
getKeysWithOptions
public io.reactivex.rxjava3.core.Single<List<String>> getKeysWithOptions(String keyPrefix, BlockingQueryOptions options) 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
public io.reactivex.rxjava3.core.Single<List<String>> rxGetKeysWithOptions(String keyPrefix, BlockingQueryOptions options) 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
Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found.- Parameters:
key- the key- Returns:
- a future provided with key/value pair
-
rxGetValue
Returns key/value pair that corresponding to the specified key. An emptyKeyValueobject will be returned if no such key is found.- Parameters:
key- the key- Returns:
- a future provided with key/value pair
-
getValueWithOptions
public io.reactivex.rxjava3.core.Single<KeyValue> getValueWithOptions(String key, BlockingQueryOptions options) 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(java.lang.String)- Parameters:
key- the keyoptions- the blocking options- Returns:
- a future provided with key/value pair
-
rxGetValueWithOptions
public io.reactivex.rxjava3.core.Single<KeyValue> rxGetValueWithOptions(String key, BlockingQueryOptions options) 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(java.lang.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
public 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. An emptyKeyValueListobject will be returned if no such key prefix is found. This is blocking query unlikegetValues(java.lang.String)- Parameters:
keyPrefix- the prefixoptions- the blocking options- Returns:
- a future provided with list of key/value pairs
-
rxGetValuesWithOptions
public 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. An emptyKeyValueListobject will be returned if no such key prefix is found. This is blocking query unlikegetValues(java.lang.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
Adds specified key/value pair- Parameters:
key- the keyvalue- the value- Returns:
- a future provided with success of operation
-
rxPutValue
Adds specified key/value pair- Parameters:
key- the keyvalue- the value- Returns:
- a future provided with success of operation
-
putValueWithOptions
public io.reactivex.rxjava3.core.Single<Boolean> putValueWithOptions(String key, String value, KeyValueOptions options) - Parameters:
key- the keyvalue- the valueoptions- options used to push pair- Returns:
- a future provided with success of operation
-
rxPutValueWithOptions
public io.reactivex.rxjava3.core.Single<Boolean> rxPutValueWithOptions(String key, String value, KeyValueOptions options) - 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
Creates a new ACL policy- Parameters:
policy- properties of policy- Returns:
- a future provided with ID of created policy
-
rxCreateAclPolicy
Creates a new ACL policy- Parameters:
policy- properties of policy- Returns:
- a future provided with ID of created policy
-
readPolicy
This endpoint reads an ACL policy with the given ID- Parameters:
id- uuid policy- Returns:
- a future of AclPolicy
-
rxReadPolicy
This endpoint reads an ACL policy with the given ID- Parameters:
id- uuid policy- Returns:
- a future of AclPolicy
-
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(java.lang.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(java.lang.String)
-
updatePolicy
This endpoint updates an existing ACL policy- Parameters:
id- uuid of existing policypolicy- options that will be applied to the existing policy- Returns:
- a future of AclPolicy
-
rxUpdatePolicy
This endpoint updates an existing ACL policy- Parameters:
id- uuid of existing policypolicy- options that will be applied to the existing policy- Returns:
- a future of AclPolicy
-
deletePolicy
This endpoint deletes an ACL policy- Parameters:
id- uuid of existing policy- Returns:
- a future boolean value: true or false, indicating whether the deletion was successful
-
rxDeletePolicy
This endpoint deletes an ACL policy- Parameters:
id- uuid of existing policy- Returns:
- a future boolean value: true or false, indicating whether the deletion was successful
-
getAclPolicies
This endpoint lists all the ACL policies. Note - The policies rules are not included in the listing and must be retrieved by the policy reading endpoint- Returns:
- a future of all acl policies
-
rxGetAclPolicies
This endpoint lists all the ACL policies. Note - The policies rules are not included in the listing and must be retrieved by the policy reading endpoint- Returns:
- a future of all acl policies
-
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(io.vertx.ext.consul.token.AclToken)
-
rxUpdateAclToken
public io.reactivex.rxjava3.core.Single<AclToken> rxUpdateAclToken(String accessorId, AclToken token) Update an existing Acl token- Parameters:
accessorId- uuid of the tokentoken- properties of the token- Returns:
- a future NewAclToken like in
createAclToken(io.vertx.ext.consul.token.AclToken)
-
cloneAclToken
public io.reactivex.rxjava3.core.Single<AclToken> cloneAclToken(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(io.vertx.ext.consul.token.AclToken)
-
rxCloneAclToken
public io.reactivex.rxjava3.core.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(io.vertx.ext.consul.token.AclToken)
-
getAclTokens
Get list of Acl token- Returns:
- a future provided with list of tokens
-
rxGetAclTokens
Get list of Acl token- Returns:
- a future provided with list of tokens
-
readAclToken
Reads an ACL token with the given Accessor ID- Parameters:
accessorId- uuid of token- Returns:
- a future provided with token
-
rxReadAclToken
Reads an ACL token with the given Accessor ID- Parameters:
accessorId- uuid of token- Returns:
- a future provided with token
-
deleteAclToken
Deletes an ACL token- Parameters:
accessorId- uuid of token- Returns:
- a future boolean value: true or false, indicating whether the deletion was successful.
-
rxDeleteAclToken
Deletes an ACL token- Parameters:
accessorId- uuid of token- Returns:
- a future boolean value: true or false, indicating whether the deletion was successful.
-
fireEvent
Fires a new user event- Parameters:
name- name of event- Returns:
- a future provided with properties of event
-
rxFireEvent
Fires a new user event- Parameters:
name- name of event- Returns:
- a future provided with properties of event
-
fireEventWithOptions
public io.reactivex.rxjava3.core.Single<Event> fireEventWithOptions(String name, EventOptions options) Fires a new user event- Parameters:
name- name of eventoptions- options used to create event- Returns:
- a future provided with properties of event
-
rxFireEventWithOptions
public io.reactivex.rxjava3.core.Single<Event> rxFireEventWithOptions(String name, EventOptions options) Fires a new user event- Parameters:
name- name of eventoptions- options used to create event- Returns:
- a future provided with properties of event
-
listEvents
Returns the most recent events known by the agent- Returns:
- a future provided with list of events
-
rxListEvents
Returns the most recent events known by the agent- Returns:
- a future provided with list of events
-
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
public io.reactivex.rxjava3.core.Single<EventList> rxListEventsWithOptions(EventListOptions options) 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
public io.reactivex.rxjava3.core.Completable maintenanceService(MaintenanceOptions maintenanceOptions) Places a given service into "maintenance mode"- Parameters:
maintenanceOptions- the maintenance options- Returns:
- a future notified when complete
-
rxMaintenanceService
public io.reactivex.rxjava3.core.Completable rxMaintenanceService(MaintenanceOptions maintenanceOptions) 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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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
Return all the datacenters that are known by the Consul server- Returns:
- a future provided with list of datacenters
-
rxCatalogDatacenters
Return all the datacenters that are known by the Consul server- Returns:
- a future provided with list of datacenters
-
catalogNodes
Returns the nodes registered in a datacenter- Returns:
- a future provided with list of nodes
-
rxCatalogNodes
Returns the nodes registered in a datacenter- Returns:
- a future provided with list of nodes
-
catalogNodesWithOptions
Returns the nodes registered in a datacenter- Parameters:
options- options used to request nodes- Returns:
- a future provided with list of nodes
-
rxCatalogNodesWithOptions
public io.reactivex.rxjava3.core.Single<NodeList> rxCatalogNodesWithOptions(NodeQueryOptions options) Returns the nodes registered in a datacenter- Parameters:
options- options used to request nodes- Returns:
- a future provided with list of nodes
-
healthChecks
Returns the checks associated with the service- Parameters:
service- the service name- Returns:
- a future provided with list of checks
-
rxHealthChecks
Returns the checks associated with the service- Parameters:
service- the service name- Returns:
- a future provided with list of checks
-
healthChecksWithOptions
public io.reactivex.rxjava3.core.Single<CheckList> healthChecksWithOptions(String service, CheckQueryOptions options) 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
public io.reactivex.rxjava3.core.Single<CheckList> rxHealthChecksWithOptions(String service, CheckQueryOptions options) 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
public io.reactivex.rxjava3.core.Single<CheckList> healthStateWithOptions(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
-
rxHealthStateWithOptions
public io.reactivex.rxjava3.core.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
public io.reactivex.rxjava3.core.Single<ServiceEntryList> healthServiceNodes(String service, boolean passing) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodes(java.lang.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
public io.reactivex.rxjava3.core.Single<ServiceEntryList> rxHealthServiceNodes(String service, boolean passing) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodes(java.lang.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 io.reactivex.rxjava3.core.Single<ServiceEntryList> healthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodesWithOptions(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.- 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 io.reactivex.rxjava3.core.Single<ServiceEntryList> rxHealthServiceNodesWithOptions(String service, boolean passing, ServiceQueryOptions options) Returns the nodes providing the service. This endpoint is very similar to thecatalogServiceNodesWithOptions(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.- 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
public io.reactivex.rxjava3.core.Single<CheckList> healthNodesWithOptions(String node, CheckQueryOptions options) 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
public io.reactivex.rxjava3.core.Single<CheckList> rxHealthNodesWithOptions(String node, CheckQueryOptions options) 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
public io.reactivex.rxjava3.core.Single<ServiceList> catalogServicesWithOptions(BlockingQueryOptions options) 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
public io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogServicesWithOptions(BlockingQueryOptions options) 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 io.reactivex.rxjava3.core.Single<ServiceList> catalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(java.lang.String)- Parameters:
node- node nameoptions- the blocking options- Returns:
- a future provided with list of services
-
rxCatalogNodeServicesWithOptions
public io.reactivex.rxjava3.core.Single<ServiceList> rxCatalogNodeServicesWithOptions(String node, BlockingQueryOptions options) Returns the node's registered services This is blocking query unlikecatalogNodeServices(java.lang.String)- Parameters:
node- node nameoptions- the blocking options- Returns:
- a future provided with list of services
-
localServices
Returns list of services registered with the local agent.- Returns:
- a future provided with list of services
-
rxLocalServices
Returns list of services registered with the local agent.- Returns:
- a future provided with list of services
-
localChecks
Return all the checks that are registered with the local agent.- Returns:
- a future provided with list of checks
-
rxLocalChecks
Return all the checks that are registered with the local agent.- Returns:
- a future provided with list of checks
-
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
public io.reactivex.rxjava3.core.Completable updateCheckWithNote(String checkId, CheckStatus status, String note) 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
public io.reactivex.rxjava3.core.Completable rxUpdateCheckWithNote(String checkId, CheckStatus status, String note) 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
Get the Raft leader for the datacenter in which the agent is running. It returns an address in format "10.1.10.12:8300"- Returns:
- a future provided with address of cluster leader
-
rxLeaderStatus
Get the Raft leader for the datacenter in which the agent is running. It returns an address in format "10.1.10.12:8300"- Returns:
- a future provided with address of cluster leader
-
peersStatus
Retrieves the Raft peers for the datacenter in which the the agent is running. It returns a list of addresses "10.1.10.12:8300", "10.1.10.13:8300"- Returns:
- a future provided with list of peers
-
rxPeersStatus
Retrieves the Raft peers for the datacenter in which the the agent is running. It returns a list of addresses "10.1.10.12:8300", "10.1.10.13:8300"- Returns:
- a future provided with list of peers
-
createSession
Initialize a new session- Returns:
- a future provided with ID of new session
-
rxCreateSession
Initialize a new session- Returns:
- a future provided with ID of new session
-
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
Returns the requested session information- Parameters:
id- the ID of requested session- Returns:
- a future provided with info of requested session
-
rxInfoSession
Returns the requested session information- Parameters:
id- the ID of requested session- Returns:
- a future provided with info of requested session
-
infoSessionWithOptions
public io.reactivex.rxjava3.core.Single<Session> infoSessionWithOptions(String id, BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(java.lang.String)- Parameters:
id- the ID of requested sessionoptions- the blocking options- Returns:
- a future provided with info of requested session
-
rxInfoSessionWithOptions
public io.reactivex.rxjava3.core.Single<Session> rxInfoSessionWithOptions(String id, BlockingQueryOptions options) Returns the requested session information This is blocking query unlikeinfoSession(java.lang.String)- Parameters:
id- the ID of requested sessionoptions- the blocking options- Returns:
- a future provided with info of requested session
-
renewSession
Renews the given session. This is used with sessions that have a TTL, and it extends the expiration by the TTL- Parameters:
id- the ID of session that should be renewed- Returns:
- a future provided with info of renewed session
-
rxRenewSession
Renews the given session. This is used with sessions that have a TTL, and it extends the expiration by the TTL- Parameters:
id- the ID of session that should be renewed- Returns:
- a future provided with info of renewed session
-
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
public io.reactivex.rxjava3.core.Single<SessionList> listSessionsWithOptions(BlockingQueryOptions options) Returns the active sessions This is blocking query unlikelistSessions()- Parameters:
options- the blocking options- Returns:
- a future provided with list of sessions
-
rxListSessionsWithOptions
public io.reactivex.rxjava3.core.Single<SessionList> rxListSessionsWithOptions(BlockingQueryOptions options) 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
public io.reactivex.rxjava3.core.Single<SessionList> listNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(java.lang.String)- Parameters:
nodeId- the ID of nodeoptions- the blocking options- Returns:
- a future provided with list of sessions
-
rxListNodeSessionsWithOptions
public io.reactivex.rxjava3.core.Single<SessionList> rxListNodeSessionsWithOptions(String nodeId, BlockingQueryOptions options) Returns the active sessions for a given node This is blocking query unlikelistNodeSessions(java.lang.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
public io.reactivex.rxjava3.core.Single<String> createPreparedQuery(PreparedQueryDefinition definition) - Parameters:
definition- definition of the prepare query- Returns:
- a future provided with id of created prepare query
-
rxCreatePreparedQuery
public io.reactivex.rxjava3.core.Single<String> rxCreatePreparedQuery(PreparedQueryDefinition definition) - 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
public io.reactivex.rxjava3.core.Completable updatePreparedQuery(PreparedQueryDefinition definition) - Parameters:
definition- definition of the prepare query- Returns:
- a future notified when complete
-
rxUpdatePreparedQuery
public io.reactivex.rxjava3.core.Completable rxUpdatePreparedQuery(PreparedQueryDefinition definition) - 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
public io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> executePreparedQuery(String query) 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
public io.reactivex.rxjava3.core.Single<PreparedQueryExecuteResponse> rxExecutePreparedQuery(String query) 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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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
public io.reactivex.rxjava3.core.Completable registerCatalogService(Node nodeOptions, ServiceOptions serviceOptions) Register node with external service- Parameters:
nodeOptions- the options of new nodeserviceOptions- the options of new service- Returns:
- a future provided with response
-
rxRegisterCatalogService
public io.reactivex.rxjava3.core.Completable rxRegisterCatalogService(Node nodeOptions, ServiceOptions serviceOptions) Register node with external service- Parameters:
nodeOptions- the options of new nodeserviceOptions- the options of new service- Returns:
- a future provided with response
-
deregisterCatalogService
public io.reactivex.rxjava3.core.Completable deregisterCatalogService(String nodeId, String serviceId) 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
public io.reactivex.rxjava3.core.Completable rxDeregisterCatalogService(String nodeId, String serviceId) 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
-