Uses of Class
org.kiwiproject.consul.option.QueryOptions
Packages that use QueryOptions
Package
Description
-
Uses of QueryOptions in org.kiwiproject.consul
Methods in org.kiwiproject.consul with parameters of type QueryOptionsModifier and TypeMethodDescriptionvoidAgentClient.deregister(String serviceId, QueryOptions options) De-register a particular service from the Consul Agent.voidCatalogClient.deregister(CatalogDeregistration deregistration, QueryOptions options) De-registers a service or node.voidPreparedQueryClient.execute(String nameOrId, QueryOptions options, Callback<QueryResults> callback) Executes a prepared query by its name or ID.HealthClient.getAllServiceInstances(String service, QueryOptions queryOptions) Retrieves the healthchecks for all nodes in a given datacenter withQueryOptions.voidHealthClient.getAllServiceInstances(String service, QueryOptions queryOptions, ConsulResponseCallback<List<ServiceHealth>> callback) Asynchronously retrieves the healthchecks for all nodes in a given datacenter withQueryOptions.AgentClient.getChecks(QueryOptions queryOptions) Retrieves all checks registered with the Agent.HealthClient.getChecksByState(State state, QueryOptions queryOptions) Retrieves the healthchecks for a state in a given datacenter withQueryOptions.voidHealthClient.getChecksByState(State state, QueryOptions queryOptions, ConsulResponseCallback<List<HealthCheck>> callback) Asynchronously retrieves the healthchecks for a state in a given datacenter withQueryOptions.KeyValueClient.getConsulResponseWithValue(String key, QueryOptions queryOptions) Returns aConsulResponsefor a specific key from the kv store.KeyValueClient.getConsulResponseWithValues(String key, QueryOptions queryOptions) Retrieves aConsulResponsewith a list ofValueobjects along with consul response headers for a specific key from the key/value store.CatalogClient.getDatacenters(QueryOptions queryOptions) Get the list of datacenters with query optionsHealthClient.getHealthyServiceInstances(String service, QueryOptions queryOptions) Retrieves the healthchecks for all healthy service instances in a given datacenter withQueryOptions.voidHealthClient.getHealthyServiceInstances(String service, QueryOptions queryOptions, ConsulResponseCallback<List<ServiceHealth>> callback) Asynchronously retrieves the healthchecks for all healthy service instances in a given datacenter withQueryOptions.KeyValueClient.getKeys(String key, String separator, QueryOptions queryOptions) Retrieves a list of matching keys for the given key.KeyValueClient.getKeys(String key, QueryOptions queryOptions) Retrieves a list of matching keys for the given key.StatusClient.getLeader(QueryOptions queryOptions) Retrieves the host/port of the Consul leader.AgentClient.getMembers(QueryOptions queryOptions) Retrieves all members that the Agent can see in the gossip pool.CatalogClient.getNode(String node, QueryOptions queryOptions) Retrieves a single node for a given datacenter withQueryOptions.voidCatalogClient.getNode(String node, QueryOptions queryOptions, ConsulResponseCallback<CatalogNode> callback) Asynchronously retrieves the single node for a given datacenter withQueryOptions.HealthClient.getNodeChecks(String node, QueryOptions queryOptions) Retrieves the healthchecks for a node in a given datacenter withQueryOptions.CatalogClient.getNodes(QueryOptions queryOptions) Retrieves all nodes for a given datacenter withQueryOptions.voidCatalogClient.getNodes(QueryOptions queryOptions, ConsulResponseCallback<List<Node>> callback) Asynchronously retrieves the nodes for a given datacenter withQueryOptions.StatusClient.getPeers(QueryOptions queryOptions) Retrieves a list of host/ports for raft peers.AgentClient.getService(String id, QueryOptions queryOptions) Retrieves all information about a service.voidAgentClient.getService(String id, QueryOptions queryOptions, ConsulResponseCallback<FullService> callback) Retrieves all information about a service.CatalogClient.getService(String service, QueryOptions queryOptions) Retrieves a single service for a given datacenter withQueryOptions.voidCatalogClient.getService(String service, QueryOptions queryOptions, ConsulResponseCallback<List<CatalogService>> callback) Asynchronously retrieves the single service for a given datacenter withQueryOptions.HealthClient.getServiceChecks(String service, QueryOptions queryOptions) Retrieves the healthchecks for a service in a given datacenter withQueryOptions.voidHealthClient.getServiceChecks(String service, QueryOptions queryOptions, ConsulResponseCallback<List<HealthCheck>> callback) Asynchronously retrieves the healthchecks for a service in a given datacenter withQueryOptions.AgentClient.getServices(QueryOptions queryOptions) Retrieves all services registered with the Agent.CatalogClient.getServices(QueryOptions queryOptions) Retrieves all services for a given datacenter.voidCatalogClient.getServices(QueryOptions queryOptions, ConsulResponseCallback<Map<String, List<String>>> callback) Asynchronously retrieves the services for a given datacenter.KeyValueClient.getValue(String key, QueryOptions queryOptions) Retrieves aValuefor a specific key from the key/value store.voidKeyValueClient.getValue(String key, QueryOptions queryOptions, ConsulResponseCallback<Optional<Value>> callback) Asynchronously retrieves aValuefor a specific key from the key/value store.KeyValueClient.getValues(String key, QueryOptions queryOptions) Retrieves a list ofValueobjects for a specific key from the key/value store.voidKeyValueClient.getValues(String key, QueryOptions queryOptions, ConsulResponseCallback<List<Value>> callback) Asynchronously retrieves a list ofValueobjects for a specific key from the key/value store.booleanAgentClient.join(String address, QueryOptions queryOptions) GET /v1/agent/join/{address}?queryOptionsEventClient.listEvents(String name, QueryOptions queryOptions) Lists events for the Consul agent.voidEventClient.listEvents(String name, QueryOptions queryOptions, EventResponseCallback callback) Asynchronously lists events for the Consul agent.EventClient.listEvents(QueryOptions queryOptions) Lists events for the Consul agent.voidEventClient.listEvents(QueryOptions queryOptions, EventResponseCallback callback) Asynchronously lists events for the Consul agent.voidAgentClient.register(Registration registration, QueryOptions options) voidAgentClient.register(Registration registration, QueryOptions options, QueryParameterOptions queryParameterOptions) Registers the client as a service with Consul.voidCatalogClient.register(CatalogRegistration registration, QueryOptions options) Registers a service or node.voidSnapshotClient.restore(File sourceFile, QueryOptions queryOptions, Callback<Void> callback) Restores a snapshot stored in a file.voidSnapshotClient.save(File destinationFile, QueryOptions queryOptions, Callback<BigInteger> callback) Requests a new snapshot and save it in a file.voidAgentClient.toggleMaintenanceMode(String serviceId, QueryOptions queryOptions) Toggles maintenance mode for a service ID. -
Uses of QueryOptions in org.kiwiproject.consul.cache
Methods in org.kiwiproject.consul.cache that return QueryOptionsModifier and TypeMethodDescriptionprotected static QueryOptionsConsulCache.watchParams(BigInteger index, int blockSeconds, QueryOptions queryOptions) Methods in org.kiwiproject.consul.cache with parameters of type QueryOptionsModifier and TypeMethodDescriptionstatic HealthCheckCacheHealthCheckCache.newCache(HealthClient healthClient, State checkState, int watchSeconds, QueryOptions queryOptions) static HealthCheckCacheHealthCheckCache.newCache(HealthClient healthClient, State checkState, int watchSeconds, QueryOptions queryOptions, Function<HealthCheck, String> keyExtractor) static HealthCheckCacheHealthCheckCache.newCache(HealthClient healthClient, State checkState, int watchSeconds, QueryOptions queryOptions, Function<HealthCheck, String> keyExtractor, ScheduledExecutorService callbackExecutorService) Factory method to construct a string/HealthCheckmap for a particularState.static KVCacheKVCache.newCache(KeyValueClient kvClient, String rootPath, int watchSeconds, QueryOptions queryOptions) static KVCacheKVCache.newCache(KeyValueClient kvClient, String rootPath, int watchSeconds, QueryOptions queryOptions, ScheduledExecutorService callbackExecutorService) static NodesCatalogCacheNodesCatalogCache.newCache(CatalogClient catalogClient, QueryOptions queryOptions, int watchSeconds) static NodesCatalogCacheNodesCatalogCache.newCache(CatalogClient catalogClient, QueryOptions queryOptions, int watchSeconds, ScheduledExecutorService callbackExecutorService) static ServiceCatalogCacheServiceCatalogCache.newCache(CatalogClient catalogClient, String serviceName, QueryOptions queryOptions, int watchSeconds) static ServiceCatalogCacheServiceCatalogCache.newCache(CatalogClient catalogClient, String serviceName, QueryOptions queryOptions, int watchSeconds, ScheduledExecutorService callbackExecutorService) static ServiceHealthCacheServiceHealthCache.newCache(HealthClient healthClient, String serviceName, boolean passing, int watchSeconds, QueryOptions queryOptions) static ServiceHealthCacheServiceHealthCache.newCache(HealthClient healthClient, String serviceName, boolean passing, int watchSeconds, QueryOptions queryOptions, Function<ServiceHealth, ServiceHealthKey> keyExtractor) static ServiceHealthCacheServiceHealthCache.newCache(HealthClient healthClient, String serviceName, boolean passing, int watchSeconds, QueryOptions queryOptions, Function<ServiceHealth, ServiceHealthKey> keyExtractor, ScheduledExecutorService callbackExecutorService) Factory method to construct a string/ServiceHealthmap for a particular service.static ServiceHealthCacheServiceHealthCache.newCache(HealthClient healthClient, String serviceName, boolean passing, QueryOptions queryOptions, int watchSeconds) protected static QueryOptionsConsulCache.watchParams(BigInteger index, int blockSeconds, QueryOptions queryOptions) -
Uses of QueryOptions in org.kiwiproject.consul.option
Subclasses of QueryOptions in org.kiwiproject.consul.optionFields in org.kiwiproject.consul.option declared as QueryOptionsMethods in org.kiwiproject.consul.option with parameters of type QueryOptionsModifier and TypeMethodDescriptionstatic ImmutableQueryOptionsImmutableQueryOptions.copyOf(QueryOptions instance) Creates an immutable copy of aQueryOptionsvalue.ImmutableQueryOptions.Builder.from(QueryOptions instance) Fill a builder with attribute values from the providedorg.kiwiproject.consul.option.QueryOptionsinstance.