Package com.morpheusdata.model
Class StorageVolumeGroup
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.StorageVolumeGroupIdentityProjection
com.morpheusdata.model.StorageVolumeGroup
- All Implemented Interfaces:
Serializable
Represents a logical grouping of storage volumes for consistent snapshot and replication operations.
A StorageVolumeGroup enables volumes to be snapshotted together in a crash-consistent or application-consistent manner. This is essential for database and multi-volume application workloads where point-in-time consistency across volumes is required.
Key constraints:
- A volume can belong to at most one volume group
- Supports optimistic locking via version field (FR-009a)
- Cannot be deleted if active replication relationships exist (FR-066)
- Name length validation is vendor-specific and enforced by the storage provider plugin
- Since:
- 1.5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Accountprotected BooleanIndicates whether snapshots of this group are application-consistent (true) or crash-consistent (false).protected Stringprotected Dateprotected Stringprotected Booleanprotected Dateprotected LongMaximum aggregate storage capacity across all volumes in bytes.protected Stringprotected Stringprotected Dateprotected Stringprotected StorageServerprotected LongCurrent used storage across all volumes in bytes.protected LongVersion for optimistic locking.protected IntegerNumber of volumes currently in this group.protected List<StorageVolume>Fields inherited from class com.morpheusdata.model.projection.StorageVolumeGroupIdentityProjection
externalId, name, uuidFields inherited from class com.morpheusdata.model.MorpheusModel
config, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets whether snapshots are application-consistent.getCode()Gets the version number for optimistic locking.voidsetAccount(Account account) voidsetApplicationConsistent(Boolean applicationConsistent) Sets whether snapshots should be application-consistent.voidvoidsetDateCreated(Date dateCreated) voidsetDescription(String description) voidsetEnabled(Boolean enabled) voidsetLastUpdated(Date lastUpdated) voidsetMaxStorage(Long maxStorage) voidsetRawData(String rawData) voidvoidsetStatusDate(Date statusDate) voidsetStatusMessage(String statusMessage) voidsetStorageServer(StorageServer storageServer) voidsetUsedStorage(Long usedStorage) voidsetVersion(Long version) Sets the version number.voidsetVolumeCount(Integer volumeCount) voidsetVolumes(List<StorageVolume> volumes) Methods inherited from class com.morpheusdata.model.projection.StorageVolumeGroupIdentityProjection
getExternalId, getName, getUuid, setExternalId, setName, 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
-
storageServer
-
code
-
description
-
status
-
statusMessage
-
statusDate
-
version
Version for optimistic locking. Incremented on each update to detect concurrent modifications. -
applicationConsistent
Indicates whether snapshots of this group are application-consistent (true) or crash-consistent (false). -
maxStorage
Maximum aggregate storage capacity across all volumes in bytes. -
usedStorage
Current used storage across all volumes in bytes. -
volumeCount
Number of volumes currently in this group. -
volumes
-
rawData
-
enabled
-
dateCreated
-
lastUpdated
-
-
Constructor Details
-
StorageVolumeGroup
public StorageVolumeGroup()
-
-
Method Details
-
getAccount
-
setAccount
-
getStorageServer
-
setStorageServer
-
getCode
-
setCode
-
getDescription
-
setDescription
-
getStatus
-
setStatus
-
getStatusMessage
-
setStatusMessage
-
getStatusDate
-
setStatusDate
-
getVersion
Gets the version number for optimistic locking.- Returns:
- the current version
-
setVersion
Sets the version number. Typically managed by the persistence layer.- Parameters:
version- the version number
-
getApplicationConsistent
Gets whether snapshots are application-consistent.- Returns:
- true for application-consistent, false for crash-consistent
-
setApplicationConsistent
Sets whether snapshots should be application-consistent.- Parameters:
applicationConsistent- true for application-consistent snapshots
-
getMaxStorage
-
setMaxStorage
-
getUsedStorage
-
setUsedStorage
-
getVolumeCount
-
setVolumeCount
-
getVolumes
-
setVolumes
-
getRawData
-
setRawData
-
getEnabled
-
setEnabled
-
getDateCreated
-
setDateCreated
-
getLastUpdated
-
setLastUpdated
-