public class CheckQueryOptions extends Object
Constructor and Description |
---|
CheckQueryOptions()
Default constructor
|
CheckQueryOptions(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
BlockingQueryOptions |
getBlockingOptions()
Get options for blocking query
|
String |
getDc()
Returns the datacenter that ultimately provided the list of nodes
|
String |
getFilter()
Returns the expression used to filter the queries results prior to returning the data
|
String |
getNear()
Get node name for sorting the list in ascending order based on the estimated round trip time from that node.
|
String |
getNs()
Returns the namespace to list checks
|
CheckQueryOptions |
setBlockingOptions(BlockingQueryOptions options)
Set options for blocking query
|
CheckQueryOptions |
setDc(String dc)
Set an optional datacenter.
|
CheckQueryOptions |
setFilter(String expression)
Set the expression to filter the queries results prior to returning the data
|
CheckQueryOptions |
setNear(String near)
Set node name for sorting the list in ascending order based on the estimated round trip time from that node.
|
CheckQueryOptions |
setNs(String namespace)
Sets the optional namespace to list checks.
|
JsonObject |
toJson()
Convert to JSON
|
public CheckQueryOptions()
public CheckQueryOptions(JsonObject json)
json
- the JSONpublic String getDc()
public CheckQueryOptions setDc(String dc)
dc
- datacenterpublic String getFilter()
public CheckQueryOptions setFilter(String expression)
expression
- string of selectors and filter operationspublic String getNs()
public CheckQueryOptions setNs(String namespace)
namespace
- public JsonObject toJson()
public String getNear()
public CheckQueryOptions setNear(String near)
near
- the node namepublic BlockingQueryOptions getBlockingOptions()
public CheckQueryOptions setBlockingOptions(BlockingQueryOptions options)
options
- the blocking optionsCopyright © 2024 Eclipse. All rights reserved.