Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.elastictranscoder;
  
  
  
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.

  
          implements AmazonElasticTranscoderAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
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:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

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

  
      public AmazonElasticTranscoderAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
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:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

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:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
  
      public AmazonElasticTranscoderAsyncClient(ClientConfiguration clientConfiguration) {
          this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
      }

    
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.
 
     public AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
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.
 
     public AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = 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.
 
     public AmazonElasticTranscoderAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
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.
 
     public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
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.
 
     public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
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).
 
     public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
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.
 
     public AmazonElasticTranscoderAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

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

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
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.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<UpdatePipelineStatusResultupdatePipelineStatusAsync(final UpdatePipelineStatusRequest updatePipelineStatusRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdatePipelineStatusResult>() {
             public UpdatePipelineStatusResult call() throws Exception {
                 return updatePipelineStatus(updatePipelineStatusRequest);
         }
     });
     }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final UpdatePipelineStatusRequest updatePipelineStatusRequest,
             final AsyncHandler<UpdatePipelineStatusRequestUpdatePipelineStatusResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdatePipelineStatusResult>() {
             public UpdatePipelineStatusResult call() throws Exception {
               UpdatePipelineStatusResult result;
                 try {
                 result = updatePipelineStatus(updatePipelineStatusRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updatePipelineStatusRequestresult);
                  return result;
         }
     });
     }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public UpdatePipelineNotificationsResult call() throws Exception {
                 return updatePipelineNotifications(updatePipelineNotificationsRequest);
         }
     });
     }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final UpdatePipelineNotificationsRequest updatePipelineNotificationsRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public UpdatePipelineNotificationsResult call() throws Exception {
               UpdatePipelineNotificationsResult result;
                 try {
                 result = updatePipelineNotifications(updatePipelineNotificationsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updatePipelineNotificationsRequestresult);
                  return result;
         }
     });
     }
    
    

The ReadJob operation returns detailed information about a job.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ReadJobResultreadJobAsync(final ReadJobRequest readJobRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ReadJobResult>() {
             public ReadJobResult call() throws Exception {
                 return readJob(readJobRequest);
         }
     });
     }

    

The ReadJob operation returns detailed information about a job.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ReadJobResultreadJobAsync(
             final ReadJobRequest readJobRequest,
             final AsyncHandler<ReadJobRequestReadJobResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ReadJobResult>() {
             public ReadJobResult call() throws Exception {
               ReadJobResult result;
                 try {
                 result = readJob(readJobRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(readJobRequestresult);
                  return result;
         }
     });
     }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListJobsByStatusResultlistJobsByStatusAsync(final ListJobsByStatusRequest listJobsByStatusRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListJobsByStatusResult>() {
             public ListJobsByStatusResult call() throws Exception {
                 return listJobsByStatus(listJobsByStatusRequest);
         }
     });
     }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final ListJobsByStatusRequest listJobsByStatusRequest,
             final AsyncHandler<ListJobsByStatusRequestListJobsByStatusResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListJobsByStatusResult>() {
             public ListJobsByStatusResult call() throws Exception {
               ListJobsByStatusResult result;
                 try {
                 result = listJobsByStatus(listJobsByStatusRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listJobsByStatusRequestresult);
                  return result;
         }
     });
     }
    
    

The ReadPreset operation gets detailed information about a preset.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ReadPresetResultreadPresetAsync(final ReadPresetRequest readPresetRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ReadPresetResult>() {
             public ReadPresetResult call() throws Exception {
                 return readPreset(readPresetRequest);
         }
     });
     }

    

