public class IgnoreIndexTemplate extends RuntimeException
IndexTemplateProvider,
indicates that index template is not required for the current index rotation cycle
It might be useful in the following scenarios:
1) index template is managed externally
2) index template cannot be resolved at the moment
and it's acceptable to proceed with an already
existing template in Elasticsearch| Constructor and Description |
|---|
IgnoreIndexTemplate(boolean failOnMissingTemplate,
String reason,
String indexPrefix,
String indexTemplateName,
String indexTemplateType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getIndexTemplateName() |
boolean |
isFailOnMissingTemplate() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IgnoreIndexTemplate(boolean failOnMissingTemplate,
@Nonnull
String reason,
@Nonnull
String indexPrefix,
@Nonnull
String indexTemplateName,
@Nullable
String indexTemplateType)
failOnMissingTemplate - indicates whether the index rotation cycle should fail
if this template has not been found in Elasticsearchreason - indicates the reason for which the index template
cannot be resolvedpublic boolean isFailOnMissingTemplate()
public String getIndexTemplateName()
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.