@Generated(value="OracleSDKGenerator", comments="API Version: 20230518") public interface DatabaseMigrationAsync extends AutoCloseable
Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<AbortJobResponse> abortJob(AbortJobRequest request, AsyncHandler<AbortJobRequest,AbortJobResponse> handler)
Aborts a Migration Job (either Evaluation or Migration).
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<AddMigrationObjectsResponse> addMigrationObjects(AddMigrationObjectsRequest request, AsyncHandler<AddMigrationObjectsRequest,AddMigrationObjectsResponse> handler)
Add excluded/included object to the list.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeConnectionCompartmentResponse> changeConnectionCompartment(ChangeConnectionCompartmentRequest request, AsyncHandler<ChangeConnectionCompartmentRequest,ChangeConnectionCompartmentResponse> handler)
Used to change the Database Connection compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeMigrationCompartmentResponse> changeMigrationCompartment(ChangeMigrationCompartmentRequest request, AsyncHandler<ChangeMigrationCompartmentRequest,ChangeMigrationCompartmentResponse> handler)
Used to change the Migration compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CloneMigrationResponse> cloneMigration(CloneMigrationRequest request, AsyncHandler<CloneMigrationRequest,CloneMigrationResponse> handler)
Clone a configuration from an existing Migration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ConnectionDiagnosticsResponse> connectionDiagnostics(ConnectionDiagnosticsRequest request, AsyncHandler<ConnectionDiagnosticsRequest,ConnectionDiagnosticsResponse> handler)
Perform connection test for a database connection.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateConnectionResponse> createConnection(CreateConnectionRequest request, AsyncHandler<CreateConnectionRequest,CreateConnectionResponse> handler)
Create a Database Connection resource that contains the details to connect to either a Source or Target Database in the migration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateMigrationResponse> createMigration(CreateMigrationRequest request, AsyncHandler<CreateMigrationRequest,CreateMigrationResponse> handler)
Create a Migration resource that contains all the details to perform the database migration operation, such as source and destination database details, credentials, etc.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateParameterFileVersionResponse> createParameterFileVersion(CreateParameterFileVersionRequest request, AsyncHandler<CreateParameterFileVersionRequest,CreateParameterFileVersionResponse> handler)
Creates a new version of the current parameter file contents to the specified value.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteConnectionResponse> deleteConnection(DeleteConnectionRequest request, AsyncHandler<DeleteConnectionRequest,DeleteConnectionResponse> handler)
Deletes the Database Connection represented by the specified connection ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteJobResponse> deleteJob(DeleteJobRequest request, AsyncHandler<DeleteJobRequest,DeleteJobResponse> handler)
Deletes the migration job represented by the given job ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteMigrationResponse> deleteMigration(DeleteMigrationRequest request, AsyncHandler<DeleteMigrationRequest,DeleteMigrationResponse> handler)
Deletes the Migration represented by the specified migration ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteParameterFileVersionResponse> deleteParameterFileVersion(DeleteParameterFileVersionRequest request, AsyncHandler<DeleteParameterFileVersionRequest,DeleteParameterFileVersionResponse> handler)
Deletes the given parameter file version
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<EvaluateMigrationResponse> evaluateMigration(EvaluateMigrationRequest request, AsyncHandler<EvaluateMigrationRequest,EvaluateMigrationResponse> handler)
Start Validate Migration job.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetAdvisorReportResponse> getAdvisorReport(GetAdvisorReportRequest request, AsyncHandler<GetAdvisorReportRequest,GetAdvisorReportResponse> handler)
Get the Pre-Migration Advisor report details
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetConnectionResponse> getConnection(GetConnectionRequest request, AsyncHandler<GetConnectionRequest,GetConnectionResponse> handler)
Display Database Connection details.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJobResponse> getJob(GetJobRequest request, AsyncHandler<GetJobRequest,GetJobResponse> handler)
Get a migration job.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJobOutputContentResponse> getJobOutputContent(GetJobOutputContentRequest request, AsyncHandler<GetJobOutputContentRequest,GetJobOutputContentResponse> handler)
Get the migration Job Output content as a String.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetMigrationResponse> getMigration(GetMigrationRequest request, AsyncHandler<GetMigrationRequest,GetMigrationResponse> handler)
Display Migration details.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetParameterFileVersionResponse> getParameterFileVersion(GetParameterFileVersionRequest request, AsyncHandler<GetParameterFileVersionRequest,GetParameterFileVersionResponse> handler)
Obtain the parameter file version contents for the specified parameter file name and the associated job. This operation will be allowed only if the job is certain acceptable lifecycle states.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the details of a work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListConnectionsResponse> listConnections(ListConnectionsRequest request, AsyncHandler<ListConnectionsRequest,ListConnectionsResponse> handler)
List all Database Connections.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListExcludedObjectsResponse> listExcludedObjects(ListExcludedObjectsRequest request, AsyncHandler<ListExcludedObjectsRequest,ListExcludedObjectsResponse> handler)
List the excluded database objects.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJobOutputsResponse> listJobOutputs(ListJobOutputsRequest request, AsyncHandler<ListJobOutputsRequest,ListJobOutputsResponse> handler)
List the Job Outputs
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJobsResponse> listJobs(ListJobsRequest request, AsyncHandler<ListJobsRequest,ListJobsResponse> handler)
List all the names of the Migration jobs associated to the specified migration site.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListMigrationObjectTypesResponse> listMigrationObjectTypes(ListMigrationObjectTypesRequest request, AsyncHandler<ListMigrationObjectTypesRequest,ListMigrationObjectTypesResponse> handler)
Display sample object types to exclude or include for a Migration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListMigrationObjectsResponse> listMigrationObjects(ListMigrationObjectsRequest request, AsyncHandler<ListMigrationObjectsRequest,ListMigrationObjectsResponse> handler)
Display excluded/included objects.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListMigrationParametersResponse> listMigrationParameters(ListMigrationParametersRequest request, AsyncHandler<ListMigrationParametersRequest,ListMigrationParametersResponse> handler)
List of parameters that can be used to customize migrations.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListMigrationsResponse> listMigrations(ListMigrationsRequest request, AsyncHandler<ListMigrationsRequest,ListMigrationsResponse> handler)
List all Migrations.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListParameterFileVersionsResponse> listParameterFileVersions(ListParameterFileVersionsRequest request, AsyncHandler<ListParameterFileVersionsRequest,ListParameterFileVersionsResponse> handler)
Return a list of the parameter file metadata of the migration execution of the specified job. This will only be acceptable if the job is in particular state. It will be accessible if the job is in the FAILED, PAUSED or SUSPENDED state.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Gets the errors for a work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Gets the logs for a work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in a compartment or for a specified resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<MakeCurrentParameterFileVersionResponse> makeCurrentParameterFileVersion(MakeCurrentParameterFileVersionRequest request, AsyncHandler<MakeCurrentParameterFileVersionRequest,MakeCurrentParameterFileVersionResponse> handler)
Make current the given parameter file version
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RemoveMigrationObjectsResponse> removeMigrationObjects(RemoveMigrationObjectsRequest request, AsyncHandler<RemoveMigrationObjectsRequest,RemoveMigrationObjectsResponse> handler)
Remove excluded/included objects.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ResumeJobResponse> resumeJob(ResumeJobRequest request, AsyncHandler<ResumeJobRequest,ResumeJobResponse> handler)
Resume a migration Job.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RetrieveSupportedPhasesResponse> retrieveSupportedPhases(RetrieveSupportedPhasesRequest request, AsyncHandler<RetrieveSupportedPhasesRequest,RetrieveSupportedPhasesResponse> handler)
Display Migration Phases for a specified migration.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<StartMigrationResponse> startMigration(StartMigrationRequest request, AsyncHandler<StartMigrationRequest,StartMigrationResponse> handler)
Start Migration job.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SuspendJobResponse> suspendJob(SuspendJobRequest request, AsyncHandler<SuspendJobRequest,SuspendJobResponse> handler)
Place the currently executing migration Job in a Suspended State.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateConnectionResponse> updateConnection(UpdateConnectionRequest request, AsyncHandler<UpdateConnectionRequest,UpdateConnectionResponse> handler)
Update Database Connection resource details.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateJobResponse> updateJob(UpdateJobRequest request, AsyncHandler<UpdateJobRequest,UpdateJobResponse> handler)
Update Migration Job resource details.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateMigrationResponse> updateMigration(UpdateMigrationRequest request, AsyncHandler<UpdateMigrationRequest,UpdateMigrationResponse> handler)
Update Migration resource details.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.