public class JobStatusMonitor extends Object
Constructor and Description |
---|
JobStatusMonitor(AmazonSQS sqs,
AmazonSNS sns)
Constructs a JobStatusMonitor that will use the specified clients for
polling archive download job status.
|
JobStatusMonitor(AmazonSQSClient sqs,
AmazonSNSClient sns)
Constructs a JobStatusMonitor that will use the specified clients for
polling archive download job status.
|
JobStatusMonitor(AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration) |
Modifier and Type | Method and Description |
---|---|
String |
getTopicArn() |
void |
shutdown() |
void |
waitForJobToComplete(String jobId)
Poll the SQS queue to see if we've received a message about the job completion yet.
|
public JobStatusMonitor(AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
public JobStatusMonitor(AmazonSQSClient sqs, AmazonSNSClient sns)
sqs
- The client for working with Amazon SQS when polling archive
retrieval job status.sns
- The client for working with Amazon SNS when polling archive
retrieval job status.public JobStatusMonitor(AmazonSQS sqs, AmazonSNS sns)
sqs
- The client for working with Amazon SQS when polling archive
retrieval job status.sns
- The client for working with Amazon SNS when polling archive
retrieval job status.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.