public interface ProcessingConfiguration
EventReader
.
You can use a system properties file to load the configuration or create a ClientConfiguration
object and set
each attribute. If you do not provide a value for an attribute, a default value will be provided.
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_DELETE_MESSAGE_UPON_FAILURE
Whether to delete SQS messages if there is failure
during
SqsManager.parseMessage(List) and EventReader.processSource(CloudTrailSource) ; false. |
static boolean |
DEFAULT_ENABLE_RAW_EVENT_INFO
Whether to enable raw event information in event metadata; false.
|
static int |
DEFAULT_MAX_EVENTS_PER_EMIT
The default number of events accumulated before emitting; 1.
|
static int |
DEFAULT_NUM_OF_PARALLEL_READERS
The default SQS reader thread count
|
static java.lang.String |
DEFAULT_S3_REGION
The default S3 region; "us-east-1".
|
static java.lang.String |
DEFAULT_SQS_REGION
The default SQS region; "us-east-1".
|
static int |
DEFAULT_THREAD_COUNT
The default S3 thread count; 1.
|
static int |
DEFAULT_THREAD_TERMINATION_DELAY_SECONDS
The default thread termination delay, in seconds; 60.
|
static int |
DEFAULT_VISIBILITY_TIMEOUT
The default SQS visibility timeout, in seconds; 60.
|
Modifier and Type | Method and Description |
---|---|
AWSCredentialsProvider |
getAwsCredentialsProvider()
Get the AWS Credentials provider used to access AWS.
|
int |
getMaxEventsPerEmit()
Get the maximum number of AWSCloudTrailClientEvents sent to a single invocation of processEvents().
|
int |
getNumOfParallelReaders()
Get a number of reader threads
|
java.lang.String |
getS3Region()
Get the AWS S3 Region.
|
java.lang.String |
getSqsRegion()
Gets the SQS Region from which CloudTrail logs are obtained.
|
java.lang.String |
getSqsUrl()
Gets the SQS URL used to obtain CloudTrail logs.
|
int |
getThreadCount()
Get the number of threads used to download S3 files in parallel.
|
int |
getThreadTerminationDelaySeconds()
Get the thread termination delay value.
|
int |
getVisibilityTimeout()
Get the visibility timeout value for the SQS queue.
|
boolean |
isDeleteMessageUponFailure()
Indicates whether to delete SQS messages when there is a failure during
SqsManager.parseMessage(List)
and EventReader.processSource(CloudTrailSource) . |
boolean |
isEnableRawEventInfo()
Indicates whether raw event information is returned in
CloudTrailEventMetadata . |
void |
validate()
Validate that all necessary parameters are set in the provided configuration.
|
static final java.lang.String DEFAULT_SQS_REGION
static final java.lang.String DEFAULT_S3_REGION
static final int DEFAULT_VISIBILITY_TIMEOUT
static final int DEFAULT_THREAD_COUNT
static final int DEFAULT_NUM_OF_PARALLEL_READERS
static final int DEFAULT_THREAD_TERMINATION_DELAY_SECONDS
static final int DEFAULT_MAX_EVENTS_PER_EMIT
static final boolean DEFAULT_ENABLE_RAW_EVENT_INFO
static final boolean DEFAULT_DELETE_MESSAGE_UPON_FAILURE
SqsManager.parseMessage(List)
and EventReader.processSource(CloudTrailSource)
; false.AWSCredentialsProvider getAwsCredentialsProvider()
java.lang.String getSqsUrl()
java.lang.String getSqsRegion()
int getVisibilityTimeout()
The period of time during which Amazon SQS prevents other consuming components from receiving and processing a message.
java.lang.String getS3Region()
int getThreadCount()
int getNumOfParallelReaders()
int getThreadTerminationDelaySeconds()
int getMaxEventsPerEmit()
boolean isEnableRawEventInfo()
CloudTrailEventMetadata
.true
if raw event information is enabled; false
otherwise.boolean isDeleteMessageUponFailure()
SqsManager.parseMessage(List)
and EventReader.processSource(CloudTrailSource)
.
The SQS message will be deleted upon success regardless of the setting for deleteMessageUponFailure.true
if delete SQS message upon failure is enabled. Otherwise, false
.void validate()
This method throws an exception if any of the required parameters are null
.
java.lang.IllegalStateException
- if any parameters are null
.