The ReadPreset operation gets detailed information about a preset.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final ReadPresetRequest readPresetRequest,
             final AsyncHandler<ReadPresetRequestReadPresetResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ReadPresetResult>() {
             public ReadPresetResult call() throws Exception {
               ReadPresetResult result;
                 try {
                 result = readPreset(readPresetRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(readPresetRequestresult);
                  return result;
         }
     });
     }
    
    

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

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreatePipelineResultcreatePipelineAsync(final CreatePipelineRequest createPipelineRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreatePipelineResult>() {
             public CreatePipelineResult call() throws Exception {
                 return createPipeline(createPipelineRequest);
         }
     });
     }

    

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

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final CreatePipelineRequest createPipelineRequest,
             final AsyncHandler<CreatePipelineRequestCreatePipelineResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreatePipelineResult>() {
             public CreatePipelineResult call() throws Exception {
               CreatePipelineResult result;
                 try {
                 result = createPipeline(createPipelineRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createPipelineRequestresult);
                  return result;
         }
     });
     }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CancelJobResultcancelJobAsync(final CancelJobRequest cancelJobRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CancelJobResult>() {
             public CancelJobResult call() throws Exception {
                 return cancelJob(cancelJobRequest);
         }
     });
     }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final CancelJobRequest cancelJobRequest,
             final AsyncHandler<CancelJobRequestCancelJobResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CancelJobResult>() {
             public CancelJobResult call() throws Exception {
               CancelJobResult result;
                 try {
                 result = cancelJob(cancelJobRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(cancelJobRequestresult);
                  return result;
         }
     });
     }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<UpdatePipelineResultupdatePipelineAsync(final UpdatePipelineRequest updatePipelineRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdatePipelineResult>() {
             public UpdatePipelineResult call() throws Exception {
                 return updatePipeline(updatePipelineRequest);
         }
     });
     }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final UpdatePipelineRequest updatePipelineRequest,
             final AsyncHandler<UpdatePipelineRequestUpdatePipelineResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdatePipelineResult>() {
             public UpdatePipelineResult call() throws Exception {
               UpdatePipelineResult result;
                 try {
                 result = updatePipeline(updatePipelineRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updatePipelineRequestresult);
                  return result;
         }
     });
     }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListPresetsResultlistPresetsAsync(final ListPresetsRequest listPresetsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListPresetsResult>() {
             public ListPresetsResult call() throws Exception {
                 return listPresets(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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
 
             final ListPresetsRequest listPresetsRequest,
             final AsyncHandler<ListPresetsRequestListPresetsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListPresetsResult>() {
             public ListPresetsResult call() throws Exception {
               ListPresetsResult result;
                 try {
                 result = listPresets(listPresetsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listPresetsRequestresult);
                  return result;
         }
     });
     }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<DeletePipelineResultdeletePipelineAsync(final DeletePipelineRequest deletePipelineRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeletePipelineResult>() {
            public DeletePipelineResult call() throws Exception {
                return deletePipeline(deletePipelineRequest);
        }
    });
    }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final DeletePipelineRequest deletePipelineRequest,
            final AsyncHandler<DeletePipelineRequestDeletePipelineResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeletePipelineResult>() {
            public DeletePipelineResult call() throws Exception {
              DeletePipelineResult result;
                try {
                result = deletePipeline(deletePipelineRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deletePipelineRequestresult);
                 return result;
        }
    });
    }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<TestRoleResulttestRoleAsync(final TestRoleRequest testRoleRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<TestRoleResult>() {
            public TestRoleResult call() throws Exception {
                return testRole(testRoleRequest);
        }
    });
    }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final TestRoleRequest testRoleRequest,
            final AsyncHandler<TestRoleRequestTestRoleResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<TestRoleResult>() {
            public TestRoleResult call() throws Exception {
              TestRoleResult result;
                try {
                result = testRole(testRoleRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(testRoleRequestresult);
                 return result;
        }
    });
    }
    
    

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

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<ListPipelinesResultlistPipelinesAsync(final ListPipelinesRequest listPipelinesRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListPipelinesResult>() {
            public ListPipelinesResult call() throws Exception {
                return listPipelines(listPipelinesRequest);
        }
    });
    }

    

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

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final ListPipelinesRequest listPipelinesRequest,
            final AsyncHandler<ListPipelinesRequestListPipelinesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListPipelinesResult>() {
            public ListPipelinesResult call() throws Exception {
              ListPipelinesResult result;
                try {
                result = listPipelines(listPipelinesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listPipelinesRequestresult);
                 return result;
        }
    });
    }
    
    

The ReadPipeline operation gets detailed information about a pipeline.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<ReadPipelineResultreadPipelineAsync(final ReadPipelineRequest readPipelineRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ReadPipelineResult>() {
            public ReadPipelineResult call() throws Exception {
                return readPipeline(readPipelineRequest);
        }
    });
    }

    

The ReadPipeline operation gets detailed information about a pipeline.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final ReadPipelineRequest readPipelineRequest,
            final AsyncHandler<ReadPipelineRequestReadPipelineResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ReadPipelineResult>() {
            public ReadPipelineResult call() throws Exception {
              ReadPipelineResult result;
                try {
                result = readPipeline(readPipelineRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(readPipelineRequestresult);
                 return result;
        }
    });
    }
    
    

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 .

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<CreatePresetResultcreatePresetAsync(final CreatePresetRequest createPresetRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreatePresetResult>() {
            public CreatePresetResult call() throws Exception {
                return createPreset(createPresetRequest);
        }
    });
    }

    

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 .

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final CreatePresetRequest createPresetRequest,
            final AsyncHandler<CreatePresetRequestCreatePresetResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreatePresetResult>() {
            public CreatePresetResult call() throws Exception {
              CreatePresetResult result;
                try {
                result = createPreset(createPresetRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createPresetRequestresult);
                 return result;
        }
    });
    }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<DeletePresetResultdeletePresetAsync(final DeletePresetRequest deletePresetRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeletePresetResult>() {
            public DeletePresetResult call() throws Exception {
                return deletePreset(deletePresetRequest);
        }
    });
    }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final DeletePresetRequest deletePresetRequest,
            final AsyncHandler<DeletePresetRequestDeletePresetResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeletePresetResult>() {
            public DeletePresetResult call() throws Exception {
              DeletePresetResult result;
                try {
                result = deletePreset(deletePresetRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deletePresetRequestresult);
                 return result;
        }
    });
    }
    
    

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

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateJobResultcreateJobAsync(final CreateJobRequest createJobRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateJobResult>() {
            public CreateJobResult call() throws Exception {
                return createJob(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.

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

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final CreateJobRequest createJobRequest,
            final AsyncHandler<CreateJobRequestCreateJobResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateJobResult>() {
            public CreateJobResult call() throws Exception {
              CreateJobResult result;
                try {
                result = createJob(createJobRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createJobRequestresult);
                 return result;
        }
    });
    }
    
    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
    public Future<ListJobsByPipelineResultlistJobsByPipelineAsync(final ListJobsByPipelineRequest listJobsByPipelineRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListJobsByPipelineResult>() {
            public ListJobsByPipelineResult call() throws Exception {
                return listJobsByPipeline(listJobsByPipelineRequest);
        }
    });
    }

    

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.

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:
com.amazonaws.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.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticTranscoder indicating either a problem with the data in the request, or a server side issue.
            final ListJobsByPipelineRequest listJobsByPipelineRequest,
            final AsyncHandler<ListJobsByPipelineRequestListJobsByPipelineResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListJobsByPipelineResult>() {
            public ListJobsByPipelineResult call() throws Exception {
              ListJobsByPipelineResult result;
                try {
                result = listJobsByPipeline(listJobsByPipelineRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listJobsByPipelineRequestresult);
                 return result;
        }
    });
    }
    
}
        
New to GrepCode? Check out our FAQ X