DataDisk Class
- java.
lang. Object - com.
azure. compute. batch. models. DataDisk
- com.
Implements
public final class DataDisk
implements JsonSerializable<DataDisk>
Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them.
Constructor Summary
| Constructor | Description |
|---|---|
| DataDisk(int logicalUnitNumber, int diskSizeGb) |
Creates an instance of Data |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
|
Caching |
getCaching()
Get the caching property: The type of caching to be enabled for the data disks. |
| int |
getDiskSizeGb()
Get the disk |
| int |
getLogicalUnitNumber()
Get the logical |
|
Storage |
getStorageAccountType()
Get the storage |
|
Data |
setCaching(CachingType caching)
Set the caching property: The type of caching to be enabled for the data disks. |
|
Data |
setStorageAccountType(StorageAccountType storageAccountType)
Set the storage |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
DataDisk
public DataDisk(int logicalUnitNumber, int diskSizeGb)
Creates an instance of DataDisk class.
Parameters:
Method Details
fromJson
public static DataDisk fromJson(JsonReader jsonReader)
Reads an instance of DataDisk from the JsonReader.
Parameters:
Returns:
Throws:
getCaching
public CachingType getCaching()
Get the caching property: The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
Returns:
getDiskSizeGb
public int getDiskSizeGb()
Get the diskSizeGb property: The initial disk size in gigabytes.
Returns:
getLogicalUnitNumber
public int getLogicalUnitNumber()
Get the logicalUnitNumber property: The logical unit number. The logicalUnitNumber is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct logicalUnitNumber. The value must be between 0 and 63, inclusive.
Returns:
getStorageAccountType
public StorageAccountType getStorageAccountType()
Get the storageAccountType property: The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs".
Returns:
setCaching
public DataDisk setCaching(CachingType caching)
Set the caching property: The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
Parameters:
Returns:
setStorageAccountType
public DataDisk setStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs".
Parameters:
Returns: