@ThreadSafe public class AmazonImportExportAsyncClient extends AmazonImportExportClient implements AmazonImportExportAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
LOGGING_AWS_REQUEST_METRIC
Constructor and Description |
---|
AmazonImportExportAsyncClient()
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials, executor
service, and client configuration options.
|
AmazonImportExportAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials and executor
service.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials provider.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the provided AWS account credentials provider and
client configuration options.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials provider,
executor service, and client configuration options.
|
AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export using the specified AWS account credentials provider and
executor service.
|
AmazonImportExportAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on AWS
Import/Export.
|
Modifier and Type | Method and Description |
---|---|
Future<CancelJobResult> |
cancelJobAsync(CancelJobRequest request)
This operation cancels a specified job.
|
Future<CancelJobResult> |
cancelJobAsync(CancelJobRequest request,
AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
This operation cancels a specified job.
|
Future<CreateJobResult> |
createJobAsync(CreateJobRequest request)
This operation initiates the process of scheduling an upload or download
of your data.
|
Future<CreateJobResult> |
createJobAsync(CreateJobRequest request,
AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
This operation initiates the process of scheduling an upload or download
of your data.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async
requests.
|
Future<GetShippingLabelResult> |
getShippingLabelAsync(GetShippingLabelRequest request)
This operation generates a pre-paid UPS shipping label that you will use
to ship your device to AWS for processing.
|
Future<GetShippingLabelResult> |
getShippingLabelAsync(GetShippingLabelRequest request,
AsyncHandler<GetShippingLabelRequest,GetShippingLabelResult> asyncHandler)
This operation generates a pre-paid UPS shipping label that you will use
to ship your device to AWS for processing.
|
Future<GetStatusResult> |
getStatusAsync(GetStatusRequest request)
This operation returns information about a job, including where the job
is in the processing pipeline, the status of the results, and the
signature value associated with the job.
|
Future<GetStatusResult> |
getStatusAsync(GetStatusRequest request,
AsyncHandler<GetStatusRequest,GetStatusResult> asyncHandler)
This operation returns information about a job, including where the job
is in the processing pipeline, the status of the results, and the
signature value associated with the job.
|
Future<ListJobsResult> |
listJobsAsync()
Simplified method form for invoking the ListJobs operation.
|
Future<ListJobsResult> |
listJobsAsync(AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
Simplified method form for invoking the ListJobs operation with an
AsyncHandler.
|
Future<ListJobsResult> |
listJobsAsync(ListJobsRequest request)
This operation returns the jobs associated with the requester.
|
Future<ListJobsResult> |
listJobsAsync(ListJobsRequest request,
AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
This operation returns the jobs associated with the requester.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<UpdateJobResult> |
updateJobAsync(UpdateJobRequest request)
You use this operation to change the parameters specified in the original
manifest file by supplying a new manifest file.
|
Future<UpdateJobResult> |
updateJobAsync(UpdateJobRequest request,
AsyncHandler<UpdateJobRequest,UpdateJobResult> asyncHandler)
You use this operation to change the parameters specified in the original
manifest file by supplying a new manifest file.
|
cancelJob, createJob, getCachedResponseMetadata, getShippingLabel, getStatus, listJobs, listJobs, updateJob
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancelJob, createJob, getCachedResponseMetadata, getShippingLabel, getStatus, listJobs, listJobs, setEndpoint, setRegion, updateJob
public AmazonImportExportAsyncClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
public AmazonImportExportAsyncClient(ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client
connects to AWS Import/Export (ex: proxy settings, retry counts,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonImportExportAsyncClient(AWSCredentials awsCredentials)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.Executors.newFixedThreadPool(int)
public AmazonImportExportAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
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 AmazonImportExportAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
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 AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
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).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
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 AmazonImportExportAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
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 ExecutorService getExecutorService()
public Future<CancelJobResult> cancelJobAsync(CancelJobRequest request)
AmazonImportExportAsync
cancelJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the CancelJob operation.public Future<CancelJobResult> cancelJobAsync(CancelJobRequest request, AsyncHandler<CancelJobRequest,CancelJobResult> asyncHandler)
AmazonImportExportAsync
cancelJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the CancelJob operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateJobResult> createJobAsync(CreateJobRequest request)
AmazonImportExportAsync
createJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the CreateJob operation.public Future<CreateJobResult> createJobAsync(CreateJobRequest request, AsyncHandler<CreateJobRequest,CreateJobResult> asyncHandler)
AmazonImportExportAsync
createJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the CreateJob operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetShippingLabelResult> getShippingLabelAsync(GetShippingLabelRequest request)
AmazonImportExportAsync
getShippingLabelAsync
in interface AmazonImportExportAsync
public Future<GetShippingLabelResult> getShippingLabelAsync(GetShippingLabelRequest request, AsyncHandler<GetShippingLabelRequest,GetShippingLabelResult> asyncHandler)
AmazonImportExportAsync
getShippingLabelAsync
in interface AmazonImportExportAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetStatusResult> getStatusAsync(GetStatusRequest request)
AmazonImportExportAsync
getStatusAsync
in interface AmazonImportExportAsync
request
- Input structure for the GetStatus operation.public Future<GetStatusResult> getStatusAsync(GetStatusRequest request, AsyncHandler<GetStatusRequest,GetStatusResult> asyncHandler)
AmazonImportExportAsync
getStatusAsync
in interface AmazonImportExportAsync
request
- Input structure for the GetStatus operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListJobsResult> listJobsAsync(ListJobsRequest request)
AmazonImportExportAsync
listJobsAsync
in interface AmazonImportExportAsync
request
- Input structure for the ListJobs operation.public Future<ListJobsResult> listJobsAsync(ListJobsRequest request, AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
AmazonImportExportAsync
listJobsAsync
in interface AmazonImportExportAsync
request
- Input structure for the ListJobs operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListJobsResult> listJobsAsync()
listJobsAsync
in interface AmazonImportExportAsync
listJobsAsync(ListJobsRequest)
public Future<ListJobsResult> listJobsAsync(AsyncHandler<ListJobsRequest,ListJobsResult> asyncHandler)
listJobsAsync
in interface AmazonImportExportAsync
listJobsAsync(ListJobsRequest, com.amazonaws.handlers.AsyncHandler)
public Future<UpdateJobResult> updateJobAsync(UpdateJobRequest request)
AmazonImportExportAsync
updateJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the UpateJob operation.public Future<UpdateJobResult> updateJobAsync(UpdateJobRequest request, AsyncHandler<UpdateJobRequest,UpdateJobResult> asyncHandler)
AmazonImportExportAsync
updateJobAsync
in interface AmazonImportExportAsync
request
- Input structure for the UpateJob operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by
getExecutorService().awaitTermination()
prior to calling this
method.shutdown
in interface AmazonImportExport
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.