Module org.elasticsearch.server
Class GetDataStreamAction.Response.DataStreamInfo
java.lang.Object
org.elasticsearch.action.datastreams.GetDataStreamAction.Response.DataStreamInfo
- All Implemented Interfaces:
Diffable<GetDataStreamAction.Response.DataStreamInfo>,SimpleDiffable<GetDataStreamAction.Response.DataStreamInfo>,Writeable,ToXContent,ToXContentObject
- Enclosing class:
GetDataStreamAction.Response
public static class GetDataStreamAction.Response.DataStreamInfo
extends Object
implements SimpleDiffable<GetDataStreamAction.Response.DataStreamInfo>, ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.SimpleDiffable
SimpleDiffable.CompleteDiff<T extends Diffable<T>>Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.cluster.SimpleDiffable
EMPTYFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDataStreamInfo(DataStream dataStream, boolean failureStoreEffectivelyEnabled, ClusterHealthStatus dataStreamStatus, String indexTemplate, String ilmPolicyName, GetDataStreamAction.Response.TimeSeries timeSeries, Map<Index, GetDataStreamAction.Response.IndexProperties> indexSettingsValues, boolean templatePreferIlmValue, Long maximumTimestamp, String indexMode) -
Method Summary
Modifier and TypeMethodDescriptionbooleanComputes and returns which system will manage the next generation for this data stream.inthashCode()booleanbooleantoXContent(XContentBuilder builder, ToXContent.Params params) toXContent(XContentBuilder builder, ToXContent.Params params, RolloverConfiguration rolloverConfiguration, DataStreamGlobalRetention dataGlobalRetention, DataStreamGlobalRetention failureGlobalRetention) Converts the response to XContent and passes the RolloverConditions and the global retention, when provided, to the data stream.voidwriteTo(StreamOutput out) NB prior to 9.0 this was a TransportMasterNodeReadAction so for BwC we must remain able to write these responses until we no longer need to support calling this action remotely.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.SimpleDiffable
diffMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
STATUS_FIELD
-
INDEX_TEMPLATE_FIELD
-
SETTINGS_FIELD
-
PREFER_ILM
-
MANAGED_BY
-
NEXT_GENERATION_INDEX_MANAGED_BY
-
ILM_POLICY_FIELD
-
LIFECYCLE_FIELD
-
HIDDEN_FIELD
-
SYSTEM_FIELD
-
ALLOW_CUSTOM_ROUTING
-
REPLICATED
-
ROLLOVER_ON_WRITE
-
TIME_SERIES
-
TEMPORAL_RANGES
-
TEMPORAL_RANGE_START
-
TEMPORAL_RANGE_END
-
TIME_SINCE_LAST_AUTO_SHARD_EVENT
-
TIME_SINCE_LAST_AUTO_SHARD_EVENT_MILLIS
-
FAILURE_STORE_ENABLED
-
MAXIMUM_TIMESTAMP
-
INDEX_MODE
-
-
Constructor Details
-
DataStreamInfo
public DataStreamInfo(DataStream dataStream, boolean failureStoreEffectivelyEnabled, ClusterHealthStatus dataStreamStatus, @Nullable String indexTemplate, @Nullable String ilmPolicyName, @Nullable GetDataStreamAction.Response.TimeSeries timeSeries, Map<Index, GetDataStreamAction.Response.IndexProperties> indexSettingsValues, boolean templatePreferIlmValue, @Nullable Long maximumTimestamp, @Nullable String indexMode)
-
-
Method Details
-
getDataStream
-
isFailureStoreEffectivelyEnabled
public boolean isFailureStoreEffectivelyEnabled() -
getDataStreamStatus
-
getIndexTemplate
-
getIlmPolicy
-
getTimeSeries
-
getIndexSettingsValues
-
templatePreferIlmValue
public boolean templatePreferIlmValue() -
getMaximumTimestamp
-
getIndexModeName
-
writeTo
NB prior to 9.0 this was a TransportMasterNodeReadAction so for BwC we must remain able to write these responses until we no longer need to support calling this action remotely.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params, @Nullable RolloverConfiguration rolloverConfiguration, @Nullable DataStreamGlobalRetention dataGlobalRetention, @Nullable DataStreamGlobalRetention failureGlobalRetention) throws IOException Converts the response to XContent and passes the RolloverConditions and the global retention, when provided, to the data stream.- Throws:
IOException
-
getNextGenerationManagedBy
Computes and returns which system will manage the next generation for this data stream. -
equals
-
hashCode
public int hashCode()
-