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 inspecs
as the local node's supported feature set -
Method Summary
Modifier and TypeMethodDescriptionboolean
clusterHasFeature
(ClusterState state, NodeFeature feature) Returnstrue
if all nodes instate
support featurefeature
.boolean
Returnstrue
ifnode
can have assumed features.boolean
Returnstrue
if one or more nodes innodes
can 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 inspecs
as the local node's supported feature set
-
-
Method Details
-
getNodeFeatures
The features supported by this node.- Returns:
- Map of
feature-id
to its declaringNodeFeature
object.
-
featuresCanBeAssumedForNode
Returnstrue
ifnode
can have assumed features. -
featuresCanBeAssumedForNodes
Returnstrue
if one or more nodes innodes
can have assumed features. -
clusterHasFeature
Returnstrue
if all nodes instate
support featurefeature
.
-