com.microsoft.azure.management.redis.RedisCachePremium Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-redis Show documentation
Show all versions of azure-mgmt-redis Show documentation
This package contains Microsoft Azure Redis Cache SDK.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.redis;
import java.util.List;
import java.util.Map;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.apigeneration.Method;
/**
* An immutable client-side representation of an Azure Redis cache with Premium SKU.
*/
@Fluent
public interface RedisCachePremium extends RedisCache {
/**
* Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.
*
* @param rebootType specifies which Redis node(s) to reboot. Depending on this value data loss is
* possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'.
* @param shardId In case of cluster cache, this specifies shard id which should be rebooted.
*/
void forceReboot(RebootType rebootType, int shardId);
/**
* Import data into Redis Cache.
*
* @param files files to import.
* @param fileFormat specifies file format.
*/
void importData(List files, String fileFormat);
/**
* Import data into Redis Cache.
*
* @param files files to import.
*/
void importData(List files);
/**
* Export data from Redis Cache.
*
* @param containerSASUrl container name to export to.
* @param prefix prefix to use for exported files.
*/
void exportData(String containerSASUrl, String prefix);
/**
* Export data from Redis Cache.
*
* @param containerSASUrl container name to export to.
* @param prefix prefix to use for exported files.
* @param fileFormat specifies file format.
*/
void exportData(String containerSASUrl, String prefix, String fileFormat);
/**
* Gets the patching schedule for Redis Cache.
* @return List of patch schedules for current Redis Cache.
*/
@Method
List listPatchSchedules();
/**
* Deletes the patching schedule for Redis Cache.
*/
@Method
void deletePatchSchedule();
/**
* Adds a linked server to the current Redis cache instance.
*
* @param linkedRedisCacheId the resource Id of the Redis instance to link with.
* @param linkedServerLocation the location of the linked Redis instance.
* @param role the role of the linked server.
* @return name of the linked server.
*/
@Beta(Beta.SinceVersion.V1_12_0)
String addLinkedServer(String linkedRedisCacheId, String linkedServerLocation, ReplicationRole role);
/**
* Removes the linked server from the current Redis cache instance.
*
* @param linkedServerName the name of the linked server.
*/
@Beta(Beta.SinceVersion.V1_12_0)
void removeLinkedServer(String linkedServerName);
/**
* Gets the role for the linked server of the current Redis cache instance.
*
* @param linkedServerName the name of the linked server.
* @return the role of the linked server.
*/
@Beta(Beta.SinceVersion.V1_12_0)
ReplicationRole getLinkedServerRole(String linkedServerName);
/**
* Gets the list of linked servers associated with this redis cache.
*
* @return the Roles of the linked servers, indexed by name
*/
@Method
@Beta(Beta.SinceVersion.V1_12_0)
Map listLinkedServers();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy