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 TaskRunner
public abstract String performTask(String taskParameters)
performTask
in interface TaskRunner
protected org.jets3t.service.model.cloudfront.StreamingDistribution getExistingDistribution(String bucketName) throws org.jets3t.service.CloudFrontServiceException
org.jets3t.service.CloudFrontServiceException
protected List<org.jets3t.service.model.cloudfront.StreamingDistribution> getAllExistingDistributions(String bucketName) throws org.jets3t.service.CloudFrontServiceException
org.jets3t.service.CloudFrontServiceException
protected String getDistributionOriginAccessId(String distributionId) throws org.jets3t.service.CloudFrontServiceException
org.jets3t.service.CloudFrontServiceException
protected void setACL(String bucketName, String contentId, com.amazonaws.services.s3.model.CanonicalGrantee s3Grantee) throws DuraCloudCheckedException
DuraCloudCheckedException
protected void wait(int index)
Copyright © 2009-2013 DuraSpace. All Rights Reserved.