com.amazonaws.services.elastictranscoder
Class AmazonElasticTranscoderAsyncClient

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceClient
      extended by com.amazonaws.services.elastictranscoder.AmazonElasticTranscoderClient
          extended by com.amazonaws.services.elastictranscoder.AmazonElasticTranscoderAsyncClient
All Implemented Interfaces:
AmazonElasticTranscoder, AmazonElasticTranscoderAsync

public class AmazonElasticTranscoderAsyncClient
extends AmazonElasticTranscoderClient
implements AmazonElasticTranscoderAsync

Asynchronous client for accessing AmazonElasticTranscoder. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. AWS Elastic Transcoder Service

The AWS Elastic Transcoder Service.


Field Summary
 
Fields inherited from class com.amazonaws.services.elastictranscoder.AmazonElasticTranscoderClient
jsonErrorUnmarshallers
 
Fields inherited from class com.amazonaws.AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
 
Constructor Summary
AmazonElasticTranscoderAsyncClient()
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder.
AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials.
AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials, executor service, and client configuration options.
AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials and executor service.
AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider.
AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider and client configuration options.
AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider, executor service, and client configuration options.
AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider and executor service.
AmazonElasticTranscoderAsyncClient(ClientConfiguration clientConfiguration)
          Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder.
 
