Package com.morpheusdata.core.providers
Interface DatastoreTypeProvider.SnapshotFacet
- Enclosing interface:
- DatastoreTypeProvider
public static interface DatastoreTypeProvider.SnapshotFacet
Perform any operations necessary on the target to create a snapshot of a volume. In order to use this simply
implement this interface along with the
DatastoreTypeProvider. If using along with VME/MVM, it is best to
implement the DatastoreTypeProvider.SnapshotFacet.SnapshotServerFacet instead.- Since:
- 1.1.18
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThis is a more refined Snapshot facet that is used for Compute Servers. -
Method Summary
Modifier and TypeMethodDescriptioncloneVolume(StorageVolume volume, Snapshot sourceSnapshot) createSnapshot(StorageVolume volume) Creates a snapshot of a volume.listSnapshots(StorageServer storageServer) Called to list all snapshots on an associated storage server (NOT USED YET)removeSnapshot(StorageVolume volume) Reverts a volume to a snapshot.
-
Method Details
-
createSnapshot
Creates a snapshot of a volume. This is used to create a snapshot of a volume. A lot of backup providers may use this to create snapshots for exportability or backup purposes. NOTE: Currently this isn't really used by anything, as the server is normally associated with most snapshot tracking- Parameters:
volume- the volume to create a snapshot for- Returns:
- the success state and a copy of the snapshot
-
removeSnapshot
Reverts a volume to a snapshot. This is used to revert a volume to a previous state.- Parameters:
volume-- Returns:
-
listSnapshots
Called to list all snapshots on an associated storage server (NOT USED YET)- Parameters:
storageServer- the storage server to list snapshots off of- Returns:
- the success state of the listing
-
cloneVolume
-