public abstract class BaseHlsTaskRunner extends Object implements TaskRunner
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseHlsTaskRunner.STREAMING_TYPE |
| Modifier and Type | Field and Description |
|---|---|
protected String |
cfAccountId |
protected com.amazonaws.services.cloudfront.AmazonCloudFrontClient |
cfClient |
protected String |
cfKeyId |
protected String |
cfKeyPath |
protected String |
dcHost |
static String |
HLS_STREAMING_HOST_PROP |
static String |
HLS_STREAMING_TYPE_PROP |
protected static int |
maxRetries |
static String |
S3_ORIGIN_OAI_PREFIX |
static String |
S3_ORIGIN_SUFFIX |
protected com.amazonaws.services.s3.AmazonS3 |
s3Client |
protected StorageProvider |
s3Provider |
protected S3StorageProvider |
unwrappedS3Provider |
| Constructor and Description |
|---|
BaseHlsTaskRunner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkThatStreamingServiceIsEnabled(String spaceId,
String taskName)
Determines if a streaming distribution exists for a given space
|
protected List<com.amazonaws.services.cloudfront.model.DistributionSummary> |
getAllExistingWebDistributions(String bucketName)
Determines if a streaming distribution already exists for a given bucket
|
protected com.amazonaws.services.cloudfront.model.DistributionSummary |
getExistingDistribution(String bucketName)
Returns the first streaming web distribution associated with a given bucket
|
abstract String |
getName() |
protected Iterator<String> |
getSpaceContents(String spaceId)
Get a listing of items in a space
|
abstract String |
performTask(String taskParameters) |
protected void |
removeHlsStreamingHostFromSpaceProps(String spaceId)
Updates the space properties to no longer include the
streaming host value (if the value existed there in the first place)
|
protected void |
setDistributionState(String distId,
boolean enabled)
Enables or disables an existing distribution
|
protected void |
wait(int index) |
public static final String HLS_STREAMING_HOST_PROP
public static final String HLS_STREAMING_TYPE_PROP
public static final String S3_ORIGIN_SUFFIX
public static final String S3_ORIGIN_OAI_PREFIX
protected static final int maxRetries
protected StorageProvider s3Provider
protected S3StorageProvider unwrappedS3Provider
protected com.amazonaws.services.s3.AmazonS3 s3Client
protected com.amazonaws.services.cloudfront.AmazonCloudFrontClient cfClient
protected String cfAccountId
protected String cfKeyId
protected String cfKeyPath
protected String dcHost
public abstract String getName()
getName in interface TaskRunnerpublic abstract String performTask(String taskParameters)
performTask in interface TaskRunnerprotected com.amazonaws.services.cloudfront.model.DistributionSummary getExistingDistribution(String bucketName)
protected List<com.amazonaws.services.cloudfront.model.DistributionSummary> getAllExistingWebDistributions(String bucketName)
protected void setDistributionState(String distId, boolean enabled)
distId - the ID of the distributionenabled - true to enable, false to disableprotected Iterator<String> getSpaceContents(String spaceId)
protected void removeHlsStreamingHostFromSpaceProps(String spaceId)
protected void wait(int index)
protected void checkThatStreamingServiceIsEnabled(String spaceId, String taskName)
UnsupportedTaskException - if no distribution existsCopyright © 2009–2020 LYRASIS. All rights reserved.