Package org.graylog2.indexer
Class IgnoreIndexTemplate
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.graylog2.indexer.IgnoreIndexTemplate
- All Implemented Interfaces:
Serializable
This exception, when thrown by an implementation of
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- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIgnoreIndexTemplate(boolean failOnMissingTemplate, String reason, String indexPrefix, String indexTemplateName, String indexTemplateType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IgnoreIndexTemplate
public IgnoreIndexTemplate(boolean failOnMissingTemplate, @Nonnull String reason, @Nonnull String indexPrefix, @Nonnull String indexTemplateName, @Nullable String indexTemplateType) - Parameters:
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 resolved
-
-
Method Details
-
isFailOnMissingTemplate
public boolean isFailOnMissingTemplate() -
getIndexTemplateName
-