Class AuditProcessingProperties
java.lang.Object
com.broadleafcommerce.common.audit.env.AuditProcessingProperties
@ConfigurationProperties(prefix="broadleaf.audit.processing")
public class AuditProcessingProperties
extends Object
Configuration related to audit processing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
List ofTrackable
domain types by arbitrary subject name that should be audited according to the default converter behavior provided byDefaultAbstractMutationNotifyEventConverter
.Whether the conversion specified bydefaultMutationNotifyEventTypes
should be enabled for the given arbitrary subject name.long
Duration of time (milliseconds) that should not be exceeded for a batch file to be considered complete.int
Max number ofAuditEvent
records to include in a single batch file for subsequent ingestion.int
Core thread count for theThreadPoolTaskExecutor
backing the event recorder thread pool.int
The number of threadsAuditEventRecorder
uses to process incomingAuditEvent
instances.int
Queue capacity for theThreadPoolTaskExecutor
backing the event recorder thread pool.int
Core thread count for theThreadPoolTaskExecutor
backing the handler thread pool.int
The number of threadsChangeAuditHandler
uses to process incomingDeployCompletedEvent
instances.int
Queue capacity for theThreadPoolTaskExecutor
backing the handler thread pool.int
hashCode()
boolean
Whether audit processing should begin automatically during application startup.boolean
Whether audit processing is enabled.void
setAutoStartup
(boolean autoStartup) Whether audit processing should begin automatically during application startup.void
setDefaultMutationNotifyEventTypes
(Map<String, List<Class<?>>> defaultMutationNotifyEventTypes) List ofTrackable
domain types by arbitrary subject name that should be audited according to the default converter behavior provided byDefaultAbstractMutationNotifyEventConverter
.void
setEnabled
(boolean enabled) Whether audit processing is enabled.void
setEnabledTypes
(Map<String, Boolean> enabledTypes) Whether the conversion specified bydefaultMutationNotifyEventTypes
should be enabled for the given arbitrary subject name.void
setEventRecorderBatchFileCompletionTimeout
(long eventRecorderBatchFileCompletionTimeout) Duration of time (milliseconds) that should not be exceeded for a batch file to be considered complete.void
setEventRecorderBatchFileMaxRecordCount
(int eventRecorderBatchFileMaxRecordCount) Max number ofAuditEvent
records to include in a single batch file for subsequent ingestion.void
setEventRecorderCoreThreadCount
(int eventRecorderCoreThreadCount) Core thread count for theThreadPoolTaskExecutor
backing the event recorder thread pool.void
setEventRecorderMaxThreadCount
(int eventRecorderMaxThreadCount) The number of threadsAuditEventRecorder
uses to process incomingAuditEvent
instances.void
setEventRecorderQueueCapacity
(int eventRecorderQueueCapacity) Queue capacity for theThreadPoolTaskExecutor
backing the event recorder thread pool.void
setHandlerCoreThreadCount
(int handlerCoreThreadCount) Core thread count for theThreadPoolTaskExecutor
backing the handler thread pool.void
setHandlerMaxThreadCount
(int handlerMaxThreadCount) The number of threadsChangeAuditHandler
uses to process incomingDeployCompletedEvent
instances.void
setHandlerQueueCapacity
(int handlerQueueCapacity) Queue capacity for theThreadPoolTaskExecutor
backing the handler thread pool.toString()
-
Constructor Details
-
AuditProcessingProperties
public AuditProcessingProperties()
-
-
Method Details
-
isAutoStartup
public boolean isAutoStartup()Whether audit processing should begin automatically during application startup. Default is true. -
isEnabled
public boolean isEnabled()Whether audit processing is enabled. Default is false. -
getHandlerMaxThreadCount
public int getHandlerMaxThreadCount()The number of threadsChangeAuditHandler
uses to process incomingDeployCompletedEvent
instances. The default is 20. -
getHandlerQueueCapacity
public int getHandlerQueueCapacity()Queue capacity for theThreadPoolTaskExecutor
backing the handler thread pool. The default is 10. -
getHandlerCoreThreadCount
public int getHandlerCoreThreadCount()Core thread count for theThreadPoolTaskExecutor
backing the handler thread pool. The default is 5. -
getEventRecorderBatchFileMaxRecordCount
public int getEventRecorderBatchFileMaxRecordCount()Max number ofAuditEvent
records to include in a single batch file for subsequent ingestion. Default is 100. -
getEventRecorderBatchFileCompletionTimeout
public long getEventRecorderBatchFileCompletionTimeout()Duration of time (milliseconds) that should not be exceeded for a batch file to be considered complete. Normally, batch files must containeventRecorderBatchFileMaxRecordCount
records for completion. However, if left incomplete long enough (#eventRecorderBatchFileCompletionTimeout
), then the partial file will be moved to the next phase for ingestion. Default is 60000. -
getEventRecorderMaxThreadCount
public int getEventRecorderMaxThreadCount()The number of threadsAuditEventRecorder
uses to process incomingAuditEvent
instances. The default is 10. -
getEventRecorderQueueCapacity
public int getEventRecorderQueueCapacity()Queue capacity for theThreadPoolTaskExecutor
backing the event recorder thread pool. The default is 50. -
getEventRecorderCoreThreadCount
public int getEventRecorderCoreThreadCount()Core thread count for theThreadPoolTaskExecutor
backing the event recorder thread pool. The default is 3. -
getDefaultMutationNotifyEventTypes
List ofTrackable
domain types by arbitrary subject name that should be audited according to the default converter behavior provided byDefaultAbstractMutationNotifyEventConverter
. Additional implementations of this abstract converter may be supplied for more complex audit conversion cases. -
getEnabledTypes
Whether the conversion specified bydefaultMutationNotifyEventTypes
should be enabled for the given arbitrary subject name. Default is true if not specified. -
setAutoStartup
public void setAutoStartup(boolean autoStartup) Whether audit processing should begin automatically during application startup. Default is true. -
setEnabled
public void setEnabled(boolean enabled) Whether audit processing is enabled. Default is false. -
setHandlerMaxThreadCount
public void setHandlerMaxThreadCount(int handlerMaxThreadCount) The number of threadsChangeAuditHandler
uses to process incomingDeployCompletedEvent
instances. The default is 20. -
setHandlerQueueCapacity
public void setHandlerQueueCapacity(int handlerQueueCapacity) Queue capacity for theThreadPoolTaskExecutor
backing the handler thread pool. The default is 10. -
setHandlerCoreThreadCount
public void setHandlerCoreThreadCount(int handlerCoreThreadCount) Core thread count for theThreadPoolTaskExecutor
backing the handler thread pool. The default is 5. -
setEventRecorderBatchFileMaxRecordCount
public void setEventRecorderBatchFileMaxRecordCount(int eventRecorderBatchFileMaxRecordCount) Max number ofAuditEvent
records to include in a single batch file for subsequent ingestion. Default is 100. -
setEventRecorderBatchFileCompletionTimeout
public void setEventRecorderBatchFileCompletionTimeout(long eventRecorderBatchFileCompletionTimeout) Duration of time (milliseconds) that should not be exceeded for a batch file to be considered complete. Normally, batch files must containeventRecorderBatchFileMaxRecordCount
records for completion. However, if left incomplete long enough (#eventRecorderBatchFileCompletionTimeout
), then the partial file will be moved to the next phase for ingestion. Default is 60000. -
setEventRecorderMaxThreadCount
public void setEventRecorderMaxThreadCount(int eventRecorderMaxThreadCount) The number of threadsAuditEventRecorder
uses to process incomingAuditEvent
instances. The default is 10. -
setEventRecorderQueueCapacity
public void setEventRecorderQueueCapacity(int eventRecorderQueueCapacity) Queue capacity for theThreadPoolTaskExecutor
backing the event recorder thread pool. The default is 50. -
setEventRecorderCoreThreadCount
public void setEventRecorderCoreThreadCount(int eventRecorderCoreThreadCount) Core thread count for theThreadPoolTaskExecutor
backing the event recorder thread pool. The default is 3. -
setDefaultMutationNotifyEventTypes
public void setDefaultMutationNotifyEventTypes(Map<String, List<Class<?>>> defaultMutationNotifyEventTypes) List ofTrackable
domain types by arbitrary subject name that should be audited according to the default converter behavior provided byDefaultAbstractMutationNotifyEventConverter
. Additional implementations of this abstract converter may be supplied for more complex audit conversion cases. -
setEnabledTypes
Whether the conversion specified bydefaultMutationNotifyEventTypes
should be enabled for the given arbitrary subject name. Default is true if not specified. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-