Class AuditIngestionService
java.lang.Object
com.broadleafcommerce.audit.service.AuditIngestionService
- All Implemented Interfaces:
org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class AuditIngestionService
extends Object
implements org.springframework.context.SmartLifecycle
Responsible for querying the
StorageProvider for completed Batch representations
and pushing those to the IngestionProcessor for parsing and subsequent persistence in the
datastore.-
Field Summary
FieldsFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionAuditIngestionService(org.springframework.scheduling.TaskScheduler scheduler, AuditIngestionProperties properties, com.broadleafcommerce.common.audit.batch.StorageProvider storageProvider, IngestionProcessor ingestionProcessor) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, stop
-
Field Details
-
started
protected boolean started
-
-
Constructor Details
-
AuditIngestionService
public AuditIngestionService(org.springframework.scheduling.TaskScheduler scheduler, AuditIngestionProperties properties, com.broadleafcommerce.common.audit.batch.StorageProvider storageProvider, IngestionProcessor ingestionProcessor)
-
-
Method Details
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
process
public void process() -
isStarted
public boolean isStarted()
-