@Generated(value="OracleSDKGenerator", comments="API Version: 20220125") public interface DisasterRecoveryAsync extends AutoCloseable
Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, and application.
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<AssociateDrProtectionGroupResponse> associateDrProtectionGroup(AssociateDrProtectionGroupRequest request, AsyncHandler<AssociateDrProtectionGroupRequest,AssociateDrProtectionGroupResponse> handler)
Create an association between the DR protection group identified by drProtectionGroupId and another DR protection group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CancelDrPlanExecutionResponse> cancelDrPlanExecution(CancelDrPlanExecutionRequest request, AsyncHandler<CancelDrPlanExecutionRequest,CancelDrPlanExecutionResponse> handler)
Cancel the DR plan execution identified by drPlanExecutionId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CancelWorkRequestResponse> cancelWorkRequest(CancelWorkRequestRequest request, AsyncHandler<CancelWorkRequestRequest,CancelWorkRequestResponse> handler)
Cancel the work request identified by workRequestId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeDrProtectionGroupCompartmentResponse> changeDrProtectionGroupCompartment(ChangeDrProtectionGroupCompartmentRequest request, AsyncHandler<ChangeDrProtectionGroupCompartmentRequest,ChangeDrProtectionGroupCompartmentResponse> handler)
Move the DR protection group identified by drProtectionGroupId to a different compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateDrPlanResponse> createDrPlan(CreateDrPlanRequest request, AsyncHandler<CreateDrPlanRequest,CreateDrPlanResponse> handler)
Create a DR plan of the specified DR plan type.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateDrPlanExecutionResponse> createDrPlanExecution(CreateDrPlanExecutionRequest request, AsyncHandler<CreateDrPlanExecutionRequest,CreateDrPlanExecutionResponse> handler)
Execute a DR plan for a DR protection group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateDrProtectionGroupResponse> createDrProtectionGroup(CreateDrProtectionGroupRequest request, AsyncHandler<CreateDrProtectionGroupRequest,CreateDrProtectionGroupResponse> handler)
Create a DR protection group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteDrPlanResponse> deleteDrPlan(DeleteDrPlanRequest request, AsyncHandler<DeleteDrPlanRequest,DeleteDrPlanResponse> handler)
Delete the DR plan identified by drPlanId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteDrPlanExecutionResponse> deleteDrPlanExecution(DeleteDrPlanExecutionRequest request, AsyncHandler<DeleteDrPlanExecutionRequest,DeleteDrPlanExecutionResponse> handler)
Delete the DR plan execution identified by drPlanExecutionId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteDrProtectionGroupResponse> deleteDrProtectionGroup(DeleteDrProtectionGroupRequest request, AsyncHandler<DeleteDrProtectionGroupRequest,DeleteDrProtectionGroupResponse> handler)
Delete the DR protection group identified by drProtectionGroupId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DisassociateDrProtectionGroupResponse> disassociateDrProtectionGroup(DisassociateDrProtectionGroupRequest request, AsyncHandler<DisassociateDrProtectionGroupRequest,DisassociateDrProtectionGroupResponse> handler)
Delete the association between the DR protection group identified by drProtectionGroupId. and its peer DR protection group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetDrPlanResponse> getDrPlan(GetDrPlanRequest request, AsyncHandler<GetDrPlanRequest,GetDrPlanResponse> handler)
Get details for the DR plan identified by drPlanId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetDrPlanExecutionResponse> getDrPlanExecution(GetDrPlanExecutionRequest request, AsyncHandler<GetDrPlanExecutionRequest,GetDrPlanExecutionResponse> handler)
Get details for the DR plan execution identified by drPlanExecutionId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetDrProtectionGroupResponse> getDrProtectionGroup(GetDrProtectionGroupRequest request, AsyncHandler<GetDrProtectionGroupRequest,GetDrProtectionGroupResponse> handler)
Get the DR protection group identified by drProtectionGroupId.
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)
Get the status of the work request identified by workRequestId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<IgnoreDrPlanExecutionResponse> ignoreDrPlanExecution(IgnoreDrPlanExecutionRequest request, AsyncHandler<IgnoreDrPlanExecutionRequest,IgnoreDrPlanExecutionResponse> handler)
Ignore the failed group or step in DR plan execution identified by drPlanExecutionId and resume execution.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListDrPlanExecutionsResponse> listDrPlanExecutions(ListDrPlanExecutionsRequest request, AsyncHandler<ListDrPlanExecutionsRequest,ListDrPlanExecutionsResponse> handler)
Get a summary list of all DR plan executions for a DR protection group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListDrPlansResponse> listDrPlans(ListDrPlansRequest request, AsyncHandler<ListDrPlansRequest,ListDrPlansResponse> handler)
Get a summary list of all DR plans for a DR protection group.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListDrProtectionGroupsResponse> listDrProtectionGroups(ListDrProtectionGroupsRequest request, AsyncHandler<ListDrProtectionGroupsRequest,ListDrProtectionGroupsResponse> handler)
Get a summary list of all DR protection groups in a compartment.
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)
Get a list of work request errors for the work request identified by workRequestId.
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)
Get a list of logs for the work request identified by workRequestId.
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.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<PauseDrPlanExecutionResponse> pauseDrPlanExecution(PauseDrPlanExecutionRequest request, AsyncHandler<PauseDrPlanExecutionRequest,PauseDrPlanExecutionResponse> handler)
Pause the DR plan execution identified by drPlanExecutionId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ResumeDrPlanExecutionResponse> resumeDrPlanExecution(ResumeDrPlanExecutionRequest request, AsyncHandler<ResumeDrPlanExecutionRequest,ResumeDrPlanExecutionResponse> handler)
Resume the DR plan execution identified by drPlanExecutionId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RetryDrPlanExecutionResponse> retryDrPlanExecution(RetryDrPlanExecutionRequest request, AsyncHandler<RetryDrPlanExecutionRequest,RetryDrPlanExecutionResponse> handler)
Retry the failed group or step in DR plan execution identified by drPlanExecutionId and resume execution.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateDrPlanResponse> updateDrPlan(UpdateDrPlanRequest request, AsyncHandler<UpdateDrPlanRequest,UpdateDrPlanResponse> handler)
Update the DR plan identified by drPlanId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateDrPlanExecutionResponse> updateDrPlanExecution(UpdateDrPlanExecutionRequest request, AsyncHandler<UpdateDrPlanExecutionRequest,UpdateDrPlanExecutionResponse> handler)
Update the DR plan execution identified by drPlanExecutionId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateDrProtectionGroupResponse> updateDrProtectionGroup(UpdateDrProtectionGroupRequest request, AsyncHandler<UpdateDrProtectionGroupRequest,UpdateDrProtectionGroupResponse> handler)
Update the DR protection group identified by drProtectionGroupId.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateDrProtectionGroupRoleResponse> updateDrProtectionGroupRole(UpdateDrProtectionGroupRoleRequest request, AsyncHandler<UpdateDrProtectionGroupRoleRequest,UpdateDrProtectionGroupRoleResponse> handler)
Update the role of the DR protection group identified by drProtectionGroupId.
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.