Method Summary
 Future<CancelJobResult> cancelJobAsync(CancelJobRequest cancelJobRequest)
           The CancelJob operation cancels an unfinished job.
 Future<CancelJobResult> cancelJobAsync(CancelJobRequest cancelJobRequest, AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
           The CancelJob operation cancels an unfinished job.
 Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest)
           When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the job that is created.
 Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest, AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
           When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the job that is created.
 Future<CreatePipelineResult> createPipelineAsync(CreatePipelineRequest createPipelineRequest)
           The CreatePipeline operation creates a pipeline with settings that you specify.
 Future<CreatePipelineResult> createPipelineAsync(CreatePipelineRequest createPipelineRequest, AsyncHandler<CreatePipelineRequest,CreatePipelineResult> asyncHandler)
           The CreatePipeline operation creates a pipeline with settings that you specify.
 Future<CreatePresetResult> createPresetAsync(CreatePresetRequest createPresetRequest)
           The CreatePreset operation creates a preset with settings that you specify.
 Future<CreatePresetResult> createPresetAsync(CreatePresetRequest createPresetRequest, AsyncHandler<CreatePresetRequest,CreatePresetResult> asyncHandler)
           The CreatePreset operation creates a preset with settings that you specify.
 Future<DeletePipelineResult> deletePipelineAsync(DeletePipelineRequest deletePipelineRequest)
           The DeletePipeline operation removes a pipeline.
 Future<DeletePipelineResult> deletePipelineAsync(DeletePipelineRequest deletePipelineRequest, AsyncHandler<DeletePipelineRequest,DeletePipelineResult> asyncHandler)
           The DeletePipeline operation removes a pipeline.
 Future<DeletePresetResult> deletePresetAsync(DeletePresetRequest deletePresetRequest)
           The DeletePreset operation removes a preset that you've added in an AWS region.
 Future<DeletePresetResult> deletePresetAsync(DeletePresetRequest deletePresetRequest, AsyncHandler<DeletePresetRequest,DeletePresetResult> asyncHandler)
           The DeletePreset operation removes a preset that you've added in an AWS region.
 ExecutorService getExecutorService()
          Returns the executor service used by this async client to execute requests.
 Future<ListJobsByPipelineResult> listJobsByPipelineAsync(ListJobsByPipelineRequest listJobsByPipelineRequest)
           The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.
 Future<ListJobsByPipelineResult> listJobsByPipelineAsync(ListJobsByPipelineRequest listJobsByPipelineRequest, AsyncHandler<ListJobsByPipelineRequest,ListJobsByPipelineResult> asyncHandler)
           The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.
 Future<ListJobsByStatusResult> listJobsByStatusAsync(ListJobsByStatusRequest listJobsByStatusRequest)
           The ListJobsByStatus operation gets a list of jobs that have a specified status.
 Future<ListJobsByStatusResult> listJobsByStatusAsync(ListJobsByStatusRequest listJobsByStatusRequest, AsyncHandler<ListJobsByStatusRequest,ListJobsByStatusResult> asyncHandler)
           The ListJobsByStatus operation gets a list of jobs that have a specified status.
 Future<ListPipelinesResult> listPipelinesAsync(ListPipelinesRequest listPipelinesRequest)
           The ListPipelines operation gets a list of the pipelines associated with the current AWS account.
 Future<ListPipelinesResult> listPipelinesAsync(ListPipelinesRequest listPipelinesRequest, AsyncHandler<ListPipelinesRequest,ListPipelinesResult> asyncHandler)
           The ListPipelines operation gets a list of the pipelines associated with the current AWS account.
 Future<ListPresetsResult> listPresetsAsync(ListPresetsRequest listPresetsRequest)
           The ListPresets operation gets a list of the default presets included with Elastic Transcoder and the presets that you've added in an AWS region.
 Future<ListPresetsResult> listPresetsAsync(ListPresetsRequest listPresetsRequest, AsyncHandler<ListPresetsRequest,ListPresetsResult> asyncHandler)
           The ListPresets operation gets a list of the default presets included with Elastic Transcoder and the presets that you've added in an AWS region.
 Future<ReadJobResult> readJobAsync(ReadJobRequest readJobRequest)
           The ReadJob operation returns detailed information about a job.
 Future<ReadJobResult> readJobAsync(ReadJobRequest readJobRequest, AsyncHandler<ReadJobRequest,ReadJobResult> asyncHandler)
           The ReadJob operation returns detailed information about a job.
 Future<ReadPipelineResult> readPipelineAsync(ReadPipelineRequest readPipelineRequest)
           The ReadPipeline operation gets detailed information about a pipeline.
 Future<ReadPipelineResult> readPipelineAsync(ReadPipelineRequest readPipelineRequest, AsyncHandler<ReadPipelineRequest,ReadPipelineResult> asyncHandler)
           The ReadPipeline operation gets detailed information about a pipeline.
 Future<ReadPresetResult> readPresetAsync(ReadPresetRequest readPresetRequest)
           The ReadPreset operation gets detailed information about a preset.
 Future<ReadPresetResult> readPresetAsync(ReadPresetRequest readPresetRequest, AsyncHandler<ReadPresetRequest,ReadPresetResult> asyncHandler)
           The ReadPreset operation gets detailed information about a preset.
 void shutdown()
          Shuts down the client, releasing all managed resources.
 Future<TestRoleResult> testRoleAsync(TestRoleRequest testRoleRequest)
           The TestRole operation tests the IAM role used to create the pipeline.
 Future<TestRoleResult> testRoleAsync(TestRoleRequest testRoleRequest, AsyncHandler<TestRoleRequest,TestRoleResult> asyncHandler)
           The TestRole operation tests the IAM role used to create the pipeline.
 Future<UpdatePipelineResult> updatePipelineAsync(UpdatePipelineRequest updatePipelineRequest)
           Use the UpdatePipeline operation to update settings for a pipeline.
 Future<UpdatePipelineResult> updatePipelineAsync(UpdatePipelineRequest updatePipelineRequest, AsyncHandler<UpdatePipelineRequest,UpdatePipelineResult> asyncHandler)
           Use the UpdatePipeline operation to update settings for a pipeline.
 Future<UpdatePipelineNotificationsResult> updatePipelineNotificationsAsync(UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest)
           With the UpdatePipelineNotifications operation, you can update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline.
 Future<UpdatePipelineNotificationsResult> updatePipelineNotificationsAsync(UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest, AsyncHandler<UpdatePipelineNotificationsRequest,UpdatePipelineNotificationsResult> asyncHandler)
           With the UpdatePipelineNotifications operation, you can update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline.
 Future<UpdatePipelineStatusResult> updatePipelineStatusAsync(UpdatePipelineStatusRequest updatePipelineStatusRequest)
           The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that the pipeline stops or restarts the processing of jobs.
 Future<UpdatePipelineStatusResult> updatePipelineStatusAsync(UpdatePipelineStatusRequest updatePipelineStatusRequest, AsyncHandler<UpdatePipelineStatusRequest,UpdatePipelineStatusResult> asyncHandler)
           The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that the pipeline stops or restarts the processing of jobs.
 
