Package com.morpheusdata.model
Class StorageVolume
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.StorageVolumeIdentityProjection
com.morpheusdata.model.StorageVolume
- All Implemented Interfaces:
Serializable
Representation of a Morpheus StorageVolume database object within the Morpheus platform. Not all data is provided
in this implementation that is available in the morpheus core platform for security purposes and internal use.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Accountprotected Booleanprotected Booleanprotected Stringprotected Longprotected StorageControllerIdentityProjectionprotected Stringprotected Stringprotected Booleanprotected DatastoreIdentityprotected Stringprotected StringAn identifier for volumes sharing the same role across servers in an instance.protected Stringprotected Stringprotected Stringprotected Integerprotected Stringprotected Stringprotected Integerprotected StorageAggregateThe storage aggregate that exposes/provides this volume.protected Stringprotected Stringprotected Stringprotected Booleanprotected Booleanprotected BooleanIndicates whether this volume supports attachment to multiple hosts simultaneouslyprotected Integerprotected Longprotected StorageAggregateThe storage aggregate this volume is a member of (i.e., part of its physical storage pool).protected Booleanprotected Booleanprotected Stringprotected Stringprotected Booleanprotected Longprotected Stringprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected Stringprotected List<SnapshotIdentityProjection>protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StorageGroupprotected StorageServerprotected StorageVolumeTypeprotected Stringprotected Stringprotected Longprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class com.morpheusdata.model.projection.StorageVolumeIdentityProjection
category, externalId, internalId, name, shortName, storageVolumeTypeCode, uuidFields inherited from class com.morpheusdata.model.MorpheusModel
config, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCloud()The Datastore associated with this StorageVolumeUtilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null.The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocationGets the storage aggregate that exposes/provides this volume.Gets the storage aggregate this volume is a member of (i.e., part of its physical storage pool).Deprecated.getRefId()Indicates if the disk is able to be removedRepresents if this StorageVolume is a root volumegetType()Get the unique identifier.The unit numbergetWwn()voidsetAccount(Account account) voidvoidsetActiveReplica(Boolean activeReplica) voidsetAssigned(Boolean assigned) voidsetClaimName(String claimName) voidsetCloudId(Long cloudId) voidsetController(StorageControllerIdentityProjection controller) voidsetControllerKey(String controllerKey) voidsetCopyType(String copyType) voidsetCreateForMultiAttach(Boolean createForMultiAttach) voidsetDatastore(DatastoreIdentity datastore) The Datastore associated with this StorageVolumevoidsetDatastoreOption(String datastoreOption) voidsetDefinitionId(String definitionId) voidsetDescription(String description) voidsetDeviceDisplayName(String deviceDisplayName) voidsetDeviceName(String deviceName) voidsetDiskIndex(Integer diskIndex) Utilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null.voidsetDiskMode(String diskMode) voidsetDiskType(String diskType) voidsetDisplayOrder(Integer displayOrder) The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocationvoidsetExported(Boolean exported) voidsetExposedByAggregate(StorageAggregate exposedByAggregate) Sets the storage aggregate that exposes/provides this volume.voidsetFiberWwn(String fiberWwn) voidsetFileName(String fileName) voidsetImageType(String imageType) voidsetIsMultiAttach(Boolean isMultiAttach) Sets whether this volume is multi attachvoidsetMaxIOPS(Integer maxIOPS) voidsetMaxStorage(Long maxStorage) voidsetMemberOfAggregate(StorageAggregate memberOfAggregate) Sets the storage aggregate this volume is a member of.voidsetMultiAttach(Boolean isMultiAttach) Deprecated.voidvoidsetPlanResizable(Boolean planResizable) voidsetPoolName(String poolName) voidsetProvisionType(String provisionType) voidsetReadOnly(Boolean readOnly) voidvoidsetRefType(String refType) voidsetRegionCode(String regionCode) voidsetRemovable(Boolean removable) Indicates if the disk is able to be removedvoidsetResizeable(Boolean resizeable) voidsetRootVolume(Boolean rootVolume) Represents if this StorageVolume is a root volumevoidsetSharePath(String sharePath) voidsetSnapshots(List<SnapshotIdentityProjection> snapshots) NOTE: To modify the list of snapshots associated with this StorageVolume, utilize MorpheusSnapshotServicevoidsetSourceId(String sourceId) voidsetSourceImage(String sourceImage) voidsetSourceSnapshotId(String sourceSnapshotId) voidvoidsetStatusMessage(String statusMessage) voidsetStorageGroup(StorageGroup storageGroup) voidsetStorageServer(StorageServer storageServer) voidsetType(StorageVolumeType type) voidsetUniqueId(String uniqueId) A unique identifier.voidsetUnitNumber(String unitNumber) The unit numbervoidsetUsedStorage(Long usedStorage) voidsetVolumeName(String volumeName) voidsetVolumePath(String volumePath) voidsetVolumeType(String volumeType) voidMethods inherited from class com.morpheusdata.model.projection.StorageVolumeIdentityProjection
getCategory, getExternalId, getInternalId, getName, getShortName, getStorageVolumeTypeCode, getUuid, setCategory, setExternalId, setInternalId, setName, setShortName, setStorageVolumeTypeCode, setUuidMethods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityPropertiesMethods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
account
-
cloudId
-
description
-
deviceName
-
deviceDisplayName
-
maxStorage
-
usedStorage
-
type
-
displayOrder
-
rootVolume
-
unitNumber
-
datastore
-
maxIOPS
-
removable
-
diskIndex
-
uniqueId
-
datastoreOption
-
controller
-
controllerKey
-
snapshots
-
refType
-
refId
-
regionCode
-
status
-
sourceSnapshotId
-
poolName
-
volumeName
-
storageServer
-
storageGroup
-
volumeType
-
volumePath
-
diskType
-
StatusMessage
-
sourceId
-
active
-
resizeable
-
planResizable
-
readOnly
-
online
-
isExported
-
isAssigned
-
provisionType
-
copyType
-
fiberWwn
-
imageType
-
sourceImage
-
fileName
-
claimName
-
diskMode
-
wwn
-
createForMultiAttach
-
activeReplica
-
definitionId
An identifier for volumes sharing the same role across servers in an instance.Used as a fallback for reconfigure volume comparison when volumes have no inherent information that ties them together. Core automatically supplies a definitionId during provisioning or reconfigure, but manual assignment is required for volumes added to a ComputeServer out of band.
For example:
- Instance - Server A - Volumes - deviceDisplayName: data1-a89f6, definitionId: 'application-storage' - Server B - Volumes - deviceDisplayName: data1-beb17, definitionId: 'application-storage'In this case, even though their volume names are different on the array, we can still treat these volumes as in the same "role" when attempting to reconfigure their size or datastore at the instance level. -
memberOfAggregate
The storage aggregate this volume is a member of (i.e., part of its physical storage pool).For example, in a RAID array, the volume would be a member disk; in ZFS, a vdev in the zpool. A volume can only be a member of one aggregate.
-
exposedByAggregate
The storage aggregate that exposes/provides this volume.This is the aggregate that makes this volume available for use. A volume can only be exposed by one aggregate.
-
isMultiAttach
Indicates whether this volume supports attachment to multiple hosts simultaneously
-
-
Constructor Details
-
StorageVolume
public StorageVolume()
-
-
Method Details
-
getAccount
-
getCloud
-
setDeviceName
-
getDeviceName
-
setMaxStorage
-
getMaxStorage
-
setUsedStorage
-
getUsedStorage
-
setType
-
getType
-
getDisplayOrder
The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocation- Returns:
- displayOrder
-
setDisplayOrder
The display order of the disk in the user interface when displayed with other related disks for a ComputeServer, VirtualImage, or VirtualImageLocation- Parameters:
displayOrder- displayOrder
-
getRootVolume
Represents if this StorageVolume is a root volume- Returns:
- rootVolume
-
setRootVolume
Represents if this StorageVolume is a root volume- Parameters:
rootVolume- rootVolume
-
getUnitNumber
The unit number- Returns:
- unitNumber
-
setUnitNumber
The unit number- Parameters:
unitNumber- unitNumber
-
getDatastore
The Datastore associated with this StorageVolume- Returns:
- datastore
-
setDatastore
The Datastore associated with this StorageVolume- Parameters:
datastore- datastore
-
getMaxIOPS
-
setMaxIOPS
-
getRemovable
Indicates if the disk is able to be removed- Returns:
- removable
-
setRemovable
Indicates if the disk is able to be removed- Parameters:
removable- removable
-
getDiskIndex
Utilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null. Not stored in Morpheus or returned For example: 0 may result in a diskName of sda- Returns:
- diskIndex diskIndex
-
setDiskIndex
Utilized during creation to set logical defaults for deviceName and deviceDisplayName if they are null. Not stored in Morpheus or returned For example: 0 may result in a diskName of sda- Parameters:
diskIndex- diskIndex
-
setUniqueId
A unique identifier. Not controlled by Morpheus.- Overrides:
setUniqueIdin classStorageVolumeIdentityProjection- Parameters:
uniqueId-
-
getUniqueId
Get the unique identifier. Not controlled by Morpheus.- Overrides:
getUniqueIdin classStorageVolumeIdentityProjection- Returns:
- uniqueId
-
getController
-
setController
-
getSnapshots
-
setSnapshots
NOTE: To modify the list of snapshots associated with this StorageVolume, utilize MorpheusSnapshotService- Parameters:
snapshots-
-
getDatastoreOption
-
setDatastoreOption
-
getControllerKey
-
setControllerKey
-
getDeviceDisplayName
-
setDeviceDisplayName
-
getRefType
-
setRefType
-
getRefId
-
setRefId
-
getRegionCode
-
setRegionCode
-
getStatus
-
setStatus
-
getSourceSnapshotId
-
setSourceSnapshotId
-
setAccount
-
getCloudId
-
setCloudId
-
getStorageServer
-
setStorageServer
-
getStorageGroup
-
setStorageGroup
-
getPoolName
-
setPoolName
-
getVolumeName
-
setVolumeName
-
getDescription
-
setDescription
-
getVolumeType
-
setVolumeType
-
getVolumePath
-
setVolumePath
-
getDiskType
-
setDiskType
-
getStatusMessage
-
setStatusMessage
-
getSourceId
-
setSourceId
-
getActive
-
setActive
-
getResizeable
-
setResizeable
-
getPlanResizable
-
setPlanResizable
-
getReadOnly
-
setReadOnly
-
getOnline
-
setOnline
-
getExported
-
setExported
-
getAssigned
-
setAssigned
-
getProvisionType
-
setProvisionType
-
getCopyType
-
setCopyType
-
getFiberWwn
-
setFiberWwn
-
getWwn
-
setWwn
-
getImageType
-
setImageType
-
getSourceImage
-
setSourceImage
-
getFileName
-
setFileName
-
getClaimName
-
setClaimName
-
getDiskMode
-
setDiskMode
-
getCreateForMultiAttach
-
setCreateForMultiAttach
-
getActiveReplica
-
setActiveReplica
-
getDefinitionId
-
setDefinitionId
-
getMemberOfAggregate
Gets the storage aggregate this volume is a member of (i.e., part of its physical storage pool).- Returns:
- memberOfAggregate
-
setMemberOfAggregate
Sets the storage aggregate this volume is a member of.- Parameters:
memberOfAggregate- the aggregate this volume is a member of
-
getExposedByAggregate
Gets the storage aggregate that exposes/provides this volume.- Returns:
- exposedByAggregate
-
setExposedByAggregate
Sets the storage aggregate that exposes/provides this volume.- Parameters:
exposedByAggregate- the aggregate that exposes this volume
-
getMultiAttach
Deprecated.- Returns:
- true if this is multi attach; false otherwise
-
setMultiAttach
Deprecated.Sets whether this volume is multi attach- Parameters:
isMultiAttach- true if this volume is multi attach; false otherwise
-
getIsMultiAttach
- Returns:
- true if this is multi attach; false otherwise
-
setIsMultiAttach
Sets whether this volume is multi attach- Parameters:
isMultiAttach- true if this volume is multi attach; false otherwise
-
getIsMultiAttach()