Did this page help you?

   Yes   No   Tell us about it...

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.


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)
           To cancel a job, send a DELETE request to the /2012-09-25/jobs/[jobId] resource.
 Future<CancelJobResult> cancelJobAsync(CancelJobRequest cancelJobRequest, AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
           To cancel a job, send a DELETE request to the /2012-09-25/jobs/[jobId] resource.
 Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest)
           To create a job, send a POST request to the /2012-09-25/jobs resource.
 Future<CreateJobResult> createJobAsync(CreateJobRequest createJobRequest, AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
           To create a job, send a POST request to the /2012-09-25/jobs resource.
 Future<CreatePipelineResult> createPipelineAsync(CreatePipelineRequest createPipelineRequest)
           To create a pipeline, send a POST request to the 2012-09-25/pipelines resource.
 Future<CreatePipelineResult> createPipelineAsync(CreatePipelineRequest createPipelineRequest, AsyncHandler<CreatePipelineRequest,CreatePipelineResult> asyncHandler)
           To create a pipeline, send a POST request to the 2012-09-25/pipelines resource.
 Future<CreatePresetResult> createPresetAsync(CreatePresetRequest createPresetRequest)
           To create a preset, send a POST request to the /2012-09-25/presets resource.
 Future<CreatePresetResult> createPresetAsync(CreatePresetRequest createPresetRequest, AsyncHandler<CreatePresetRequest,CreatePresetResult> asyncHandler)
           To create a preset, send a POST request to the /2012-09-25/presets resource.
 Future<DeletePipelineResult> deletePipelineAsync(DeletePipelineRequest deletePipelineRequest)
           To delete a pipeline, send a DELETE request to the /2012-09-25/pipelines/[pipelineId] resource.
 Future<DeletePipelineResult> deletePipelineAsync(DeletePipelineRequest deletePipelineRequest, AsyncHandler<DeletePipelineRequest,DeletePipelineResult> asyncHandler)
           To delete a pipeline, send a DELETE request to the /2012-09-25/pipelines/[pipelineId] resource.
 Future<DeletePresetResult> deletePresetAsync(DeletePresetRequest deletePresetRequest)
           To delete a preset, send a DELETE request to the /2012-09-25/presets/[presetId] resource.
 Future<DeletePresetResult> deletePresetAsync(DeletePresetRequest deletePresetRequest, AsyncHandler<DeletePresetRequest,DeletePresetResult> asyncHandler)
           To delete a preset, send a DELETE request to the /2012-09-25/presets/[presetId] resource.
 ExecutorService getExecutorService()
          Returns the executor service used by this async client to execute requests.
 Future<ListJobsByPipelineResult> listJobsByPipelineAsync(ListJobsByPipelineRequest listJobsByPipelineRequest)
           To get a list of the jobs currently in a pipeline, send a GET request to the /2012-09-25/jobsByPipeline/[pipelineId] resource.
 Future<ListJobsByPipelineResult> listJobsByPipelineAsync(ListJobsByPipelineRequest listJobsByPipelineRequest, AsyncHandler<ListJobsByPipelineRequest,ListJobsByPipelineResult> asyncHandler)
           To get a list of the jobs currently in a pipeline, send a GET request to the /2012-09-25/jobsByPipeline/[pipelineId] resource.
 Future<ListJobsByStatusResult> listJobsByStatusAsync(ListJobsByStatusRequest listJobsByStatusRequest)
           To get a list of the jobs that have a specified status, send a GET request to the /2012-09-25/jobsByStatus/[status] resource.
 Future<ListJobsByStatusResult> listJobsByStatusAsync(ListJobsByStatusRequest listJobsByStatusRequest, AsyncHandler<ListJobsByStatusRequest,ListJobsByStatusResult> asyncHandler)
           To get a list of the jobs that have a specified status, send a GET request to the /2012-09-25/jobsByStatus/[status] resource.
 Future<ListPipelinesResult> listPipelinesAsync(ListPipelinesRequest listPipelinesRequest)
           To get a list of the pipelines associated with the current AWS account, send a GET request to the /2012-09-25/pipelines resource.
 Future<ListPipelinesResult> listPipelinesAsync(ListPipelinesRequest listPipelinesRequest, AsyncHandler<ListPipelinesRequest,ListPipelinesResult> asyncHandler)
           To get a list of the pipelines associated with the current AWS account, send a GET request to the /2012-09-25/pipelines resource.
 Future<ListPresetsResult> listPresetsAsync(ListPresetsRequest listPresetsRequest)
           To get a list of all presets associated with the current AWS account, send a GET request to the /2012-09-25/presets resource.
 Future<ListPresetsResult> listPresetsAsync(ListPresetsRequest listPresetsRequest, AsyncHandler<ListPresetsRequest,ListPresetsResult> asyncHandler)
           To get a list of all presets associated with the current AWS account, send a GET request to the /2012-09-25/presets resource.
 Future<ReadJobResult> readJobAsync(ReadJobRequest readJobRequest)
           To get detailed information about a job, send a GET request to the /2012-09-25/jobs/[jobId] resource.
 Future<ReadJobResult> readJobAsync(ReadJobRequest readJobRequest, AsyncHandler<ReadJobRequest,ReadJobResult> asyncHandler)
           To get detailed information about a job, send a GET request to the /2012-09-25/jobs/[jobId] resource.
 Future<ReadPipelineResult> readPipelineAsync(ReadPipelineRequest readPipelineRequest)
           To get detailed information about a pipeline, send a GET request to the /2012-09-25/pipelines/[pipelineId] resource.
 Future<ReadPipelineResult> readPipelineAsync(ReadPipelineRequest readPipelineRequest, AsyncHandler<ReadPipelineRequest,ReadPipelineResult> asyncHandler)
           To get detailed information about a pipeline, send a GET request to the /2012-09-25/pipelines/[pipelineId] resource.
 Future<ReadPresetResult> readPresetAsync(ReadPresetRequest readPresetRequest)
           To get detailed information about a preset, send a GET request to the /2012-09-25/presets/[presetId] resource.
 Future<ReadPresetResult> readPresetAsync(ReadPresetRequest readPresetRequest, AsyncHandler<ReadPresetRequest,ReadPresetResult> asyncHandler)
           To get detailed information about a preset, send a GET request to the /2012-09-25/presets/[presetId] resource.
 void shutdown()
          Shuts down the client, releasing all managed resources.
 Future<TestRoleResult> testRoleAsync(TestRoleRequest testRoleRequest)
           To test the IAM role that's used by Elastic Transcoder to create the pipeline, send a POST request to the /2012-09-25/roleTests resource.
 Future<TestRoleResult> testRoleAsync(TestRoleRequest testRoleRequest, AsyncHandler<TestRoleRequest,TestRoleResult> asyncHandler)
           To test the IAM role that's used by Elastic Transcoder to create the pipeline, send a POST request to the /2012-09-25/roleTests resource.
 Future<UpdatePipelineResult> updatePipelineAsync(UpdatePipelineRequest updatePipelineRequest)
           
 Future<UpdatePipelineResult> updatePipelineAsync(UpdatePipelineRequest updatePipelineRequest, AsyncHandler<UpdatePipelineRequest,UpdatePipelineResult> asyncHandler)
           
 Future<UpdatePipelineNotificationsResult> updatePipelineNotificationsAsync(UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest)
           To update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline, send a POST request to the /2012-09-25/pipelines/[pipelineId]/notifications resource.
 Future<UpdatePipelineNotificationsResult> updatePipelineNotificationsAsync(UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest, AsyncHandler<UpdatePipelineNotificationsRequest,UpdatePipelineNotificationsResult> asyncHandler)
           To update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline, send a POST request to the /2012-09-25/pipelines/[pipelineId]/notifications resource.
 Future<UpdatePipelineStatusResult> updatePipelineStatusAsync(UpdatePipelineStatusRequest updatePipelineStatusRequest)
           To pause or reactivate a pipeline, so the pipeline stops or restarts processing jobs, update the status for the pipeline.
 Future<UpdatePipelineStatusResult> updatePipelineStatusAsync(UpdatePipelineStatusRequest updatePipelineStatusRequest, AsyncHandler<UpdatePipelineStatusRequest,UpdatePipelineStatusResult> asyncHandler)
           To pause or reactivate a pipeline, so the pipeline stops or restarts processing jobs, update the status for the pipeline.
 
Methods inherited from class com.amazonaws.services.elastictranscoder.AmazonElasticTranscoderClient
cancelJob, cancelJob, createJob, createJob, createPipeline, createPipeline, createPreset, createPreset, deletePipeline, deletePipeline, deletePreset, deletePreset, getCachedResponseMetadata, listJobsByPipeline, listJobsByPipeline, listJobsByStatus, listJobsByStatus, listPipelines, listPipelines, listPresets, listPresets, readJob, readJob, readPipeline, readPipeline, readPreset, readPreset, setEndpoint, testRole, testRole, updatePipeline, updatePipelineNotifications, updatePipelineNotifications, updatePipelineStatus, updatePipelineStatus
 
Methods inherited from class com.amazonaws.AmazonWebServiceClient
addRequestHandler, getTimeOffset, removeRequestHandler, setConfiguration, setEndpoint, setRegion, setTimeOffset, withTimeOffset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.amazonaws.services.elastictranscoder.AmazonElasticTranscoder
cancelJob, cancelJob, createJob, createJob, createPipeline, createPipeline, createPreset, createPreset, deletePipeline, deletePipeline, deletePreset, deletePreset, getCachedResponseMetadata, listJobsByPipeline, listJobsByPipeline, listJobsByStatus, listJobsByStatus, listPipelines, listPipelines, listPresets, listPresets, readJob, readJob, readPipeline, readPipeline, readPreset, readPreset, setEndpoint, setRegion, testRole, testRole, updatePipeline, updatePipelineNotifications, updatePipelineNotifications, updatePipelineStatus, 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:
DefaultAWSCredentialsProvider

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:
DefaultAWSCredentialsProvider

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 default cached 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 default cached 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() 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

To pause or reactivate a pipeline, so the pipeline stops or restarts processing jobs, update the status for the pipeline. Send a POST request to the /2012-09-25/pipelines/[pipelineId]/status resource.

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

To pause or reactivate a pipeline, so the pipeline stops or restarts processing jobs, update the status for the pipeline. Send a POST request to the /2012-09-25/pipelines/[pipelineId]/status resource.

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

To update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline, send a POST request to the /2012-09-25/pipelines/[pipelineId]/notifications resource.

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

To update Amazon Simple Notification Service (Amazon SNS) notifications for a pipeline, send a POST request to the /2012-09-25/pipelines/[pipelineId]/notifications resource.

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

To get detailed information about a job, send a GET request to the /2012-09-25/jobs/[jobId] resource.

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

To get detailed information about a job, send a GET request to the /2012-09-25/jobs/[jobId] resource.

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

To get a list of the jobs that have a specified status, send a GET request to the /2012-09-25/jobsByStatus/[status] resource.

Elastic Transcoder returns all of the jobs that have the 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

To get a list of the jobs that have a specified status, send a GET request to the /2012-09-25/jobsByStatus/[status] resource.

Elastic Transcoder returns all of the jobs that have the 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

To get detailed information about a preset, send a GET request to the /2012-09-25/presets/[presetId] resource.

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

To get detailed information about a preset, send a GET request to the /2012-09-25/presets/[presetId] resource.

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

To create a pipeline, send a POST request to the 2012-09-25/pipelines resource.

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

To create a pipeline, send a POST request to the 2012-09-25/pipelines resource.

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

To cancel a job, send a DELETE request to the /2012-09-25/jobs/[jobId] resource.

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

To cancel a job, send a DELETE request to the /2012-09-25/jobs/[jobId] resource.

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
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
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

To get a list of all presets associated with the current AWS account, send a GET request to the /2012-09-25/presets resource.

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

To get a list of all presets associated with the current AWS account, send a GET request to the /2012-09-25/presets resource.

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

To delete a pipeline, send a DELETE request to the /2012-09-25/pipelines/[pipelineId] resource.

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

To delete a pipeline, send a DELETE request to the /2012-09-25/pipelines/[pipelineId] resource.

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

To test the IAM role that's used by Elastic Transcoder to create the pipeline, send a POST request to the /2012-09-25/roleTests resource.

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

To test the IAM role that's used by Elastic Transcoder to create the pipeline, send a POST request to the /2012-09-25/roleTests resource.

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

To get a list of the pipelines associated with the current AWS account, send a GET request to the /2012-09-25/pipelines resource.

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

To get a list of the pipelines associated with the current AWS account, send a GET request to the /2012-09-25/pipelines resource.

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

To get detailed information about a pipeline, send a GET request to the /2012-09-25/pipelines/[pipelineId] resource.

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

To get detailed information about a pipeline, send a GET request to the /2012-09-25/pipelines/[pipelineId] resource.

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

To create a preset, send a POST request to the /2012-09-25/presets resource.

IMPORTANT:Elastic Transcoder checks the settings that you specify 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

To create a preset, send a POST request to the /2012-09-25/presets resource.

IMPORTANT:Elastic Transcoder checks the settings that you specify 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

To delete a preset, send a DELETE request to the /2012-09-25/presets/[presetId] resource.

NOTE: If the preset has been used, you cannot delete it.

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

To delete a preset, send a DELETE request to the /2012-09-25/presets/[presetId] resource.

NOTE: If the preset has been used, you cannot delete it.

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

To create a job, send a POST request to the /2012-09-25/jobs resource.

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

To create a job, send a POST request to the /2012-09-25/jobs resource.

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

To get a list of the jobs currently in a pipeline, send a GET request to the /2012-09-25/jobsByPipeline/[pipelineId] resource.

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

To get a list of the jobs currently in a pipeline, send a GET request to the /2012-09-25/jobsByPipeline/[pipelineId] resource.

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 © 2010 Amazon Web Services, Inc. All Rights Reserved.