Interface StorageTargetOperationsClient
public interface StorageTargetOperationsClient
An instance of this class provides access to all the operations defined in StorageTargetOperationsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginFlush
(String resourceGroupName, String cacheName, String storageTargetName) Tells the cache to write all dirty data to the Storage Target's backend storage.beginFlush
(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.beginInvalidate
(String resourceGroupName, String cacheName, String storageTargetName) Invalidate all cached data for a storage target.beginInvalidate
(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context) Invalidate all cached data for a storage target.beginResume
(String resourceGroupName, String cacheName, String storageTargetName) Resumes client access to a previously suspended storage target.beginResume
(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context) Resumes client access to a previously suspended storage target.beginSuspend
(String resourceGroupName, String cacheName, String storageTargetName) Suspends client access to a storage target.beginSuspend
(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context) Suspends client access to a storage target.void
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
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
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 Details
-
beginFlush
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFlush(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginFlush
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFlush(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
flush
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.
-
beginSuspend
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginSuspend(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginSuspend
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginSuspend(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.- Returns:
- the
SyncPoller
for polling of long-running 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
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.
-
beginResume
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginResume(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginResume
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginResume(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.- Returns:
- the
SyncPoller
for polling of long-running 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
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.
-
beginInvalidate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginInvalidate(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginInvalidate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginInvalidate(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.- Returns:
- the
SyncPoller
for polling of long-running 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
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.
-