public class EventReader
extends java.lang.Object
Constructor and Description |
---|
EventReader(EventsProcessor eventsProcessor,
SourceFilter sourceFilter,
EventFilter eventFilter,
ProgressReporter progressReporter,
ExceptionHandler exceptionHandler,
SqsManager sqsManager,
S3Manager s3Manager,
ProcessingConfiguration configuration)
Internal use only.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CloudTrailSource> |
getSources()
Poll messages from SQS queue and convert messages to CloudTrailSource.
|
void |
processSource(CloudTrailSource source)
Retrieve S3 object URL from source then downloads the object processes each event through
call back functions.
|
public EventReader(EventsProcessor eventsProcessor, SourceFilter sourceFilter, EventFilter eventFilter, ProgressReporter progressReporter, ExceptionHandler exceptionHandler, SqsManager sqsManager, S3Manager s3Manager, ProcessingConfiguration configuration)
eventsProcessor
- user's implementation of eventsProcessor.sourceFilter
- user's implementation of sourceFilter.eventFilter
- user's implementation of eventFilter.progressReporter
- user's implementation of progressReporter.exceptionHandler
- user's implementation of exceptionHandler.sqsManager
- that poll message from SQS queue.s3Manager
- that download CloudTrail log files from S3.configuration
- user provided ProcessingConfiguration.public java.util.List<CloudTrailSource> getSources()
CloudTrailSource
.public void processSource(CloudTrailSource source)
source
- CloudTrailSource
to process.