public abstract class BaseStreamingTaskRunner extends Object implements TaskRunner
| Modifier and Type | Field and Description |
|---|---|
protected org.jets3t.service.CloudFrontService |
cfService |
protected static int |
maxRetries |
protected com.amazonaws.services.s3.AmazonS3Client |
s3Client |
protected S3StorageProvider |
s3Provider |
| Constructor and Description |
|---|
BaseStreamingTaskRunner() |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.jets3t.service.model.cloudfront.StreamingDistribution> |
getAllExistingDistributions(String bucketName) |
protected String |
getDistributionOriginAccessId(String distributionId) |
protected org.jets3t.service.model.cloudfront.StreamingDistribution |
getExistingDistribution(String bucketName) |
abstract String |
getName() |
protected Iterator<String> |
getSpaceContents(String spaceId) |
protected String |
getSpaceId(String taskParameters) |
abstract String |
performTask(String taskParameters) |
protected void |
setACL(String bucketName,
String contentId,
com.amazonaws.services.s3.model.CanonicalGrantee s3Grantee) |
protected void |
wait(int index) |
protected static final int maxRetries
protected S3StorageProvider s3Provider
protected com.amazonaws.services.s3.AmazonS3Client s3Client
protected org.jets3t.service.CloudFrontService cfService
public abstract String getName()
getName in interface TaskRunnerpublic abstract String performTask(String taskParameters)
performTask in interface TaskRunnerprotected org.jets3t.service.model.cloudfront.StreamingDistribution getExistingDistribution(String bucketName) throws org.jets3t.service.CloudFrontServiceException
org.jets3t.service.CloudFrontServiceExceptionprotected List<org.jets3t.service.model.cloudfront.StreamingDistribution> getAllExistingDistributions(String bucketName) throws org.jets3t.service.CloudFrontServiceException
org.jets3t.service.CloudFrontServiceExceptionprotected String getDistributionOriginAccessId(String distributionId) throws org.jets3t.service.CloudFrontServiceException
org.jets3t.service.CloudFrontServiceExceptionprotected void setACL(String bucketName, String contentId, com.amazonaws.services.s3.model.CanonicalGrantee s3Grantee) throws DuraCloudCheckedException
DuraCloudCheckedExceptionprotected void wait(int index)
Copyright © 2009-2013 DuraSpace. All Rights Reserved.