Module org.elasticsearch.xcore
Class AbstractAuditor<T extends AbstractAuditMessage>
java.lang.Object
org.elasticsearch.xpack.core.common.notifications.AbstractAuditor<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final org.elasticsearch.core.TimeValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAuditor(OriginSettingClient client, String auditIndexWriteAlias, String nodeName, AbstractAuditMessageFactory<T> messageFactory, ClusterService clusterService, IndexNameExpressionResolver indexNameExpressionResolver, ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidvoidprotected abstract AbstractAuditor.IndexDetailsprotected voidindexDoc(org.elasticsearch.xcontent.ToXContent toXContent) voidprotected abstract TransportPutComposableIndexTemplateAction.Requestvoidreset()Calling reset will cause the auditor to check the required index and alias exist and recreate if necessaryprotected abstract intvoidprotected void
-
Field Details
-
All_RESOURCES_ID
- See Also:
-
MASTER_TIMEOUT
protected static final org.elasticsearch.core.TimeValue MASTER_TIMEOUT
-
-
Constructor Details
-
AbstractAuditor
protected AbstractAuditor(OriginSettingClient client, String auditIndexWriteAlias, String nodeName, AbstractAuditMessageFactory<T> messageFactory, ClusterService clusterService, IndexNameExpressionResolver indexNameExpressionResolver, ExecutorService executorService)
-
-
Method Details
-
audit
-
info
-
warning
-
error
-
reset
public void reset()Calling reset will cause the auditor to check the required index and alias exist and recreate if necessary -
indexDoc
protected void indexDoc(org.elasticsearch.xcontent.ToXContent toXContent) -
clearBacklog
protected void clearBacklog() -
writeBacklog
protected void writeBacklog() -
putTemplateRequest
-
templateVersion
protected abstract int templateVersion() -
indexDetails
-