Interface AnalyticsAsync

  • All Superinterfaces:
    AutoCloseable
    All Known Implementing Classes:
    AnalyticsAsyncClient

    @Generated(value="OracleSDKGenerator",
               comments="API Version: 20190331")
    public interface AnalyticsAsync
    extends AutoCloseable
    Analytics API.
    • 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 serice.
      • 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 setEndpoint after 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 call setEndpoint.

        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
      • createAnalyticsInstance

        Future<CreateAnalyticsInstanceResponse> createAnalyticsInstance​(CreateAnalyticsInstanceRequest request,
                                                                        AsyncHandler<CreateAnalyticsInstanceRequest,​CreateAnalyticsInstanceResponse> handler)
        Create a new Analytics instance in the specified compartment.

        The operation is long-running and creates a new work request.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • createPrivateAccessChannel

        Future<CreatePrivateAccessChannelResponse> createPrivateAccessChannel​(CreatePrivateAccessChannelRequest request,
                                                                              AsyncHandler<CreatePrivateAccessChannelRequest,​CreatePrivateAccessChannelResponse> handler)
        Create an private access channel for the Analytics instance.

        The operation is long-running and creates a new work request.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • createResourceGroup

        Future<CreateResourceGroupResponse> createResourceGroup​(CreateResourceGroupRequest request,
                                                                AsyncHandler<CreateResourceGroupRequest,​CreateResourceGroupResponse> handler)
        Create a new resource group for the instance
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • createVanityUrl

        Future<CreateVanityUrlResponse> createVanityUrl​(CreateVanityUrlRequest request,
                                                        AsyncHandler<CreateVanityUrlRequest,​CreateVanityUrlResponse> handler)
        Allows you to specify a custom host name to be used to access the Analytics instance.

        You must set up a DNS entry and certificate for this host in advance.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • deleteAnalyticsInstance

        Future<DeleteAnalyticsInstanceResponse> deleteAnalyticsInstance​(DeleteAnalyticsInstanceRequest request,
                                                                        AsyncHandler<DeleteAnalyticsInstanceRequest,​DeleteAnalyticsInstanceResponse> handler)
        Deletes the specified Analytics instance.

        The operation is long-running and creates a new work request.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • deletePrivateAccessChannel

        Future<DeletePrivateAccessChannelResponse> deletePrivateAccessChannel​(DeletePrivateAccessChannelRequest request,
                                                                              AsyncHandler<DeletePrivateAccessChannelRequest,​DeletePrivateAccessChannelResponse> handler)
        Delete a private access channel with a given unique identifier key, for an Analytics instance.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • deleteResourceGroup

        Future<DeleteResourceGroupResponse> deleteResourceGroup​(DeleteResourceGroupRequest request,
                                                                AsyncHandler<DeleteResourceGroupRequest,​DeleteResourceGroupResponse> handler)
        Allows deleting a previously created resource group.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • deleteVanityUrl

        Future<DeleteVanityUrlResponse> deleteVanityUrl​(DeleteVanityUrlRequest request,
                                                        AsyncHandler<DeleteVanityUrlRequest,​DeleteVanityUrlResponse> handler)
        Deletes a previously created vanity URL.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • deleteWorkRequest

        Future<DeleteWorkRequestResponse> deleteWorkRequest​(DeleteWorkRequestRequest request,
                                                            AsyncHandler<DeleteWorkRequestRequest,​DeleteWorkRequestResponse> handler)
        Cancel a work request that hasn’t started yet.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • getAnalyticsInstance

        Future<GetAnalyticsInstanceResponse> getAnalyticsInstance​(GetAnalyticsInstanceRequest request,
                                                                  AsyncHandler<GetAnalyticsInstanceRequest,​GetAnalyticsInstanceResponse> handler)
        Information about a specific Analytics instance.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • getPrivateAccessChannel

        Future<GetPrivateAccessChannelResponse> getPrivateAccessChannel​(GetPrivateAccessChannelRequest request,
                                                                        AsyncHandler<GetPrivateAccessChannelRequest,​GetPrivateAccessChannelResponse> handler)
        Retrieve private access channel for the specified Analytics Instance.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • getResourceGroup

        Future<GetResourceGroupResponse> getResourceGroup​(GetResourceGroupRequest request,
                                                          AsyncHandler<GetResourceGroupRequest,​GetResourceGroupResponse> handler)
        Get details of a resource group for an instance
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • getWorkRequest

        Future<GetWorkRequestResponse> getWorkRequest​(GetWorkRequestRequest request,
                                                      AsyncHandler<GetWorkRequestRequest,​GetWorkRequestResponse> handler)
        Get the details of a work request.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • listResourceGroups

        Future<ListResourceGroupsResponse> listResourceGroups​(ListResourceGroupsRequest request,
                                                              AsyncHandler<ListResourceGroupsRequest,​ListResourceGroupsResponse> handler)
        List resource groups associated with an instance.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • listWorkRequestErrors

        Future<ListWorkRequestErrorsResponse> listWorkRequestErrors​(ListWorkRequestErrorsRequest request,
                                                                    AsyncHandler<ListWorkRequestErrorsRequest,​ListWorkRequestErrorsResponse> handler)
        Get the errors of a work request.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • listWorkRequestLogs

        Future<ListWorkRequestLogsResponse> listWorkRequestLogs​(ListWorkRequestLogsRequest request,
                                                                AsyncHandler<ListWorkRequestLogsRequest,​ListWorkRequestLogsResponse> handler)
        Get the logs of a work request.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • listWorkRequests

        Future<ListWorkRequestsResponse> listWorkRequests​(ListWorkRequestsRequest request,
                                                          AsyncHandler<ListWorkRequestsRequest,​ListWorkRequestsResponse> handler)
        List all work requests in a compartment.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • scaleAnalyticsInstance

        Future<ScaleAnalyticsInstanceResponse> scaleAnalyticsInstance​(ScaleAnalyticsInstanceRequest request,
                                                                      AsyncHandler<ScaleAnalyticsInstanceRequest,​ScaleAnalyticsInstanceResponse> handler)
        Scale an Analytics instance up or down.

        The operation is long-running and creates a new work request.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • setFeatureBundle

        Future<SetFeatureBundleResponse> setFeatureBundle​(SetFeatureBundleRequest request,
                                                          AsyncHandler<SetFeatureBundleRequest,​SetFeatureBundleResponse> handler)
        Set the external service properties of an Analytics instance.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • setKmsKey

        Future<SetKmsKeyResponse> setKmsKey​(SetKmsKeyRequest request,
                                            AsyncHandler<SetKmsKeyRequest,​SetKmsKeyResponse> handler)
        Encrypts the customer data of this Analytics instance using either a customer OCI vault key or default Oracle-managed key.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • startAnalyticsInstance

        Future<StartAnalyticsInstanceResponse> startAnalyticsInstance​(StartAnalyticsInstanceRequest request,
                                                                      AsyncHandler<StartAnalyticsInstanceRequest,​StartAnalyticsInstanceResponse> handler)
        Starts the specified Analytics instance.

        The operation is long-running and creates a new work request.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • stopAnalyticsInstance

        Future<StopAnalyticsInstanceResponse> stopAnalyticsInstance​(StopAnalyticsInstanceRequest request,
                                                                    AsyncHandler<StopAnalyticsInstanceRequest,​StopAnalyticsInstanceResponse> handler)
        Stop the specified Analytics instance.

        The operation is long-running and creates a new work request.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • updateAnalyticsInstance

        Future<UpdateAnalyticsInstanceResponse> updateAnalyticsInstance​(UpdateAnalyticsInstanceRequest request,
                                                                        AsyncHandler<UpdateAnalyticsInstanceRequest,​UpdateAnalyticsInstanceResponse> handler)
        Updates certain fields of an Analytics instance.

        Fields that are not provided in the request will not be updated.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • updatePrivateAccessChannel

        Future<UpdatePrivateAccessChannelResponse> updatePrivateAccessChannel​(UpdatePrivateAccessChannelRequest request,
                                                                              AsyncHandler<UpdatePrivateAccessChannelRequest,​UpdatePrivateAccessChannelResponse> handler)
        Update the private access channel with the given unique identifier key in the specified Analytics instance.
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • updateResourceGroup

        Future<UpdateResourceGroupResponse> updateResourceGroup​(UpdateResourceGroupRequest request,
                                                                AsyncHandler<UpdateResourceGroupRequest,​UpdateResourceGroupResponse> handler)
        Update any fields in a resource group
        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
      • updateVanityUrl

        Future<UpdateVanityUrlResponse> updateVanityUrl​(UpdateVanityUrlRequest request,
                                                        AsyncHandler<UpdateVanityUrlRequest,​UpdateVanityUrlResponse> handler)
        Uploads a new certificate for a vanity URL.

        Required before the current certificate expires.

        Parameters:
        request - The request object containing the details to send
        handler - The request handler to invoke upon completion, may be null.
        Returns:
        A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.