java.lang.Object
org.elasticsearch.features.FeatureService
Manages information on the features supported by nodes in the cluster.
For more information, see
FeatureSpecification.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFeatureService(List<? extends FeatureSpecification> specs) Creates a newFeatureService, reporting all the features declared inspecsas the local node's supported feature set -
Method Summary
Modifier and TypeMethodDescriptionbooleanclusterHasFeature(ClusterState state, NodeFeature feature) Returnstrueif all nodes instatesupport featurefeature.static booleanReturnstrueifnodecan have assumed features.static booleanReturnstrueif one or more nodes innodescan have assumed features.The features supported by this node.
-
Field Details
-
TEST_FEATURES_ENABLED
-
-
Constructor Details
-
FeatureService
Creates a newFeatureService, reporting all the features declared inspecsas the local node's supported feature set
-
-
Method Details
-
getNodeFeatures
The features supported by this node.- Returns:
- Map of
feature-idto its declaringNodeFeatureobject.
-
featuresCanBeAssumedForNode
Returnstrueifnodecan have assumed features. -
featuresCanBeAssumedForNodes
Returnstrueif one or more nodes innodescan have assumed features. -
clusterHasFeature
Returnstrueif all nodes instatesupport featurefeature.
-