Class RedisCache
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<RedisCache,RedisServiceSubscription,com.azure.resourcemanager.redis.models.RedisCache>
-
- com.microsoft.azure.toolkit.redis.RedisCache
-
- All Implemented Interfaces:
com.microsoft.azure.toolkit.lib.common.model.AzResource<RedisCache,RedisServiceSubscription,com.azure.resourcemanager.redis.models.RedisCache>,com.microsoft.azure.toolkit.lib.common.model.AzResourceBase,com.microsoft.azure.toolkit.lib.common.model.Deletable,com.microsoft.azure.toolkit.lib.common.model.Refreshable
- Direct Known Subclasses:
RedisCacheDraft
public class RedisCache extends com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<RedisCache,RedisServiceSubscription,com.azure.resourcemanager.redis.models.RedisCache> implements com.microsoft.azure.toolkit.lib.common.model.Deletable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.toolkit.lib.common.model.AzResource
com.microsoft.azure.toolkit.lib.common.model.AzResource.Draft<T extends com.microsoft.azure.toolkit.lib.common.model.AzResource<T,?,R>,R extends Object>, com.microsoft.azure.toolkit.lib.common.model.AzResource.None, com.microsoft.azure.toolkit.lib.common.model.AzResource.Status
-
-
Field Summary
Fields Modifier and Type Field Description private static intJEDIS_TIMEOUTprivate redis.clients.jedis.JedisPooljedisPool
-
Constructor Summary
Constructors Modifier Constructor Description protectedRedisCache(com.azure.resourcemanager.redis.models.RedisCache remote, RedisCacheModule module)protectedRedisCache(RedisCache origin)copy constructorprotectedRedisCache(String name, String resourceGroupName, RedisCacheModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()StringgetHostName()redis.clients.jedis.JedisPoolgetJedisPool()PricingTiergetPricingTier()StringgetPrimaryKey()StringgetRedisVersion()com.microsoft.azure.toolkit.lib.common.model.RegiongetRegion()StringgetSecondaryKey()intgetSSLPort()List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,RedisCache,?>>getSubModules()StringgetType()booleanisNonSslPortEnabled()StringloadStatus(com.azure.resourcemanager.redis.models.RedisCache remote)-
Methods inherited from class com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource
canEqual, deleteFromLocal, doModify, doModify, doModifyAsync, doModifyAsync, equals, exists, getId, getModule, getName, getRemote, getResourceGroup, getResourceGroupName, getStatus, getStatusSync, getSubModule, hashCode, isDraft, isDraftForCreating, isDraftForUpdating, loadRemote, refresh, refreshRemote, remoteOptional, setRemote, setStatus, toString, update
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
JEDIS_TIMEOUT
private static final int JEDIS_TIMEOUT
- See Also:
- Constant Field Values
-
jedisPool
private redis.clients.jedis.JedisPool jedisPool
-
-
Constructor Detail
-
RedisCache
protected RedisCache(@Nonnull String name, @Nonnull String resourceGroupName, @Nonnull RedisCacheModule module)
-
RedisCache
protected RedisCache(@Nonnull RedisCache origin)
copy constructor
-
RedisCache
protected RedisCache(@Nonnull com.azure.resourcemanager.redis.models.RedisCache remote, @Nonnull RedisCacheModule module)
-
-
Method Detail
-
delete
public void delete()
- Specified by:
deletein interfacecom.microsoft.azure.toolkit.lib.common.model.AzResource<RedisCache,RedisServiceSubscription,com.azure.resourcemanager.redis.models.RedisCache>- Specified by:
deletein interfacecom.microsoft.azure.toolkit.lib.common.model.Deletable- Overrides:
deletein classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<RedisCache,RedisServiceSubscription,com.azure.resourcemanager.redis.models.RedisCache>
-
getSubModules
@Nonnull public List<com.microsoft.azure.toolkit.lib.common.model.AbstractAzResourceModule<?,RedisCache,?>> getSubModules()
- Specified by:
getSubModulesin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<RedisCache,RedisServiceSubscription,com.azure.resourcemanager.redis.models.RedisCache>
-
loadStatus
@Nonnull public String loadStatus(@Nonnull com.azure.resourcemanager.redis.models.RedisCache remote)
- Specified by:
loadStatusin classcom.microsoft.azure.toolkit.lib.common.model.AbstractAzResource<RedisCache,RedisServiceSubscription,com.azure.resourcemanager.redis.models.RedisCache>
-
getRegion
@Nullable public com.microsoft.azure.toolkit.lib.common.model.Region getRegion()
-
getPricingTier
@Nullable public PricingTier getPricingTier()
-
getSSLPort
public int getSSLPort()
-
isNonSslPortEnabled
public boolean isNonSslPortEnabled()
-
getJedisPool
@Nonnull public redis.clients.jedis.JedisPool getJedisPool()
-
-