Methods inherited from class com.amazonaws.services.elastictranscoder.AmazonElasticTranscoderClient
cancelJob, createJob, createPipeline, createPreset, deletePipeline, deletePreset, getCachedResponseMetadata, listJobsByPipeline, listJobsByStatus, listPipelines, listPipelines, listPresets, listPresets, readJob, readPipeline, readPreset, setEndpoint, setEndpoint, testRole, updatePipeline, updatePipelineNotifications, updatePipelineStatus
 
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, addRequestHandler, configSigner, configSigner, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withTimeOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.amazonaws.services.elastictranscoder.AmazonElasticTranscoder
cancelJob, createJob, createPipeline, createPreset, deletePipeline, deletePreset, getCachedResponseMetadata, listJobsByPipeline, listJobsByStatus, listPipelines, listPipelines, listPresets, listPresets, readJob, readPipeline, readPreset, setEndpoint, setRegion, testRole, updatePipeline, updatePipelineNotifications, updatePipelineStatus
 

Constructor Detail

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient()
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder. A credentials provider chain will be used that searches for credentials in this order:

All service calls made using this new client object are blocking, and will not return until the service call completes.

See Also:
DefaultAWSCredentialsProviderChain

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder. A credentials provider chain will be used that searches for credentials in this order:

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration - The client configuration options controlling how this client connects to AmazonElasticTranscoder (ex: proxy settings, retry counts, etc.).
See Also:
DefaultAWSCredentialsProviderChain

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials,
                                          ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService - The executor service by which all asynchronous requests will be executed.

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials,
                                          ClientConfiguration clientConfiguration,
                                          ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).
executorService - The executor service by which all asynchronous requests will be executed.

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                                          ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService - The executor service by which all asynchronous requests will be executed.

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                                          ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).

AmazonElasticTranscoderAsyncClient

public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                                          ClientConfiguration clientConfiguration,
                                          ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AmazonElasticTranscoder using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).
executorService - The executor service by which all asynchronous requests will be executed.
Method Detail

getExecutorService

public ExecutorService getExecutorService()
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.

shutdown

public void shutdown()
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.

Specified by:
shutdown in interface AmazonElasticTranscoder
Overrides:
shutdown in class AmazonWebServiceClient

updatePipelineStatusAsync

public Future<UpdatePipelineStatusResult> updatePipelineStatusAsync(UpdatePipelineStatusRequest updatePipelineStatusRequest)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that the pipeline stops or restarts the processing of jobs.

Changing the pipeline status is useful if you want to cancel one or more jobs. You can't cancel jobs after Elastic Transcoder has started processing them; if you pause the pipeline to which you submitted the jobs, you have more time to get the job IDs for the jobs that you want to cancel, and to send a CancelJob request.

Specified by:
updatePipelineStatusAsync in interface AmazonElasticTranscoderAsync
Parameters:
updatePipelineStatusRequest - Container for the necessary parameters to execute the UpdatePipelineStatus operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the UpdatePipelineStatus service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

updatePipelineStatusAsync

public Future<UpdatePipelineStatusResult> updatePipelineStatusAsync(UpdatePipelineStatusRequest updatePipelineStatusRequest,
                                                                    AsyncHandler<UpdatePipelineStatusRequest,UpdatePipelineStatusResult> asyncHandler)
                                                             throws AmazonServiceException,
                                                                    AmazonClientException

