Class FileSystemStorageProviderProperties
java.lang.Object
com.broadleafcommerce.common.audit.env.FileSystemStorageProviderProperties
@ConfigurationProperties(prefix="broadleaf.audit.processing.storage.filesystem")
public class FileSystemStorageProviderProperties
extends Object
Config related to the
FileSystemStorageProvider
. Assumes the target directories provided
exist on a shared filesystem across the entire application cluster. This allows many
microservices to contribute to audit recording with final ingestion into the audit service and
its bounded context of audit data.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The directory where completed batch files containing serializedAuditEvent
instances are stored.The directory where completed batch files undergoing ingestion are stored.long
Batch files are placed into partitioned directories inside ofworkingDirectory
andcompletionDirectory
in order to avoid OS filesystem limitations regarding max file count per directory.The directory where in-process batch files containing serializedAuditEvent
instances are stored.int
hashCode()
boolean
Whether audit file system storage is enabled.void
setCompletionDirectory
(String completionDirectory) The directory where completed batch files containing serializedAuditEvent
instances are stored.void
setEnabled
(boolean enabled) Whether audit file system storage is enabled.void
setIngestionDirectory
(String ingestionDirectory) The directory where completed batch files undergoing ingestion are stored.void
setMaxFilesPerWorkingPartition
(long maxFilesPerWorkingPartition) Batch files are placed into partitioned directories inside ofworkingDirectory
andcompletionDirectory
in order to avoid OS filesystem limitations regarding max file count per directory.void
setWorkingDirectory
(String workingDirectory) The directory where in-process batch files containing serializedAuditEvent
instances are stored.toString()
-
Constructor Details
-
FileSystemStorageProviderProperties
public FileSystemStorageProviderProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether audit file system storage is enabled. Default is false. -
getWorkingDirectory
The directory where in-process batch files containing serializedAuditEvent
instances are stored. Presumably this is a shared filesystem across the application cluster. Defaults to a temporary directory suitable for local testing. -
getCompletionDirectory
The directory where completed batch files containing serializedAuditEvent
instances are stored. Presumably this is a shared filesystem across the application cluster. Defaults to a temporary directory suitable for local testing. -
getIngestionDirectory
The directory where completed batch files undergoing ingestion are stored. This is the final step before audit data is uploaded to the database. After ingestion is complete, the file is deleted. Presumably this is a shared filesystem across the application cluster. Defaults to a temporary directory suitable for local testing. -
getMaxFilesPerWorkingPartition
public long getMaxFilesPerWorkingPartition()Batch files are placed into partitioned directories inside ofworkingDirectory
andcompletionDirectory
in order to avoid OS filesystem limitations regarding max file count per directory. This value determines the maximum number of files per partition. Default is 20000. -
setEnabled
public void setEnabled(boolean enabled) Whether audit file system storage is enabled. Default is false. -
setWorkingDirectory
The directory where in-process batch files containing serializedAuditEvent
instances are stored. Presumably this is a shared filesystem across the application cluster. Defaults to a temporary directory suitable for local testing. -
setCompletionDirectory
The directory where completed batch files containing serializedAuditEvent
instances are stored. Presumably this is a shared filesystem across the application cluster. Defaults to a temporary directory suitable for local testing. -
setIngestionDirectory
The directory where completed batch files undergoing ingestion are stored. This is the final step before audit data is uploaded to the database. After ingestion is complete, the file is deleted. Presumably this is a shared filesystem across the application cluster. Defaults to a temporary directory suitable for local testing. -
setMaxFilesPerWorkingPartition
public void setMaxFilesPerWorkingPartition(long maxFilesPerWorkingPartition) Batch files are placed into partitioned directories inside ofworkingDirectory
andcompletionDirectory
in order to avoid OS filesystem limitations regarding max file count per directory. This value determines the maximum number of files per partition. Default is 20000. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-