Class FileSystemIngestionProcessor
java.lang.Object
com.broadleafcommerce.audit.service.FileSystemIngestionProcessor
- All Implemented Interfaces:
IngestionProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemIngestionProcessor
(AuditIngestionProperties properties, AuditHeaderRepository<com.broadleafcommerce.data.tracking.core.Trackable> headerRepository, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stream<com.broadleafcommerce.common.audit.domain.AuditEvent>
getRecords
(Path ingest) org.springframework.util.concurrent.ListenableFuture<String>
process
(com.broadleafcommerce.common.audit.batch.Batch ingest) Parse and processBatch
-
Constructor Details
-
FileSystemIngestionProcessor
public FileSystemIngestionProcessor(AuditIngestionProperties properties, AuditHeaderRepository<com.broadleafcommerce.data.tracking.core.Trackable> headerRepository, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
process
@Async("auditIngestionThreadPoolTaskExecutor") public org.springframework.util.concurrent.ListenableFuture<String> process(com.broadleafcommerce.common.audit.batch.Batch ingest) Description copied from interface:IngestionProcessor
Parse and processBatch
- Specified by:
process
in interfaceIngestionProcessor
- Parameters:
ingest
- The batch ofAuditEvent
instances to process- Returns:
- A future callback for async completion handling
-
getRecords
-