The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that the pipeline stops or restarts the processing of jobs.

Changing the pipeline status is useful if you want to cancel one or more jobs. You can't cancel jobs after Elastic Transcoder has started processing them; if you pause the pipeline to which you submitted the jobs, you have more time to get the job IDs for the jobs that you want to cancel, and to send a CancelJob request.

Specified by:
updatePipelineStatusAsync in interface AmazonElasticTranscoderAsync
Parameters:
updatePipelineStatusRequest - Container for the necessary parameters to execute the UpdatePipelineStatus operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdatePipelineStatus service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

updatePipelineNotificationsAsync

public Future<UpdatePipelineNotificationsResult> updatePipelineNotificationsAsync(UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest)
                                                                           throws AmazonServiceException,
                                                                                  AmazonClientException

With the UpdatePipelineNotifications operation, you can update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline.

When you update notifications for a pipeline, Elastic Transcoder returns the values that you specified in the request.

Specified by:
updatePipelineNotificationsAsync in interface AmazonElasticTranscoderAsync
Parameters:
updatePipelineNotificationsRequest - Container for the necessary parameters to execute the UpdatePipelineNotifications operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the UpdatePipelineNotifications service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

updatePipelineNotificationsAsync

public Future<UpdatePipelineNotificationsResult> updatePipelineNotificationsAsync(UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest,
                                                                                  AsyncHandler<UpdatePipelineNotificationsRequest,UpdatePipelineNotificationsResult> asyncHandler)
                                                                           throws AmazonServiceException,
                                                                                  AmazonClientException

With the UpdatePipelineNotifications operation, you can update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline.

When you update notifications for a pipeline, Elastic Transcoder returns the values that you specified in the request.

Specified by:
updatePipelineNotificationsAsync in interface AmazonElasticTranscoderAsync
Parameters:
updatePipelineNotificationsRequest - Container for the necessary parameters to execute the UpdatePipelineNotifications operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdatePipelineNotifications service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

readJobAsync

public Future<ReadJobResult> readJobAsync(ReadJobRequest readJobRequest)
                                   throws AmazonServiceException,
                                          AmazonClientException

The ReadJob operation returns detailed information about a job.

Specified by:
readJobAsync in interface AmazonElasticTranscoderAsync
Parameters:
readJobRequest - Container for the necessary parameters to execute the ReadJob operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the ReadJob service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

readJobAsync

public Future<ReadJobResult> readJobAsync(ReadJobRequest readJobRequest,
                                          AsyncHandler<ReadJobRequest,ReadJobResult> asyncHandler)
                                   throws AmazonServiceException,
                                          AmazonClientException

The ReadJob operation returns detailed information about a job.

Specified by:
readJobAsync in interface AmazonElasticTranscoderAsync
Parameters:
readJobRequest - Container for the necessary parameters to execute the ReadJob operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ReadJob service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listJobsByStatusAsync

public Future<ListJobsByStatusResult> listJobsByStatusAsync(ListJobsByStatusRequest listJobsByStatusRequest)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The ListJobsByStatus operation gets a list of jobs that have a specified status. The response body contains one element for each job that satisfies the search criteria.

Specified by:
listJobsByStatusAsync in interface AmazonElasticTranscoderAsync
Parameters:
listJobsByStatusRequest - Container for the necessary parameters to execute the ListJobsByStatus operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the ListJobsByStatus service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listJobsByStatusAsync

public Future<ListJobsByStatusResult> listJobsByStatusAsync(ListJobsByStatusRequest listJobsByStatusRequest,
                                                            AsyncHandler<ListJobsByStatusRequest,ListJobsByStatusResult> asyncHandler)
                                                     throws AmazonServiceException,
                                                            AmazonClientException

