@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSServerMigrationAsyncClient extends AWSServerMigrationClient implements AWSServerMigrationAsync
AsyncHandler
can be used to receive notification when an
asynchronous operation completes.
Amazon Server Migration Service automates the process of migrating servers to EC2.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSServerMigrationAsyncClient()
Deprecated.
|
AWSServerMigrationAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AWSServerMigrationAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSServerMigrationAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AWSServerMigrationAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AWSServerMigrationAsyncClientBuilder |
asyncBuilder() |
Future<CreateReplicationJobResult> |
createReplicationJobAsync(CreateReplicationJobRequest request)
The CreateReplicationJob API is used to create a ReplicationJob to replicate a server on AWS.
|
Future<CreateReplicationJobResult> |
createReplicationJobAsync(CreateReplicationJobRequest request,
AsyncHandler<CreateReplicationJobRequest,CreateReplicationJobResult> asyncHandler)
The CreateReplicationJob API is used to create a ReplicationJob to replicate a server on AWS.
|
Future<DeleteReplicationJobResult> |
deleteReplicationJobAsync(DeleteReplicationJobRequest request)
The DeleteReplicationJob API is used to delete a ReplicationJob, resulting in no further ReplicationRuns.
|
Future<DeleteReplicationJobResult> |
deleteReplicationJobAsync(DeleteReplicationJobRequest request,
AsyncHandler<DeleteReplicationJobRequest,DeleteReplicationJobResult> asyncHandler)
The DeleteReplicationJob API is used to delete a ReplicationJob, resulting in no further ReplicationRuns.
|
Future<DeleteServerCatalogResult> |
deleteServerCatalogAsync(DeleteServerCatalogRequest request)
The DeleteServerCatalog API clears all servers from your server catalog.
|
Future<DeleteServerCatalogResult> |
deleteServerCatalogAsync(DeleteServerCatalogRequest request,
AsyncHandler<DeleteServerCatalogRequest,DeleteServerCatalogResult> asyncHandler)
The DeleteServerCatalog API clears all servers from your server catalog.
|
Future<DisassociateConnectorResult> |
disassociateConnectorAsync(DisassociateConnectorRequest request)
The DisassociateConnector API will disassociate a connector from the Server Migration Service, rendering it
unavailable to support replication jobs.
|
Future<DisassociateConnectorResult> |
disassociateConnectorAsync(DisassociateConnectorRequest request,
AsyncHandler<DisassociateConnectorRequest,DisassociateConnectorResult> asyncHandler)
The DisassociateConnector API will disassociate a connector from the Server Migration Service, rendering it
unavailable to support replication jobs.
|
Future<GetConnectorsResult> |
getConnectorsAsync(GetConnectorsRequest request)
The GetConnectors API returns a list of connectors that are registered with the Server Migration Service.
|
Future<GetConnectorsResult> |
getConnectorsAsync(GetConnectorsRequest request,
AsyncHandler<GetConnectorsRequest,GetConnectorsResult> asyncHandler)
The GetConnectors API returns a list of connectors that are registered with the Server Migration Service.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetReplicationJobsResult> |
getReplicationJobsAsync(GetReplicationJobsRequest request)
The GetReplicationJobs API will return all of your ReplicationJobs and their details.
|
Future<GetReplicationJobsResult> |
getReplicationJobsAsync(GetReplicationJobsRequest request,
AsyncHandler<GetReplicationJobsRequest,GetReplicationJobsResult> asyncHandler)
The GetReplicationJobs API will return all of your ReplicationJobs and their details.
|
Future<GetReplicationRunsResult> |
getReplicationRunsAsync(GetReplicationRunsRequest request)
The GetReplicationRuns API will return all ReplicationRuns for a given ReplicationJob.
|
Future<GetReplicationRunsResult> |
getReplicationRunsAsync(GetReplicationRunsRequest request,
AsyncHandler<GetReplicationRunsRequest,GetReplicationRunsResult> asyncHandler)
The GetReplicationRuns API will return all ReplicationRuns for a given ReplicationJob.
|
Future<GetServersResult> |
getServersAsync(GetServersRequest request)
The GetServers API returns a list of all servers in your server catalog.
|
Future<GetServersResult> |
getServersAsync(GetServersRequest request,
AsyncHandler<GetServersRequest,GetServersResult> asyncHandler)
The GetServers API returns a list of all servers in your server catalog.
|
Future<ImportServerCatalogResult> |
importServerCatalogAsync(ImportServerCatalogRequest request)
The ImportServerCatalog API is used to gather the complete list of on-premises servers on your premises.
|
Future<ImportServerCatalogResult> |
importServerCatalogAsync(ImportServerCatalogRequest request,
AsyncHandler<ImportServerCatalogRequest,ImportServerCatalogResult> asyncHandler)
The ImportServerCatalog API is used to gather the complete list of on-premises servers on your premises.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<StartOnDemandReplicationRunResult> |
startOnDemandReplicationRunAsync(StartOnDemandReplicationRunRequest request)
The StartOnDemandReplicationRun API is used to start a ReplicationRun on demand (in addition to those that are
scheduled based on your frequency).
|
Future<StartOnDemandReplicationRunResult> |
startOnDemandReplicationRunAsync(StartOnDemandReplicationRunRequest request,
AsyncHandler<StartOnDemandReplicationRunRequest,StartOnDemandReplicationRunResult> asyncHandler)
The StartOnDemandReplicationRun API is used to start a ReplicationRun on demand (in addition to those that are
scheduled based on your frequency).
|
Future<UpdateReplicationJobResult> |
updateReplicationJobAsync(UpdateReplicationJobRequest request)
The UpdateReplicationJob API is used to change the settings of your existing ReplicationJob created using
CreateReplicationJob.
|
Future<UpdateReplicationJobResult> |
updateReplicationJobAsync(UpdateReplicationJobRequest request,
AsyncHandler<UpdateReplicationJobRequest,UpdateReplicationJobResult> asyncHandler)
The UpdateReplicationJob API is used to change the settings of your existing ReplicationJob created using
CreateReplicationJob.
|
builder, createReplicationJob, deleteReplicationJob, deleteServerCatalog, disassociateConnector, getCachedResponseMetadata, getConnectors, getReplicationJobs, getReplicationRuns, getServers, importServerCatalog, startOnDemandReplicationRun, updateReplicationJob
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createReplicationJob, deleteReplicationJob, deleteServerCatalog, disassociateConnector, getCachedResponseMetadata, getConnectors, getReplicationJobs, getReplicationRuns, getServers, importServerCatalog, setEndpoint, setRegion, startOnDemandReplicationRun, updateReplicationJob
@Deprecated public AWSServerMigrationAsyncClient()
AWSServerMigrationAsyncClientBuilder.defaultClient()
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).
@Deprecated public AWSServerMigrationAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(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 SMS (ex: proxy settings, retry
counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
@Deprecated public AWSServerMigrationAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(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).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)
@Deprecated public AWSServerMigrationAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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.@Deprecated public AWSServerMigrationAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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.@Deprecated public AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(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)
@Deprecated public AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(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)
@Deprecated public AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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.@Deprecated public AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)
and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)
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 static AWSServerMigrationAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateReplicationJobResult> createReplicationJobAsync(CreateReplicationJobRequest request)
AWSServerMigrationAsync
createReplicationJobAsync
in interface AWSServerMigrationAsync
public Future<CreateReplicationJobResult> createReplicationJobAsync(CreateReplicationJobRequest request, AsyncHandler<CreateReplicationJobRequest,CreateReplicationJobResult> asyncHandler)
AWSServerMigrationAsync
createReplicationJobAsync
in interface AWSServerMigrationAsync
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<DeleteReplicationJobResult> deleteReplicationJobAsync(DeleteReplicationJobRequest request)
AWSServerMigrationAsync
deleteReplicationJobAsync
in interface AWSServerMigrationAsync
public Future<DeleteReplicationJobResult> deleteReplicationJobAsync(DeleteReplicationJobRequest request, AsyncHandler<DeleteReplicationJobRequest,DeleteReplicationJobResult> asyncHandler)
AWSServerMigrationAsync
deleteReplicationJobAsync
in interface AWSServerMigrationAsync
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<DeleteServerCatalogResult> deleteServerCatalogAsync(DeleteServerCatalogRequest request)
AWSServerMigrationAsync
deleteServerCatalogAsync
in interface AWSServerMigrationAsync
public Future<DeleteServerCatalogResult> deleteServerCatalogAsync(DeleteServerCatalogRequest request, AsyncHandler<DeleteServerCatalogRequest,DeleteServerCatalogResult> asyncHandler)
AWSServerMigrationAsync
deleteServerCatalogAsync
in interface AWSServerMigrationAsync
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<DisassociateConnectorResult> disassociateConnectorAsync(DisassociateConnectorRequest request)
AWSServerMigrationAsync
disassociateConnectorAsync
in interface AWSServerMigrationAsync
public Future<DisassociateConnectorResult> disassociateConnectorAsync(DisassociateConnectorRequest request, AsyncHandler<DisassociateConnectorRequest,DisassociateConnectorResult> asyncHandler)
AWSServerMigrationAsync
disassociateConnectorAsync
in interface AWSServerMigrationAsync
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<GetConnectorsResult> getConnectorsAsync(GetConnectorsRequest request)
AWSServerMigrationAsync
getConnectorsAsync
in interface AWSServerMigrationAsync
public Future<GetConnectorsResult> getConnectorsAsync(GetConnectorsRequest request, AsyncHandler<GetConnectorsRequest,GetConnectorsResult> asyncHandler)
AWSServerMigrationAsync
getConnectorsAsync
in interface AWSServerMigrationAsync
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<GetReplicationJobsResult> getReplicationJobsAsync(GetReplicationJobsRequest request)
AWSServerMigrationAsync
getReplicationJobsAsync
in interface AWSServerMigrationAsync
public Future<GetReplicationJobsResult> getReplicationJobsAsync(GetReplicationJobsRequest request, AsyncHandler<GetReplicationJobsRequest,GetReplicationJobsResult> asyncHandler)
AWSServerMigrationAsync
getReplicationJobsAsync
in interface AWSServerMigrationAsync
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<GetReplicationRunsResult> getReplicationRunsAsync(GetReplicationRunsRequest request)
AWSServerMigrationAsync
getReplicationRunsAsync
in interface AWSServerMigrationAsync
public Future<GetReplicationRunsResult> getReplicationRunsAsync(GetReplicationRunsRequest request, AsyncHandler<GetReplicationRunsRequest,GetReplicationRunsResult> asyncHandler)
AWSServerMigrationAsync
getReplicationRunsAsync
in interface AWSServerMigrationAsync
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<GetServersResult> getServersAsync(GetServersRequest request)
AWSServerMigrationAsync
getServersAsync
in interface AWSServerMigrationAsync
public Future<GetServersResult> getServersAsync(GetServersRequest request, AsyncHandler<GetServersRequest,GetServersResult> asyncHandler)
AWSServerMigrationAsync
getServersAsync
in interface AWSServerMigrationAsync
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<ImportServerCatalogResult> importServerCatalogAsync(ImportServerCatalogRequest request)
AWSServerMigrationAsync
importServerCatalogAsync
in interface AWSServerMigrationAsync
public Future<ImportServerCatalogResult> importServerCatalogAsync(ImportServerCatalogRequest request, AsyncHandler<ImportServerCatalogRequest,ImportServerCatalogResult> asyncHandler)
AWSServerMigrationAsync
importServerCatalogAsync
in interface AWSServerMigrationAsync
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<StartOnDemandReplicationRunResult> startOnDemandReplicationRunAsync(StartOnDemandReplicationRunRequest request)
AWSServerMigrationAsync
startOnDemandReplicationRunAsync
in interface AWSServerMigrationAsync
public Future<StartOnDemandReplicationRunResult> startOnDemandReplicationRunAsync(StartOnDemandReplicationRunRequest request, AsyncHandler<StartOnDemandReplicationRunRequest,StartOnDemandReplicationRunResult> asyncHandler)
AWSServerMigrationAsync
startOnDemandReplicationRunAsync
in interface AWSServerMigrationAsync
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<UpdateReplicationJobResult> updateReplicationJobAsync(UpdateReplicationJobRequest request)
AWSServerMigrationAsync
updateReplicationJobAsync
in interface AWSServerMigrationAsync
public Future<UpdateReplicationJobResult> updateReplicationJobAsync(UpdateReplicationJobRequest request, AsyncHandler<UpdateReplicationJobRequest,UpdateReplicationJobResult> asyncHandler)
AWSServerMigrationAsync
updateReplicationJobAsync
in interface AWSServerMigrationAsync
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 AWSServerMigration
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.