public interface ProgressReporter
ProgressReporter
is an interface for providing custom handlers of AWS CloudTrail Processing Library
progress.
reportStart(ProgressStatus)
and reportEnd(ProgressStatus, Object)
are invoked at the beginning and
the end of the following actions:
SqsManager.pollQueue()
.SqsManager.parseMessage(List)
.SqsManager.deleteMessageFromQueue(Message, ProgressStatus)
.S3Manager.downloadLog(CloudTrailLog, CloudTrailSource)
.EventReader.processSource(CloudTrailSource)
.for more information.
Modifier and Type | Method and Description |
---|---|
void |
reportEnd(ProgressStatus status,
java.lang.Object object)
A callback method that report ending status.
|
java.lang.Object |
reportStart(ProgressStatus status)
A callback method that report starting status.
|
java.lang.Object reportStart(ProgressStatus status)
status
- A ProgressStatus
that represents the status of the current action being performed.Object
that can be sent to reportEnd(ProgressStatus, Object)
.void reportEnd(ProgressStatus status, java.lang.Object object)
status
- A ProgressStatus
that represents the status of the current action being performed.object
- An Object
to send; usually the object returned by {reportStart(ProgressStatus)
}.