The ListJobsByStatus operation gets a list of jobs that have a specified status. The response body contains one element for each job that satisfies the search criteria.

Specified by:
listJobsByStatusAsync in interface AmazonElasticTranscoderAsync
Parameters:
listJobsByStatusRequest - Container for the necessary parameters to execute the ListJobsByStatus operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListJobsByStatus service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

readPresetAsync

public Future<ReadPresetResult> readPresetAsync(ReadPresetRequest readPresetRequest)
                                         throws AmazonServiceException,
                                                AmazonClientException

The ReadPreset operation gets detailed information about a preset.

Specified by:
readPresetAsync in interface AmazonElasticTranscoderAsync
Parameters:
readPresetRequest - Container for the necessary parameters to execute the ReadPreset operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the ReadPreset service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

readPresetAsync

public Future<ReadPresetResult> readPresetAsync(ReadPresetRequest readPresetRequest,
                                                AsyncHandler<ReadPresetRequest,ReadPresetResult> asyncHandler)
                                         throws AmazonServiceException,
                                                AmazonClientException

The ReadPreset operation gets detailed information about a preset.

Specified by:
readPresetAsync in interface AmazonElasticTranscoderAsync
Parameters:
readPresetRequest - Container for the necessary parameters to execute the ReadPreset operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ReadPreset service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

createPipelineAsync

