@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()
Constructs a new asynchronous client to invoke service methods on SMS.
|
AWSServerMigrationAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on SMS using the specified AWS account
credentials.
|
AWSServerMigrationAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on SMS using the specified AWS account
credentials, executor service, and client configuration options.
|
AWSServerMigrationAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on SMS using the specified AWS account credentials
and executor service.
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on SMS using the specified AWS account credentials
provider.
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on SMS using the provided AWS account credentials
provider and client configuration options.
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on SMS using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AWSServerMigrationAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on SMS using the specified AWS account credentials
provider and executor service.
|
AWSServerMigrationAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on SMS.
|
Modifier and Type | Method and Description |
---|---|
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.
|
createReplicationJob, deleteReplicationJob, deleteServerCatalog, disassociateConnector, getCachedResponseMetadata, getConnectors, getReplicationJobs, getReplicationRuns, getServers, importServerCatalog, startOnDemandReplicationRun, updateReplicationJob
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, 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
public AWSServerMigrationAsyncClient()
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 AWSServerMigrationAsyncClient(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 SMS (ex: proxy settings, retry
counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSServerMigrationAsyncClient(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 AWSServerMigrationAsyncClient(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 AWSServerMigrationAsyncClient(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 AWSServerMigrationAsyncClient(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 AWSServerMigrationAsyncClient(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 AWSServerMigrationAsyncClient(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 AWSServerMigrationAsyncClient(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<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.