Class JobStatusMonitor
java.lang.Object
com.amazonaws.services.glacier.transfer.JobStatusMonitor
Utility for monitoring the status of an Amazon Glacier job, through Amazon
SNS/SQS.
-
Constructor Summary
ConstructorsConstructorDescriptionJobStatusMonitor
(AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration) JobStatusMonitor
(AmazonSQSClient sqs, AmazonSNSClient sns) Constructs a JobStatusMonitor that will use the specified clients for polling archive download job status. -
Method Summary
Modifier and TypeMethodDescriptionvoid
shutdown()
void
waitForJobToComplete
(String jobId) Poll the SQS queue to see if we've received a message about the job completion yet.
-
Constructor Details
-
JobStatusMonitor
public JobStatusMonitor(AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration) -
JobStatusMonitor
Constructs a JobStatusMonitor that will use the specified clients for polling archive download job status.- Parameters:
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.
-
-
Method Details
-
getTopicArn
-
shutdown
public void shutdown() -
waitForJobToComplete
Poll the SQS queue to see if we've received a message about the job completion yet.
-