Class CheckQueryOptions
java.lang.Object
io.vertx.ext.consul.CheckQueryOptions
Options used to requesting list of checks
- Author:
- Ruslan Sennov
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCheckQueryOptions(JsonObject json) Constructor from JSON -
Method Summary
Modifier and TypeMethodDescriptionGet options for blocking querygetDc()Returns the datacenter that ultimately provided the list of nodesReturns the expression used to filter the queries results prior to returning the datagetNear()Get node name for sorting the list in ascending order based on the estimated round trip time from that node.getNs()Returns the namespace to list checkssetBlockingOptions(BlockingQueryOptions options) Set options for blocking querySet an optional datacenter.Set the expression to filter the queries results prior to returning the dataSet node name for sorting the list in ascending order based on the estimated round trip time from that node.Sets the optional namespace to list checks.toJson()Convert to JSON
-
Constructor Details
-
CheckQueryOptions
public CheckQueryOptions()Default constructor -
CheckQueryOptions
-
-
Method Details
-
getDc
Returns the datacenter that ultimately provided the list of nodes- Returns:
- the datacenter that ultimately provided the list of nodes
-
setDc
Set an optional datacenter. This will default to the datacenter of the agent being queried- Parameters:
dc- datacenter
-
getFilter
Returns the expression used to filter the queries results prior to returning the data- Returns:
- string of selectors and filter operations
- See Also:
-
setFilter
Set the expression to filter the queries results prior to returning the data- Parameters:
expression- string of selectors and filter operations- See Also:
-
getNs
-
setNs
Sets the optional namespace to list checks. By default, the namespace will be inherited from the request's ACL token or will default to the default namespace.- Parameters:
namespace-
-
toJson
-
getNear
Get node name for sorting the list in ascending order based on the estimated round trip time from that node.- Returns:
- the node name
-
setNear
Set node name for sorting the list in ascending order based on the estimated round trip time from that node.- Parameters:
near- the node name- Returns:
- reference to this, for fluency
-
getBlockingOptions
Get options for blocking query- Returns:
- the blocking options
-
setBlockingOptions
Set options for blocking query- Parameters:
options- the blocking options- Returns:
- reference to this, for fluency
-