Class AttributeValuesImpl
- java.lang.Object
-
- org.apache.solr.cluster.placement.impl.AttributeValuesImpl
-
- All Implemented Interfaces:
AttributeValues
public class AttributeValuesImpl extends Object implements AttributeValues
Implementation ofAttributeValuesused byAttributeFetcherImpl.
-
-
Constructor Summary
Constructors Constructor Description AttributeValuesImpl(Map<String,Map<Node,String>> systemSnitchToNodeToValue, Map<NodeMetric<?>,Map<Node,Object>> metricSnitchToNodeToValue, Map<String,CollectionMetrics> collectionMetrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<CollectionMetrics>getCollectionMetrics(String collectionName)Get collection metrics.<T> Optional<T>getNodeMetric(Node node, NodeMetric<T> metric)For the given node: metric identified by an instance ofNodeMetricOptional<String>getSystemProperty(Node node, String name)For the given node: system property value (system properties are passed to Java using-Dname=value
-
-
-
Method Detail
-
getSystemProperty
public Optional<String> getSystemProperty(Node node, String name)
Description copied from interface:AttributeValuesFor the given node: system property value (system properties are passed to Java using-Dname=value- Specified by:
getSystemPropertyin interfaceAttributeValues
-
getNodeMetric
public <T> Optional<T> getNodeMetric(Node node, NodeMetric<T> metric)
Description copied from interface:AttributeValuesFor the given node: metric identified by an instance ofNodeMetric- Specified by:
getNodeMetricin interfaceAttributeValues
-
getCollectionMetrics
public Optional<CollectionMetrics> getCollectionMetrics(String collectionName)
Description copied from interface:AttributeValuesGet collection metrics.- Specified by:
getCollectionMetricsin interfaceAttributeValues
-
-