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 booleanbooleanThe directory where completed batch files containing serializedAuditEventinstances are stored.The directory where completed batch files undergoing ingestion are stored.longBatch files are placed into partitioned directories inside ofworkingDirectoryandcompletionDirectoryin order to avoid OS filesystem limitations regarding max file count per directory.The directory where in-process batch files containing serializedAuditEventinstances are stored.inthashCode()booleanWhether audit file system storage is enabled.voidsetCompletionDirectory(String completionDirectory) The directory where completed batch files containing serializedAuditEventinstances are stored.voidsetEnabled(boolean enabled) Whether audit file system storage is enabled.voidsetIngestionDirectory(String ingestionDirectory) The directory where completed batch files undergoing ingestion are stored.voidsetMaxFilesPerWorkingPartition(long maxFilesPerWorkingPartition) Batch files are placed into partitioned directories inside ofworkingDirectoryandcompletionDirectoryin order to avoid OS filesystem limitations regarding max file count per directory.voidsetWorkingDirectory(String workingDirectory) The directory where in-process batch files containing serializedAuditEventinstances 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 serializedAuditEventinstances 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 serializedAuditEventinstances 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 ofworkingDirectoryandcompletionDirectoryin 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 serializedAuditEventinstances 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 serializedAuditEventinstances 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 ofworkingDirectoryandcompletionDirectoryin 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
-