Interface RedisCachePremium
-
- All Superinterfaces:
GroupableResource<RedisManager,RedisResourceInner>,HasId,HasInnerModel<RedisResourceInner>,HasManager<RedisManager>,HasName,HasResourceGroup,Indexable,RedisCache,Refreshable<RedisCache>,Resource,SupportsListingPrivateEndpointConnection,SupportsListingPrivateLinkResource,SupportsUpdatingPrivateEndpointConnection,Updatable<RedisCache.Update>
public interface RedisCachePremium extends RedisCache
An immutable client-side representation of an Azure Redis cache with Premium SKU.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.azure.resourcemanager.redis.models.RedisCache
RedisCache.Definition, RedisCache.DefinitionStages, RedisCache.RedisVersion, RedisCache.Update, RedisCache.UpdateStages
-
Nested classes/interfaces inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T extends Object>, Resource.DefinitionWithTags<T extends Object>, Resource.UpdateWithTags<T extends Object>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddLinkedServer(String linkedRedisCacheId, String linkedServerLocation, ReplicationRole role)Adds a linked server to the current Redis cache instance.voiddeletePatchSchedule()Deletes the patching schedule for Redis Cache.voidexportData(String containerSASUrl, String prefix)Export data from Redis Cache.voidexportData(String containerSASUrl, String prefix, String fileFormat)Export data from Redis Cache.voidforceReboot(RebootType rebootType, int shardId)Reboot specified Redis node(s).ReplicationRolegetLinkedServerRole(String linkedServerName)Gets the role for the linked server of the current Redis cache instance.voidimportData(List<String> files)Import data into Redis Cache.voidimportData(List<String> files, String fileFormat)Import data into Redis Cache.Map<String,ReplicationRole>listLinkedServers()Gets the list of linked servers associated with this redis cache.List<ScheduleEntry>listPatchSchedules()Gets the patching schedule for Redis Cache.voidremoveLinkedServer(String linkedServerName)Removes the linked server from the current Redis cache instance.-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
manager
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
-
Methods inherited from interface com.azure.resourcemanager.redis.models.RedisCache
asPremium, firewallRules, forceReboot, hostname, isPremium, keys, minimumTlsVersion, nonSslPort, patchSchedules, port, provisioningState, redisConfiguration, redisVersion, refreshKeys, regenerateKey, shardCount, sku, sslPort, staticIp, subnetId
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateEndpointConnection
listPrivateEndpointConnections, listPrivateEndpointConnectionsAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateLinkResource
listPrivateLinkResources, listPrivateLinkResourcesAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsUpdatingPrivateEndpointConnection
approvePrivateEndpointConnection, approvePrivateEndpointConnectionAsync, rejectPrivateEndpointConnection, rejectPrivateEndpointConnectionAsync
-
-
-
-
Method Detail
-
forceReboot
void forceReboot(RebootType rebootType, int shardId)
Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.- Parameters:
rebootType- specifies which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'.shardId- In case of cluster cache, this specifies shard id which should be rebooted.
-
importData
void importData(List<String> files, String fileFormat)
Import data into Redis Cache.- Parameters:
files- files to import.fileFormat- specifies file format.
-
importData
void importData(List<String> files)
Import data into Redis Cache.- Parameters:
files- files to import.
-
exportData
void exportData(String containerSASUrl, String prefix)
Export data from Redis Cache.- Parameters:
containerSASUrl- container name to export to.prefix- prefix to use for exported files.
-
exportData
void exportData(String containerSASUrl, String prefix, String fileFormat)
Export data from Redis Cache.- Parameters:
containerSASUrl- container name to export to.prefix- prefix to use for exported files.fileFormat- specifies file format.
-
listPatchSchedules
List<ScheduleEntry> listPatchSchedules()
Gets the patching schedule for Redis Cache.- Returns:
- List of patch schedules for current Redis Cache.
-
deletePatchSchedule
void deletePatchSchedule()
Deletes the patching schedule for Redis Cache.
-
addLinkedServer
String addLinkedServer(String linkedRedisCacheId, String linkedServerLocation, ReplicationRole role)
Adds a linked server to the current Redis cache instance.- Parameters:
linkedRedisCacheId- the resource Id of the Redis instance to link with.linkedServerLocation- the location of the linked Redis instance.role- the role of the linked server.- Returns:
- name of the linked server.
-
removeLinkedServer
void removeLinkedServer(String linkedServerName)
Removes the linked server from the current Redis cache instance.- Parameters:
linkedServerName- the name of the linked server.
-
getLinkedServerRole
ReplicationRole getLinkedServerRole(String linkedServerName)
Gets the role for the linked server of the current Redis cache instance.- Parameters:
linkedServerName- the name of the linked server.- Returns:
- the role of the linked server.
-
listLinkedServers
Map<String,ReplicationRole> listLinkedServers()
Gets the list of linked servers associated with this redis cache.- Returns:
- the Roles of the linked servers, indexed by name
-
-