Interface StorageTargetOperations


  • public interface StorageTargetOperations
    Resource collection API of StorageTargetOperations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void flush​(String resourceGroupName, String cacheName, String storageTargetName)
      Tells the cache to write all dirty data to the Storage Target's backend storage.
      void flush​(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context)
      Tells the cache to write all dirty data to the Storage Target's backend storage.
      void invalidate​(String resourceGroupName, String cacheName, String storageTargetName)
      Invalidate all cached data for a storage target.
      void invalidate​(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context)
      Invalidate all cached data for a storage target.
      void resume​(String resourceGroupName, String cacheName, String storageTargetName)
      Resumes client access to a previously suspended storage target.
      void resume​(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context)
      Resumes client access to a previously suspended storage target.
      void suspend​(String resourceGroupName, String cacheName, String storageTargetName)
      Suspends client access to a storage target.
      void suspend​(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context)
      Suspends client access to a storage target.
    • Method Detail

      • flush

        void flush​(String resourceGroupName,
                   String cacheName,
                   String storageTargetName)
        Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage target's namespace will return errors until the flush operation completes.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • flush

        void flush​(String resourceGroupName,
                   String cacheName,
                   String storageTargetName,
                   com.azure.core.util.Context context)
        Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage target's namespace will return errors until the flush operation completes.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • suspend

        void suspend​(String resourceGroupName,
                     String cacheName,
                     String storageTargetName)
        Suspends client access to a storage target.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • suspend

        void suspend​(String resourceGroupName,
                     String cacheName,
                     String storageTargetName,
                     com.azure.core.util.Context context)
        Suspends client access to a storage target.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • resume

        void resume​(String resourceGroupName,
                    String cacheName,
                    String storageTargetName)
        Resumes client access to a previously suspended storage target.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • resume

        void resume​(String resourceGroupName,
                    String cacheName,
                    String storageTargetName,
                    com.azure.core.util.Context context)
        Resumes client access to a previously suspended storage target.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • invalidate

        void invalidate​(String resourceGroupName,
                        String cacheName,
                        String storageTargetName)
        Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the next request.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • invalidate

        void invalidate​(String resourceGroupName,
                        String cacheName,
                        String storageTargetName,
                        com.azure.core.util.Context context)
        Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the next request.
        Parameters:
        resourceGroupName - Target resource group.
        cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
        storageTargetName - Name of Storage Target.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.