Interface DbSystem
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DbSystemClient
@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public interface DbSystem extends AutoCloseableThe API for the MySQL Database Service This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddHeatWaveClusterResponseaddHeatWaveCluster(AddHeatWaveClusterRequest request)Adds a HeatWave cluster to the DB System.CreateDbSystemResponsecreateDbSystem(CreateDbSystemRequest request)Creates and launches a DB System.DeleteDbSystemResponsedeleteDbSystem(DeleteDbSystemRequest request)Delete a DB System, including terminating, detaching, removing, finalizing and otherwise deleting all related resources.DeleteHeatWaveClusterResponsedeleteHeatWaveCluster(DeleteHeatWaveClusterRequest request)Deletes the HeatWave cluster including terminating, detaching, removing, finalizing and otherwise deleting all related resources.GenerateHeatWaveClusterMemoryEstimateResponsegenerateHeatWaveClusterMemoryEstimate(GenerateHeatWaveClusterMemoryEstimateRequest request)Sends a request to estimate the memory footprints of user tables when loaded to HeatWave cluster memory.GetDbSystemResponsegetDbSystem(GetDbSystemRequest request)Get information about the specified DB System.StringgetEndpoint()Gets the set endpoint for REST call (ex, https://www.example.com)GetHeatWaveClusterResponsegetHeatWaveCluster(GetHeatWaveClusterRequest request)Gets information about the HeatWave cluster.GetHeatWaveClusterMemoryEstimateResponsegetHeatWaveClusterMemoryEstimate(GetHeatWaveClusterMemoryEstimateRequest request)Gets the most recent HeatWave cluster memory estimate that can be used to determine a suitable HeatWave cluster size.DbSystemPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.DbSystemWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.ListDbSystemsResponselistDbSystems(ListDbSystemsRequest request)Get a list of DB Systems in the specified compartment.voidrefreshClient()Rebuilds the client from scratch.RestartDbSystemResponserestartDbSystem(RestartDbSystemRequest request)Restarts the specified DB System.RestartHeatWaveClusterResponserestartHeatWaveCluster(RestartHeatWaveClusterRequest request)Restarts the HeatWave cluster.voidsetEndpoint(String endpoint)Sets the endpoint to call (ex, https://www.example.com).voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).StartDbSystemResponsestartDbSystem(StartDbSystemRequest request)Start the specified DB System.StartHeatWaveClusterResponsestartHeatWaveCluster(StartHeatWaveClusterRequest request)Starts the HeatWave cluster.StopDbSystemResponsestopDbSystem(StopDbSystemRequest request)Stops the specified DB System.StopHeatWaveClusterResponsestopHeatWaveCluster(StopHeatWaveClusterRequest request)Stops the HeatWave cluster.UpdateDbSystemResponseupdateDbSystem(UpdateDbSystemRequest request)Update the configuration of a DB System.UpdateHeatWaveClusterResponseupdateHeatWaveCluster(UpdateHeatWaveClusterRequest request)Updates the HeatWave cluster.voiduseRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)Determines whether realm specific endpoint should be used or not.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
refreshClient
void refreshClient()
Rebuilds the client from scratch.Useful to refresh certificates.
-
setEndpoint
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).- Parameters:
endpoint- The endpoint of the service.
-
getEndpoint
String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
-
setRegion
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Parameters:
region- The region of the service.
-
setRegion
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 callsetEndpoint.- Parameters:
regionId- The public region ID.
-
useRealmSpecificEndpointTemplate
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”
- Parameters:
realmSpecificEndpointTemplateEnabled- flag to enable the use of realm specific endpoint template
-
addHeatWaveCluster
AddHeatWaveClusterResponse addHeatWaveCluster(AddHeatWaveClusterRequest request)
Adds a HeatWave cluster to the DB System.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/AddHeatWaveClusterExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use AddHeatWaveCluster API.
-
createDbSystem
CreateDbSystemResponse createDbSystem(CreateDbSystemRequest request)
Creates and launches a DB System.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/CreateDbSystemExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreateDbSystem API.
-
deleteDbSystem
DeleteDbSystemResponse deleteDbSystem(DeleteDbSystemRequest request)
Delete a DB System, including terminating, detaching, removing, finalizing and otherwise deleting all related resources.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/DeleteDbSystemExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteDbSystem API.
-
deleteHeatWaveCluster
DeleteHeatWaveClusterResponse deleteHeatWaveCluster(DeleteHeatWaveClusterRequest request)
Deletes the HeatWave cluster including terminating, detaching, removing, finalizing and otherwise deleting all related resources.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/DeleteHeatWaveClusterExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteHeatWaveCluster API.
-
generateHeatWaveClusterMemoryEstimate
GenerateHeatWaveClusterMemoryEstimateResponse generateHeatWaveClusterMemoryEstimate(GenerateHeatWaveClusterMemoryEstimateRequest request)
Sends a request to estimate the memory footprints of user tables when loaded to HeatWave cluster memory.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/GenerateHeatWaveClusterMemoryEstimateExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GenerateHeatWaveClusterMemoryEstimate API.
-
getDbSystem
GetDbSystemResponse getDbSystem(GetDbSystemRequest request)
Get information about the specified DB System.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/GetDbSystemExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetDbSystem API.
-
getHeatWaveCluster
GetHeatWaveClusterResponse getHeatWaveCluster(GetHeatWaveClusterRequest request)
Gets information about the HeatWave cluster.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/GetHeatWaveClusterExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetHeatWaveCluster API.
-
getHeatWaveClusterMemoryEstimate
GetHeatWaveClusterMemoryEstimateResponse getHeatWaveClusterMemoryEstimate(GetHeatWaveClusterMemoryEstimateRequest request)
Gets the most recent HeatWave cluster memory estimate that can be used to determine a suitable HeatWave cluster size.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/GetHeatWaveClusterMemoryEstimateExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetHeatWaveClusterMemoryEstimate API.
-
listDbSystems
ListDbSystemsResponse listDbSystems(ListDbSystemsRequest request)
Get a list of DB Systems in the specified compartment.The default sort order is by timeUpdated, descending.
- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/ListDbSystemsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListDbSystems API.
-
restartDbSystem
RestartDbSystemResponse restartDbSystem(RestartDbSystemRequest request)
Restarts the specified DB System.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/RestartDbSystemExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use RestartDbSystem API.
-
restartHeatWaveCluster
RestartHeatWaveClusterResponse restartHeatWaveCluster(RestartHeatWaveClusterRequest request)
Restarts the HeatWave cluster.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/RestartHeatWaveClusterExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use RestartHeatWaveCluster API.
-
startDbSystem
StartDbSystemResponse startDbSystem(StartDbSystemRequest request)
Start the specified DB System.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/StartDbSystemExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use StartDbSystem API.
-
startHeatWaveCluster
StartHeatWaveClusterResponse startHeatWaveCluster(StartHeatWaveClusterRequest request)
Starts the HeatWave cluster.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/StartHeatWaveClusterExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use StartHeatWaveCluster API.
-
stopDbSystem
StopDbSystemResponse stopDbSystem(StopDbSystemRequest request)
Stops the specified DB System.A stopped DB System is not billed.
- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/StopDbSystemExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use StopDbSystem API.
-
stopHeatWaveCluster
StopHeatWaveClusterResponse stopHeatWaveCluster(StopHeatWaveClusterRequest request)
Stops the HeatWave cluster.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/StopHeatWaveClusterExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use StopHeatWaveCluster API.
-
updateDbSystem
UpdateDbSystemResponse updateDbSystem(UpdateDbSystemRequest request)
Update the configuration of a DB System.Updating different fields in the DB System will have different results on the uptime of the DB System. For example, changing the displayName of a DB System will take effect immediately, but changing the shape of a DB System is an asynchronous operation that involves provisioning new Compute resources, pausing the DB System and migrating storage before making the DB System available again.
- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/UpdateDbSystemExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdateDbSystem API.
-
updateHeatWaveCluster
UpdateHeatWaveClusterResponse updateHeatWaveCluster(UpdateHeatWaveClusterRequest request)
Updates the HeatWave cluster.- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
- Throws:
BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_RetriesExample: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/UpdateHeatWaveClusterExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdateHeatWaveCluster API.
-
getWaiters
DbSystemWaiters getWaiters()
Gets the pre-configured waiters available for resources for this service.- Returns:
- The service waiters.
-
getPaginators
DbSystemPaginators getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Returns:
- The service paginators.
-
-