Package org.elasticsearch.indices
Class SystemIndices.Feature
java.lang.Object
org.elasticsearch.indices.SystemIndices.Feature
- Enclosing class:
- SystemIndices
Class holding a description of a stateful feature.
-
Constructor Summary
ConstructorsConstructorDescriptionFeature(String name, String description, Collection<SystemIndexDescriptor> indexDescriptors)Construct a Feature using the default clean-up functionFeature(String name, String description, Collection<SystemIndexDescriptor> indexDescriptors, Collection<SystemDataStreamDescriptor> dataStreamDescriptors)Construct a Feature using the default clean-up functionFeature(String description, Collection<SystemIndexDescriptor> indexDescriptors, Collection<SystemDataStreamDescriptor> dataStreamDescriptors, Collection<AssociatedIndexDescriptor> associatedIndexDescriptors, TriConsumer<ClusterService,Client,ActionListener<ResetFeatureStateResponse.ResetFeatureStateStatus>> cleanUpFunction)Construct a Feature with a custom cleanup function -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanUpFeature(Collection<? extends IndexPatternMatcher> indexDescriptors, Collection<? extends IndexPatternMatcher> associatedIndexDescriptors, String name, ClusterService clusterService, Client client, ActionListener<ResetFeatureStateResponse.ResetFeatureStateStatus> listener)Clean up the state of a featureTriConsumer<ClusterService,Client,ActionListener<ResetFeatureStateResponse.ResetFeatureStateStatus>>
-
Constructor Details
-
Feature
public Feature(String description, Collection<SystemIndexDescriptor> indexDescriptors, Collection<SystemDataStreamDescriptor> dataStreamDescriptors, Collection<AssociatedIndexDescriptor> associatedIndexDescriptors, TriConsumer<ClusterService,Client,ActionListener<ResetFeatureStateResponse.ResetFeatureStateStatus>> cleanUpFunction)Construct a Feature with a custom cleanup function- Parameters:
description- Description of the featureindexDescriptors- Collection of objects describing system indices for this featuredataStreamDescriptors- Collection of objects describing system data streams for this featureassociatedIndexDescriptors- Collection of objects describing associated indices for this featurecleanUpFunction- A function that will clean up the feature's state
-
Feature
Construct a Feature using the default clean-up function- Parameters:
name- Name of the feature, used in loggingdescription- Description of the featureindexDescriptors- Patterns describing system indices for this feature
-
Feature
public Feature(String name, String description, Collection<SystemIndexDescriptor> indexDescriptors, Collection<SystemDataStreamDescriptor> dataStreamDescriptors)Construct a Feature using the default clean-up function- Parameters:
name- Name of the feature, used in loggingdescription- Description of the featureindexDescriptors- Patterns describing system indices for this featuredataStreamDescriptors- Collection of objects describing system data streams for this feature
-
-
Method Details
-
getDescription
-
getIndexDescriptors
-
getDataStreamDescriptors
-
getAssociatedIndexDescriptors
-
getCleanUpFunction
public TriConsumer<ClusterService,Client,ActionListener<ResetFeatureStateResponse.ResetFeatureStateStatus>> getCleanUpFunction() -
cleanUpFeature
public static void cleanUpFeature(Collection<? extends IndexPatternMatcher> indexDescriptors, Collection<? extends IndexPatternMatcher> associatedIndexDescriptors, String name, ClusterService clusterService, Client client, ActionListener<ResetFeatureStateResponse.ResetFeatureStateStatus> listener)Clean up the state of a feature- Parameters:
indexDescriptors- List of descriptors of a feature's system indicesassociatedIndexDescriptors- List of descriptors of a feature's associated indicesname- Name of the feature, used in loggingclusterService- A clusterService, for retrieving cluster metadataclient- A client, for issuing delete requestslistener- A listener to return success or failure of cleanup
-