public Future<CreatePipelineResult> createPipelineAsync(CreatePipelineRequest createPipelineRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The CreatePipeline operation creates a pipeline with settings that you specify.

Specified by:
createPipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
createPipelineRequest - Container for the necessary parameters to execute the CreatePipeline operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the CreatePipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

createPipelineAsync

public Future<CreatePipelineResult> createPipelineAsync(CreatePipelineRequest createPipelineRequest,
                                                        AsyncHandler<CreatePipelineRequest,CreatePipelineResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The CreatePipeline operation creates a pipeline with settings that you specify.

Specified by:
createPipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
createPipelineRequest - Container for the necessary parameters to execute the CreatePipeline operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreatePipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

cancelJobAsync

public Future<CancelJobResult> cancelJobAsync(CancelJobRequest cancelJobRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException

The CancelJob operation cancels an unfinished job.

NOTE:You can only cancel a job that has a status of Submitted. To prevent a pipeline from starting to process a job while you're getting the job identifier, use UpdatePipelineStatus to temporarily pause the pipeline.

Specified by:
cancelJobAsync in interface AmazonElasticTranscoderAsync
Parameters:
cancelJobRequest - Container for the necessary parameters to execute the CancelJob operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the CancelJob service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

cancelJobAsync

public Future<CancelJobResult> cancelJobAsync(CancelJobRequest cancelJobRequest,
                                              AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException

The CancelJob operation cancels an unfinished job.

NOTE:You can only cancel a job that has a status of Submitted. To prevent a pipeline from starting to process a job while you're getting the job identifier, use UpdatePipelineStatus to temporarily pause the pipeline.

Specified by:
cancelJobAsync in interface AmazonElasticTranscoderAsync
Parameters:
cancelJobRequest - Container for the necessary parameters to execute the CancelJob operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CancelJob service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

updatePipelineAsync

public Future<UpdatePipelineResult> updatePipelineAsync(UpdatePipelineRequest updatePipelineRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Use the UpdatePipeline operation to update settings for a pipeline.

IMPORTANT:When you change pipeline settings, your changes take effect immediately. Jobs that you have already submitted and that Elastic Transcoder has not started to process are affected in addition to jobs that you submit after you change settings.

Specified by:
updatePipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
updatePipelineRequest - Container for the necessary parameters to execute the UpdatePipeline operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the UpdatePipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

updatePipelineAsync

public Future<UpdatePipelineResult> updatePipelineAsync(UpdatePipelineRequest updatePipelineRequest,
                                                        AsyncHandler<UpdatePipelineRequest,UpdatePipelineResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

Use the UpdatePipeline operation to update settings for a pipeline.

IMPORTANT:When you change pipeline settings, your changes take effect immediately. Jobs that you have already submitted and that Elastic Transcoder has not started to process are affected in addition to jobs that you submit after you change settings.

Specified by:
updatePipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
updatePipelineRequest - Container for the necessary parameters to execute the UpdatePipeline operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the UpdatePipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listPresetsAsync

public Future<ListPresetsResult> listPresetsAsync(ListPresetsRequest listPresetsRequest)
                                           throws AmazonServiceException,
                                                  AmazonClientException

The ListPresets operation gets a list of the default presets included with Elastic Transcoder and the presets that you've added in an AWS region.

Specified by:
listPresetsAsync in interface AmazonElasticTranscoderAsync
Parameters:
listPresetsRequest - Container for the necessary parameters to execute the ListPresets operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the ListPresets service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listPresetsAsync

public Future<ListPresetsResult> listPresetsAsync(ListPresetsRequest listPresetsRequest,
                                                  AsyncHandler<ListPresetsRequest,ListPresetsResult> asyncHandler)
                                           throws AmazonServiceException,
                                                  AmazonClientException

The ListPresets operation gets a list of the default presets included with Elastic Transcoder and the presets that you've added in an AWS region.

Specified by:
listPresetsAsync in interface AmazonElasticTranscoderAsync
Parameters:
listPresetsRequest - Container for the necessary parameters to execute the ListPresets operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListPresets service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

deletePipelineAsync

public Future<DeletePipelineResult> deletePipelineAsync(DeletePipelineRequest deletePipelineRequest)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The DeletePipeline operation removes a pipeline.

You can only delete a pipeline that has never been used or that is not currently in use (doesn't contain any active jobs). If the pipeline is currently in use, DeletePipeline returns an error.

Specified by:
deletePipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
deletePipelineRequest - Container for the necessary parameters to execute the DeletePipeline operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the DeletePipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

deletePipelineAsync

public Future<DeletePipelineResult> deletePipelineAsync(DeletePipelineRequest deletePipelineRequest,
                                                        AsyncHandler<DeletePipelineRequest,DeletePipelineResult> asyncHandler)
                                                 throws AmazonServiceException,
                                                        AmazonClientException

The DeletePipeline operation removes a pipeline.

You can only delete a pipeline that has never been used or that is not currently in use (doesn't contain any active jobs). If the pipeline is currently in use, DeletePipeline returns an error.

Specified by:
deletePipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
deletePipelineRequest - Container for the necessary parameters to execute the DeletePipeline operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeletePipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

testRoleAsync

public Future<TestRoleResult> testRoleAsync(TestRoleRequest testRoleRequest)
                                     throws AmazonServiceException,
                                            AmazonClientException

The TestRole operation tests the IAM role used to create the pipeline.

The TestRole action lets you determine whether the IAM role you are using has sufficient permissions to let Elastic Transcoder perform tasks associated with the transcoding process. The action attempts to assume the specified IAM role, checks read access to the input and output buckets, and tries to send a test notification to Amazon SNS topics that you specify.

Specified by:
testRoleAsync in interface AmazonElasticTranscoderAsync
Parameters:
testRoleRequest - Container for the necessary parameters to execute the TestRole operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the TestRole service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

testRoleAsync

public Future<TestRoleResult> testRoleAsync(TestRoleRequest testRoleRequest,
                                            AsyncHandler<TestRoleRequest,TestRoleResult> asyncHandler)
                                     throws AmazonServiceException,
                                            AmazonClientException

The TestRole operation tests the IAM role used to create the pipeline.

The TestRole action lets you determine whether the IAM role you are using has sufficient permissions to let Elastic Transcoder perform tasks associated with the transcoding process. The action attempts to assume the specified IAM role, checks read access to the input and output buckets, and tries to send a test notification to Amazon SNS topics that you specify.

Specified by:
testRoleAsync in interface AmazonElasticTranscoderAsync
Parameters:
testRoleRequest - Container for the necessary parameters to execute the TestRole operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the TestRole service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listPipelinesAsync

public Future<ListPipelinesResult> listPipelinesAsync(ListPipelinesRequest listPipelinesRequest)
                                               throws AmazonServiceException,
                                                      AmazonClientException

The ListPipelines operation gets a list of the pipelines associated with the current AWS account.

Specified by:
listPipelinesAsync in interface AmazonElasticTranscoderAsync
Parameters:
listPipelinesRequest - Container for the necessary parameters to execute the ListPipelines operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the ListPipelines service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listPipelinesAsync

public Future<ListPipelinesResult> listPipelinesAsync(ListPipelinesRequest listPipelinesRequest,
                                                      AsyncHandler<ListPipelinesRequest,ListPipelinesResult> asyncHandler)
                                               throws AmazonServiceException,
                                                      AmazonClientException

The ListPipelines operation gets a list of the pipelines associated with the current AWS account.

Specified by:
listPipelinesAsync in interface AmazonElasticTranscoderAsync
Parameters:
listPipelinesRequest - Container for the necessary parameters to execute the ListPipelines operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListPipelines service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

readPipelineAsync

public Future<ReadPipelineResult> readPipelineAsync(ReadPipelineRequest readPipelineRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The ReadPipeline operation gets detailed information about a pipeline.

Specified by:
readPipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
readPipelineRequest - Container for the necessary parameters to execute the ReadPipeline operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the ReadPipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

readPipelineAsync

public Future<ReadPipelineResult> readPipelineAsync(ReadPipelineRequest readPipelineRequest,
                                                    AsyncHandler<ReadPipelineRequest,ReadPipelineResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The ReadPipeline operation gets detailed information about a pipeline.

Specified by:
readPipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
readPipelineRequest - Container for the necessary parameters to execute the ReadPipeline operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ReadPipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

createPresetAsync

public Future<CreatePresetResult> createPresetAsync(CreatePresetRequest createPresetRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The CreatePreset operation creates a preset with settings that you specify.

IMPORTANT:Elastic Transcoder checks the CreatePreset settings to ensure that they meet Elastic Transcoder requirements and to determine whether they comply with H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic Transcoder returns an HTTP 400 response (ValidationException) and does not create the preset. If the settings are valid for Elastic Transcoder but aren't strictly compliant with the H.264 standard, Elastic Transcoder creates the preset and returns a warning message in the response. This helps you determine whether your settings comply with the H.264 standard while giving you greater flexibility with respect to the video that Elastic Transcoder produces.

Elastic Transcoder uses the H.264 video-compression format. For more information, see the International Telecommunication Union publication Recommendation ITU-T H.264: Advanced video coding for generic audiovisual services .

Specified by:
createPresetAsync in interface AmazonElasticTranscoderAsync
Parameters:
createPresetRequest - Container for the necessary parameters to execute the CreatePreset operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the CreatePreset service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

createPresetAsync

public Future<CreatePresetResult> createPresetAsync(CreatePresetRequest createPresetRequest,
                                                    AsyncHandler<CreatePresetRequest,CreatePresetResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The CreatePreset operation creates a preset with settings that you specify.

IMPORTANT:Elastic Transcoder checks the CreatePreset settings to ensure that they meet Elastic Transcoder requirements and to determine whether they comply with H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic Transcoder returns an HTTP 400 response (ValidationException) and does not create the preset. If the settings are valid for Elastic Transcoder but aren't strictly compliant with the H.264 standard, Elastic Transcoder creates the preset and returns a warning message in the response. This helps you determine whether your settings comply with the H.264 standard while giving you greater flexibility with respect to the video that Elastic Transcoder produces.

Elastic Transcoder uses the H.264 video-compression format. For more information, see the International Telecommunication Union publication Recommendation ITU-T H.264: Advanced video coding for generic audiovisual services .

Specified by:
createPresetAsync in interface AmazonElasticTranscoderAsync
Parameters:
createPresetRequest - Container for the necessary parameters to execute the CreatePreset operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreatePreset service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

deletePresetAsync

public Future<DeletePresetResult> deletePresetAsync(DeletePresetRequest deletePresetRequest)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The DeletePreset operation removes a preset that you've added in an AWS region.

NOTE: You can't delete the default presets that are included with Elastic Transcoder.

Specified by:
deletePresetAsync in interface AmazonElasticTranscoderAsync
Parameters:
deletePresetRequest - Container for the necessary parameters to execute the DeletePreset operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the DeletePreset service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

deletePresetAsync

public Future<DeletePresetResult> deletePresetAsync(DeletePresetRequest deletePresetRequest,
                                                    AsyncHandler<DeletePresetRequest,DeletePresetResult> asyncHandler)
                                             throws AmazonServiceException,
                                                    AmazonClientException

The DeletePreset operation removes a preset that you've added in an AWS region.

NOTE: You can't delete the default presets that are included with Elastic Transcoder.

Specified by:
deletePresetAsync in interface AmazonElasticTranscoderAsync
Parameters:
deletePresetRequest - Container for the necessary parameters to execute the DeletePreset operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeletePreset service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

createJobAsync

public Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest)
                                       throws AmazonServiceException,
                                              AmazonClientException

When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the job that is created.

If you have specified more than one output for your jobs (for example, one output for the Kindle Fire and another output for the Apple iPhone 4s), you currently must use the Elastic Transcoder API to list the jobs (as opposed to the AWS Console).

Specified by:
createJobAsync in interface AmazonElasticTranscoderAsync
Parameters:
createJobRequest - Container for the necessary parameters to execute the CreateJob operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the CreateJob service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

createJobAsync

public Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest,
                                              AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
                                       throws AmazonServiceException,
                                              AmazonClientException

When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the job that is created.

If you have specified more than one output for your jobs (for example, one output for the Kindle Fire and another output for the Apple iPhone 4s), you currently must use the Elastic Transcoder API to list the jobs (as opposed to the AWS Console).

Specified by:
createJobAsync in interface AmazonElasticTranscoderAsync
Parameters:
createJobRequest - Container for the necessary parameters to execute the CreateJob operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateJob service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listJobsByPipelineAsync

public Future<ListJobsByPipelineResult> listJobsByPipelineAsync(ListJobsByPipelineRequest listJobsByPipelineRequest)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.

Elastic Transcoder returns all of the jobs currently in the specified pipeline. The response body contains one element for each job that satisfies the search criteria.

Specified by:
listJobsByPipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
listJobsByPipelineRequest - Container for the necessary parameters to execute the ListJobsByPipeline operation on AmazonElasticTranscoder.
Returns:
A Java Future object containing the response from the ListJobsByPipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.

listJobsByPipelineAsync

public Future<ListJobsByPipelineResult> listJobsByPipelineAsync(ListJobsByPipelineRequest listJobsByPipelineRequest,
                                                                AsyncHandler<ListJobsByPipelineRequest,ListJobsByPipelineResult> asyncHandler)
                                                         throws AmazonServiceException,
                                                                AmazonClientException

The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.

Elastic Transcoder returns all of the jobs currently in the specified pipeline. The response body contains one element for each job that satisfies the search criteria.

Specified by:
listJobsByPipelineAsync in interface AmazonElasticTranscoderAsync
Parameters:
listJobsByPipelineRequest - Container for the necessary parameters to execute the ListJobsByPipeline operation on AmazonElasticTranscoder.
asyncHandler - Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListJobsByPipeline service method, as returned by AmazonElasticTranscoder.
Throws:
AmazonClientException - If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
AmazonServiceException - If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.


Copyright © 2016. All rights reserved.