@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonEBSAsyncClient extends AmazonEBSClient implements AmazonEBSAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
You can use the Amazon Elastic Block Store (EBS) direct APIs to directly read the data on your EBS snapshots, and identify the difference between two snapshots. You can view the details of blocks in an EBS snapshot, compare the block difference between two snapshots, and directly access the data in a snapshot. If you're an independent software vendor (ISV) who offers backup services for EBS, the EBS direct APIs make it easier and more cost-effective to track incremental changes on your EBS volumes via EBS snapshots. This can be done without having to create new volumes from EBS snapshots.
This API reference provides detailed information about the actions, data types, parameters, and errors of the EBS direct APIs. For more information about the elements that make up the EBS direct APIs, and examples of how to use them effectively, see Accessing the Contents of an EBS Snapshot in the Amazon Elastic Compute Cloud User Guide. For more information about the supported AWS Regions, endpoints, and service quotas for the EBS direct APIs, see Amazon Elastic Block Store Endpoints and Quotas in the AWS General Reference.
configFactoryclient, clientConfiguration, endpoint, isEndpointOverridden, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffsetENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonEBSAsyncClientBuilder |
asyncBuilder() |
Future<CompleteSnapshotResult> |
completeSnapshotAsync(CompleteSnapshotRequest request)
Seals and completes the snapshot after all of the required blocks of data have been written to it.
|
Future<CompleteSnapshotResult> |
completeSnapshotAsync(CompleteSnapshotRequest request,
AsyncHandler<CompleteSnapshotRequest,CompleteSnapshotResult> asyncHandler)
Seals and completes the snapshot after all of the required blocks of data have been written to it.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetSnapshotBlockResult> |
getSnapshotBlockAsync(GetSnapshotBlockRequest request)
Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
Future<GetSnapshotBlockResult> |
getSnapshotBlockAsync(GetSnapshotBlockRequest request,
AsyncHandler<GetSnapshotBlockRequest,GetSnapshotBlockResult> asyncHandler)
Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
Future<ListChangedBlocksResult> |
listChangedBlocksAsync(ListChangedBlocksRequest request)
Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store
snapshots of the same volume/snapshot lineage.
|
Future<ListChangedBlocksResult> |
listChangedBlocksAsync(ListChangedBlocksRequest request,
AsyncHandler<ListChangedBlocksRequest,ListChangedBlocksResult> asyncHandler)
Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store
snapshots of the same volume/snapshot lineage.
|
Future<ListSnapshotBlocksResult> |
listSnapshotBlocksAsync(ListSnapshotBlocksRequest request)
Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
|
Future<ListSnapshotBlocksResult> |
listSnapshotBlocksAsync(ListSnapshotBlocksRequest request,
AsyncHandler<ListSnapshotBlocksRequest,ListSnapshotBlocksResult> asyncHandler)
Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
|
Future<PutSnapshotBlockResult> |
putSnapshotBlockAsync(PutSnapshotBlockRequest request)
Writes a block of data to a block in the snapshot.
|
Future<PutSnapshotBlockResult> |
putSnapshotBlockAsync(PutSnapshotBlockRequest request,
AsyncHandler<PutSnapshotBlockRequest,PutSnapshotBlockResult> asyncHandler)
Writes a block of data to a block in the snapshot.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<StartSnapshotResult> |
startSnapshotAsync(StartSnapshotRequest request)
Creates a new Amazon EBS snapshot.
|
Future<StartSnapshotResult> |
startSnapshotAsync(StartSnapshotRequest request,
AsyncHandler<StartSnapshotRequest,StartSnapshotResult> asyncHandler)
Creates a new Amazon EBS snapshot.
|
builder, completeSnapshot, getCachedResponseMetadata, getSnapshotBlock, listChangedBlocks, listSnapshotBlocks, putSnapshotBlock, startSnapshotaddRequestHandler, addRequestHandler, beforeClientExecution, beforeMarshalling, calculateCRC32FromCompressedData, checkMutability, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, createSignerProvider, endClientExecution, endClientExecution, getClientConfiguration, getClientId, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerOverride, getSignerProvider, getSignerRegionOverride, getSigningRegion, getTimeOffset, isCsmEnabled, isEndpointOverridden, isProfilingEnabled, isRequestMetricsEnabled, makeImmutable, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shouldGenerateClientSideMonitoringEvents, useStrictHostNameVerification, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompleteSnapshot, getCachedResponseMetadata, getSnapshotBlock, listChangedBlocks, listSnapshotBlocks, putSnapshotBlock, startSnapshotpublic static AmazonEBSAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CompleteSnapshotResult> completeSnapshotAsync(CompleteSnapshotRequest request)
AmazonEBSAsync
Seals and completes the snapshot after all of the required blocks of data have been written to it. Completing the
snapshot changes the status to completed. You cannot write new blocks to a snapshot after it has
been completed.
completeSnapshotAsync in interface AmazonEBSAsyncpublic Future<CompleteSnapshotResult> completeSnapshotAsync(CompleteSnapshotRequest request, AsyncHandler<CompleteSnapshotRequest,CompleteSnapshotResult> asyncHandler)
AmazonEBSAsync
Seals and completes the snapshot after all of the required blocks of data have been written to it. Completing the
snapshot changes the status to completed. You cannot write new blocks to a snapshot after it has
been completed.
completeSnapshotAsync in interface AmazonEBSAsyncasyncHandler - 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<GetSnapshotBlockResult> getSnapshotBlockAsync(GetSnapshotBlockRequest request)
AmazonEBSAsyncReturns the data in a block in an Amazon Elastic Block Store snapshot.
getSnapshotBlockAsync in interface AmazonEBSAsyncpublic Future<GetSnapshotBlockResult> getSnapshotBlockAsync(GetSnapshotBlockRequest request, AsyncHandler<GetSnapshotBlockRequest,GetSnapshotBlockResult> asyncHandler)
AmazonEBSAsyncReturns the data in a block in an Amazon Elastic Block Store snapshot.
getSnapshotBlockAsync in interface AmazonEBSAsyncasyncHandler - 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<ListChangedBlocksResult> listChangedBlocksAsync(ListChangedBlocksRequest request)
AmazonEBSAsyncReturns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
listChangedBlocksAsync in interface AmazonEBSAsyncpublic Future<ListChangedBlocksResult> listChangedBlocksAsync(ListChangedBlocksRequest request, AsyncHandler<ListChangedBlocksRequest,ListChangedBlocksResult> asyncHandler)
AmazonEBSAsyncReturns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
listChangedBlocksAsync in interface AmazonEBSAsyncasyncHandler - 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<ListSnapshotBlocksResult> listSnapshotBlocksAsync(ListSnapshotBlocksRequest request)
AmazonEBSAsyncReturns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
listSnapshotBlocksAsync in interface AmazonEBSAsyncpublic Future<ListSnapshotBlocksResult> listSnapshotBlocksAsync(ListSnapshotBlocksRequest request, AsyncHandler<ListSnapshotBlocksRequest,ListSnapshotBlocksResult> asyncHandler)
AmazonEBSAsyncReturns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.
listSnapshotBlocksAsync in interface AmazonEBSAsyncasyncHandler - 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<PutSnapshotBlockResult> putSnapshotBlockAsync(PutSnapshotBlockRequest request)
AmazonEBSAsync
Writes a block of data to a block in the snapshot. If the specified block contains data, the existing data is
overwritten. The target snapshot must be in the pending state.
Data written to a snapshot must be aligned with 512-byte sectors.
putSnapshotBlockAsync in interface AmazonEBSAsyncpublic Future<PutSnapshotBlockResult> putSnapshotBlockAsync(PutSnapshotBlockRequest request, AsyncHandler<PutSnapshotBlockRequest,PutSnapshotBlockResult> asyncHandler)
AmazonEBSAsync
Writes a block of data to a block in the snapshot. If the specified block contains data, the existing data is
overwritten. The target snapshot must be in the pending state.
Data written to a snapshot must be aligned with 512-byte sectors.
putSnapshotBlockAsync in interface AmazonEBSAsyncasyncHandler - 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<StartSnapshotResult> startSnapshotAsync(StartSnapshotRequest request)
AmazonEBSAsync
Creates a new Amazon EBS snapshot. The new snapshot enters the pending state after the request
completes.
After creating the snapshot, use PutSnapshotBlock to write blocks of data to the snapshot.
startSnapshotAsync in interface AmazonEBSAsyncpublic Future<StartSnapshotResult> startSnapshotAsync(StartSnapshotRequest request, AsyncHandler<StartSnapshotRequest,StartSnapshotResult> asyncHandler)
AmazonEBSAsync
Creates a new Amazon EBS snapshot. The new snapshot enters the pending state after the request
completes.
After creating the snapshot, use PutSnapshotBlock to write blocks of data to the snapshot.
startSnapshotAsync in interface AmazonEBSAsyncasyncHandler - 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 AmazonEBSshutdown in class AmazonWebServiceClientCopyright © 2020. All rights reserved.