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
FieldsModifier and TypeFieldDescriptionstatic final Version
static final NodeFeature
A feature indicating that node features are supported.static final NodeFeature
-
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
.The non-historical features supported by this node.
-
Field Details
-
FEATURES_SUPPORTED
A feature indicating that node features are supported. -
TEST_FEATURES_ENABLED
-
CLUSTER_FEATURES_ADDED_VERSION
-
-
Constructor Details
-
FeatureService
Creates a newFeatureService
, reporting all the features declared inspecs
as the local node's supported feature set
-
-
Method Details
-
getNodeFeatures
The non-historical features supported by this node.- Returns:
- Map of
feature-id
to its declaringNodeFeature
object.
-
clusterHasFeature
Returnstrue
if all nodes instate
support featurefeature
.
-