Interface AttributeFetcher
-
- All Known Implementing Classes:
AttributeFetcherImpl
public interface AttributeFetcher
Instances of this interface are used to fetch various attributes from nodes (and other sources) in the cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributeValues
fetchAttributes()
Fetches all requested node attributes from all nodes passed tofetchFrom(Set)
as well as non-node attributes (those requested using e.g.AttributeFetcher
fetchFrom(Set<Node> nodes)
The set of nodes from which to fetch all node related attributes.AttributeFetcher
requestCollectionMetrics(SolrCollection solrCollection, Set<ReplicaMetric<?>> metrics)
Request collection-level metrics.AttributeFetcher
requestNodeMetric(NodeMetric<?> metric)
Request a node metric from each node.AttributeFetcher
requestNodeSystemProperty(String name)
Request a given system property on each node.
-
-
-
Method Detail
-
requestNodeSystemProperty
AttributeFetcher requestNodeSystemProperty(String name)
Request a given system property on each node. To get the value useAttributeValues.getSystemProperty(Node, String)
- Parameters:
name
- system property name
-
requestNodeMetric
AttributeFetcher requestNodeMetric(NodeMetric<?> metric)
Request a node metric from each node. To get the value useAttributeValues.getNodeMetric(Node, NodeMetric)
- Parameters:
metric
- metric to retrieve (seeNodeMetric
)
-
requestCollectionMetrics
AttributeFetcher requestCollectionMetrics(SolrCollection solrCollection, Set<ReplicaMetric<?>> metrics)
Request collection-level metrics. To get the values useAttributeValues.getCollectionMetrics(String)
. Note that this request will fetch information from nodes that are relevant to the collection replicas and not the ones specified infetchFrom(Set)
(though they may overlap).- Parameters:
solrCollection
- request metrics for this collectionmetrics
- metrics to retrieve (seeReplicaMetric
)
-
fetchFrom
AttributeFetcher fetchFrom(Set<Node> nodes)
The set of nodes from which to fetch all node related attributes. Calling this method is mandatory if any of therequestNode*
methods got called.- Parameters:
nodes
- nodes to fetch from
-
fetchAttributes
AttributeValues fetchAttributes()
Fetches all requested node attributes from all nodes passed tofetchFrom(Set)
as well as non-node attributes (those requested using e.g.requestCollectionMetrics(SolrCollection, Set)
.- Returns:
- An instance allowing retrieval of all attributes that could be fetched.
-
-