@Generated(value="OracleSDKGenerator", comments="API Version: 20200909") public interface ServiceConnectorAsync extends AutoCloseable
Use the Connector Hub API to transfer data between services in Oracle Cloud Infrastructure. For more information about Connector Hub, see the Connector Hub documentation. Connector Hub is formerly known as Service Connector Hub.
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<ActivateServiceConnectorResponse> activateServiceConnector(ActivateServiceConnectorRequest request, AsyncHandler<ActivateServiceConnectorRequest,ActivateServiceConnectorResponse> handler)
Activates the specified connector.
After you send your request, the connector's state is temporarily UPDATING. When the state changes to ACTIVE, data begins transferring from the source service to the target service. For more information, see [Activating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/activate-service-connector.htm).
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeServiceConnectorCompartmentResponse> changeServiceConnectorCompartment(ChangeServiceConnectorCompartmentRequest request, AsyncHandler<ChangeServiceConnectorCompartmentRequest,ChangeServiceConnectorCompartmentResponse> handler)
Moves a connector into a different compartment within the same tenancy. For more information, see Moving a Connector.
When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateServiceConnectorResponse> createServiceConnector(CreateServiceConnectorRequest request, AsyncHandler<CreateServiceConnectorRequest,CreateServiceConnectorResponse> handler)
Creates a new connector in the specified compartment. A connector is a logically defined flow for moving data from a source service to a destination service in Oracle Cloud Infrastructure. For more information, see Creating a Connector. For general information about connectors, see Overview of Connector Hub.
For purposes of access control, you must provide the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the connector to reside. Notice that the connector doesn't have to be in the same compartment as the source or target services. For information about access control and compartments, see [Overview of the IAM Service](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm).
After you send your request, the new connector's state is temporarily CREATING. When the state changes to ACTIVE, data begins transferring from the source service to the target service. For instructions on deactivating and activating connectors, see [Activating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/activate-service-connector.htm).
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeactivateServiceConnectorResponse> deactivateServiceConnector(DeactivateServiceConnectorRequest request, AsyncHandler<DeactivateServiceConnectorRequest,DeactivateServiceConnectorResponse> handler)
Deactivates the specified connector.
After you send your request, the connector's state is temporarily UPDATING and any data transfer stops. The state then changes to INACTIVE. For more information, see [Deactivating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/deactivate-service-connector.htm).
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteServiceConnectorResponse> deleteServiceConnector(DeleteServiceConnectorRequest request, AsyncHandler<DeleteServiceConnectorRequest,DeleteServiceConnectorResponse> handler)
Deletes the specified connector. For more information, see Deleting a Connector.
After you send your request, the connector's state is temporarily DELETING and any data transfer stops. The state then changes to DELETED.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetServiceConnectorResponse> getServiceConnector(GetServiceConnectorRequest request, AsyncHandler<GetServiceConnectorRequest,GetServiceConnectorResponse> handler)
Gets the specified connector’s configuration information. For more information, see Getting a Connector.
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 the specified work request. For more information, see Getting a Work Request’s Details.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListServiceConnectorsResponse> listServiceConnectors(ListServiceConnectorsRequest request, AsyncHandler<ListServiceConnectorsRequest,ListServiceConnectorsResponse> handler)
Lists connectors in the specified compartment. For more information, see Listing Connectors.
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)
Lists work request errors for the specified work request. Results are paginated. For more information, see Listing Work Request Errors.
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)
Lists logs for the specified work request. Results are paginated. For more information, see Listing Work Request Log Entries.
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 the specified compartment. For more information, see Listing Work Requests.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateServiceConnectorResponse> updateServiceConnector(UpdateServiceConnectorRequest request, AsyncHandler<UpdateServiceConnectorRequest,UpdateServiceConnectorResponse> handler)
Updates the configuration information for the specified connector. For more information, see Updating a Connector.
After you send your request, the connector's state is temporarily UPDATING and any data transfer pauses. The state then changes back to its original value: if ACTIVE, then data transfer resumes.
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.