Module org.elasticsearch.xcore
Class DataStreamLifecycleUsageTransportAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<XPackUsageRequest,XPackUsageFeatureResponse>
org.elasticsearch.action.support.HandledTransportAction<XPackUsageRequest,XPackUsageFeatureResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<XPackUsageRequest,XPackUsageFeatureResponse>
org.elasticsearch.xpack.core.action.XPackUsageFeatureTransportAction
org.elasticsearch.xpack.core.action.DataStreamLifecycleUsageTransportAction
- All Implemented Interfaces:
ActionWithReservedState<XPackUsageRequest>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionDataStreamLifecycleUsageTransportAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, DataStreamGlobalRetentionSettings globalRetentionSettings) -
Method Summary
Modifier and TypeMethodDescriptioncalculateStats(Collection<DataStream> dataStreams, RolloverConfiguration rolloverConfiguration, DataStreamGlobalRetention globalRetention) Counts the number of data streams that have a lifecycle configured (and enabled), computes the min/max/average summary of the data and effective retention and tracks the usage of global retention.protected voidmasterOperation(Task task, XPackUsageRequest request, ClusterState state, ActionListener<XPackUsageFeatureResponse> listener) Methods inherited from class org.elasticsearch.xpack.core.action.XPackUsageFeatureTransportAction
checkBlockMethods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Constructor Details
-
DataStreamLifecycleUsageTransportAction
@Inject public DataStreamLifecycleUsageTransportAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, DataStreamGlobalRetentionSettings globalRetentionSettings)
-
-
Method Details
-
masterOperation
protected void masterOperation(Task task, XPackUsageRequest request, ClusterState state, ActionListener<XPackUsageFeatureResponse> listener) - Specified by:
masterOperationin classTransportMasterNodeAction<XPackUsageRequest,XPackUsageFeatureResponse>
-
calculateStats
public static DataStreamLifecycleFeatureSetUsage.LifecycleStats calculateStats(Collection<DataStream> dataStreams, RolloverConfiguration rolloverConfiguration, DataStreamGlobalRetention globalRetention) Counts the number of data streams that have a lifecycle configured (and enabled), computes the min/max/average summary of the data and effective retention and tracks the usage of global retention.
-