Cache Interface
public interface Cache
An immutable client-side representation of Cache.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Integer |
cacheSizeGB()
Gets the cache |
abstract void |
debugInfo()
Tells a cache to write generate debug info for support to process. |
abstract void |
debugInfo(Context context)
Tells a cache to write generate debug info for support to process. |
abstract
Cache |
directoryServicesSettings()
Gets the directory |
abstract
Cache |
encryptionSettings()
Gets the encryption |
abstract void |
flush()
Tells a cache to write all dirty data to the Storage Target(s). |
abstract void |
flush(Context context)
Tells a cache to write all dirty data to the Storage Target(s). |
abstract
Cache |
health()
Gets the health property: Health of the cache. |
abstract String |
id()
Gets the id property: Fully qualified resource Id for the resource. |
abstract
Cache |
identity()
Gets the identity property: The identity of the cache, if configured. |
abstract
Cache |
innerModel()
Gets the inner com. |
abstract String |
location()
Gets the location property: The geo-location where the resource lives. |
abstract List<String> |
mountAddresses()
Gets the mount |
abstract String |
name()
Gets the name property: The name of the resource. |
abstract
Cache |
networkSettings()
Gets the network |
abstract void |
pausePrimingJob()
Schedule a priming job to be paused. |
abstract void |
pausePrimingJob(PrimingJobIdParameter primingJobId, Context context)
Schedule a priming job to be paused. |
abstract
List<Priming |
primingJobs()
Gets the priming |
abstract
Provisioning |
provisioningState()
Gets the provisioning |
abstract Cache |
refresh()
Refreshes the resource to sync with Azure. |
abstract Cache |
refresh(Context context)
Refreshes the resource to sync with Azure. |
abstract Region |
region()
Gets the region of the resource. |
abstract String |
regionName()
Gets the name of the resource region. |
abstract String |
resourceGroupName()
Gets the name of the resource group. |
abstract void |
resumePrimingJob()
Resumes a paused priming job. |
abstract void |
resumePrimingJob(PrimingJobIdParameter primingJobId, Context context)
Resumes a paused priming job. |
abstract
Cache |
securitySettings()
Gets the security |
abstract
Cache |
sku()
Gets the sku property: SKU for the cache. |
abstract
List<Storage |
spaceAllocation()
Gets the space |
abstract void |
start()
Tells a Stopped state cache to transition to Active state. |
abstract void |
start(Context context)
Tells a Stopped state cache to transition to Active state. |
abstract void |
startPrimingJob()
Create a priming job. |
abstract void |
startPrimingJob(PrimingJob primingjob, Context context)
Create a priming job. |
abstract void |
stop()
Tells an Active cache to transition to Stopped state. |
abstract void |
stop(Context context)
Tells an Active cache to transition to Stopped state. |
abstract void |
stopPrimingJob()
Schedule a priming job for deletion. |
abstract void |
stopPrimingJob(PrimingJobIdParameter primingJobId, Context context)
Schedule a priming job for deletion. |
abstract String |
subnet()
Gets the subnet property: Subnet used for the cache. |
abstract
System |
systemData()
Gets the system |
abstract Map<String,String> |
tags()
Gets the tags property: Resource tags. |
abstract String |
type()
Gets the type property: The type of the resource. |
abstract Update |
update()
Begins update for the Cache resource. |
abstract void |
upgradeFirmware()
Upgrade a cache's firmware if a new version is available. |
abstract void |
upgradeFirmware(Context context)
Upgrade a cache's firmware if a new version is available. |
abstract
Cache |
upgradeSettings()
Gets the upgrade |
abstract
Cache |
upgradeStatus()
Gets the upgrade |
abstract List<String> |
zones()
Gets the zones property: Availability zones for resources. |
Method Details
cacheSizeGB
public abstract Integer cacheSizeGB()
Gets the cacheSizeGB property: The size of this Cache, in GB.
Returns:
debugInfo
public abstract void debugInfo()
Tells a cache to write generate debug info for support to process.
debugInfo
public abstract void debugInfo(Context context)
Tells a cache to write generate debug info for support to process.
Parameters:
directoryServicesSettings
public abstract CacheDirectorySettings directoryServicesSettings()
Gets the directoryServicesSettings property: Specifies Directory Services settings of the cache.
Returns:
encryptionSettings
public abstract CacheEncryptionSettings encryptionSettings()
Gets the encryptionSettings property: Specifies encryption settings of the cache.
Returns:
flush
public abstract void flush()
Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.
flush
public abstract void flush(Context context)
Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.
Parameters:
health
public abstract CacheHealth health()
Gets the health property: Health of the cache.
Returns:
id
public abstract String id()
Gets the id property: Fully qualified resource Id for the resource.
Returns:
identity
public abstract CacheIdentity identity()
Gets the identity property: The identity of the cache, if configured.
Returns:
innerModel
public abstract CacheInner innerModel()
Gets the inner com.azure.resourcemanager.storagecache.fluent.models.CacheInner object.
Returns:
location
public abstract String location()
Gets the location property: The geo-location where the resource lives.
Returns:
mountAddresses
public abstract List
Gets the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache.
Returns:
name
public abstract String name()
Gets the name property: The name of the resource.
Returns:
networkSettings
public abstract CacheNetworkSettings networkSettings()
Gets the networkSettings property: Specifies network settings of the cache.
Returns:
pausePrimingJob
public abstract void pausePrimingJob()
Schedule a priming job to be paused.
pausePrimingJob
public abstract void pausePrimingJob(PrimingJobIdParameter primingJobId, Context context)
Schedule a priming job to be paused.
Parameters:
primingJobs
public abstract List
Gets the primingJobs property: Specifies the priming jobs defined in the cache.
Returns:
provisioningState
public abstract ProvisioningStateType provisioningState()
Gets the provisioningState property: ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md\#provisioningstate-property.
Returns:
refresh
public abstract Cache refresh()
Refreshes the resource to sync with Azure.
Returns:
refresh
public abstract Cache refresh(Context context)
Refreshes the resource to sync with Azure.
Parameters:
Returns:
region
public abstract Region region()
Gets the region of the resource.
Returns:
regionName
public abstract String regionName()
Gets the name of the resource region.
Returns:
resourceGroupName
public abstract String resourceGroupName()
Gets the name of the resource group.
Returns:
resumePrimingJob
public abstract void resumePrimingJob()
Resumes a paused priming job.
resumePrimingJob
public abstract void resumePrimingJob(PrimingJobIdParameter primingJobId, Context context)
Resumes a paused priming job.
Parameters:
securitySettings
public abstract CacheSecuritySettings securitySettings()
Gets the securitySettings property: Specifies security settings of the cache.
Returns:
sku
public abstract CacheSku sku()
Gets the sku property: SKU for the cache.
Returns:
spaceAllocation
public abstract List
Gets the spaceAllocation property: Specifies the space allocation percentage for each storage target in the cache.
Returns:
start
public abstract void start()
Tells a Stopped state cache to transition to Active state.
start
public abstract void start(Context context)
Tells a Stopped state cache to transition to Active state.
Parameters:
startPrimingJob
public abstract void startPrimingJob()
Create a priming job. This operation is only allowed when the cache is healthy.
startPrimingJob
public abstract void startPrimingJob(PrimingJob primingjob, Context context)
Create a priming job. This operation is only allowed when the cache is healthy.
Parameters:
stop
public abstract void stop()
Tells an Active cache to transition to Stopped state.
stop
public abstract void stop(Context context)
Tells an Active cache to transition to Stopped state.
Parameters:
stopPrimingJob
public abstract void stopPrimingJob()
Schedule a priming job for deletion.
stopPrimingJob
public abstract void stopPrimingJob(PrimingJobIdParameter primingJobId, Context context)
Schedule a priming job for deletion.
Parameters:
subnet
public abstract String subnet()
Gets the subnet property: Subnet used for the cache.
Returns:
systemData
public abstract SystemData systemData()
Gets the systemData property: The system meta data relating to this resource.
Returns:
tags
public abstract Map
Gets the tags property: Resource tags.
Returns:
type
public abstract String type()
Gets the type property: The type of the resource.
Returns:
update
public abstract Cache.Update update()
Begins update for the Cache resource.
Returns:
upgradeFirmware
public abstract void upgradeFirmware()
Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
upgradeFirmware
public abstract void upgradeFirmware(Context context)
Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
Parameters:
upgradeSettings
public abstract CacheUpgradeSettings upgradeSettings()
Gets the upgradeSettings property: Upgrade settings of the cache.
Returns:
upgradeStatus
public abstract CacheUpgradeStatus upgradeStatus()
Gets the upgradeStatus property: Upgrade status of the cache.
Returns:
zones
public abstract List
Gets the zones property: Availability zones for resources. This field should only contain a single element in the array.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for