Package org.opensearch.client
Class HasAttributeNodeSelector
java.lang.Object
org.opensearch.client.HasAttributeNodeSelector
- All Implemented Interfaces:
NodeSelector
A
NodeSelector that selects nodes that have a particular value
for an attribute.-
Field Summary
Fields inherited from interface org.opensearch.client.NodeSelector
ANY, SKIP_DEDICATED_CLUSTER_MANAGERS -
Constructor Summary
ConstructorsConstructorDescriptionHasAttributeNodeSelector(String key, String value) Create a {link HasAttributeNodeSelector} instance using the provided attribute key value pair. -
Method Summary
-
Constructor Details
-
HasAttributeNodeSelector
Create a {link HasAttributeNodeSelector} instance using the provided attribute key value pair.- Parameters:
key- The attribute name.value- The attribute value.
-
-
Method Details
-
select
Select theNodes to which to send requests.- Specified by:
selectin interfaceNodeSelector- Parameters:
nodes- theNodes targeted for the sending requests
-
equals
Compare two node selectors for equality -
hashCode
public int hashCode()Calculate the hash code of the node selector -
toString
Convert this node selector to string representation
-