Class SpaceModifyingSnapshotTaskRunner
java.lang.Object
org.duracloud.snapshottask.snapshot.AbstractSnapshotTaskRunner
org.duracloud.snapshottask.snapshot.SpaceModifyingSnapshotTaskRunner
- All Implemented Interfaces:
TaskRunner
- Direct Known Subclasses:
CompleteCancelSnapshotTaskRunner,CreateSnapshotTaskRunner
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceModifyingSnapshotTaskRunner(StorageProvider snapshotProvider, SnapshotStorageProvider unwrappedSnapshotProvider, String dcSnapshotUser, String bridgeAppHost, String bridgeAppPort, String bridgeAppUser, String bridgeAppPass) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSnapshotIdToSpaceProps(String spaceId, String snapshotId) protected StringgetSnapshotIdFromProperties(String spaceId) Returns snapshot from the snapshot properties file if it existsprotected Stringprotected StorageProviderprotected voidremoveSnapshotIdFromSpaceProps(String spaceId) protected voidremoveSnapshotProps(String spaceId) protected StringremoveSnapshotUserPermissions(String spaceId) protected StringsetSnapshotUserPermissions(String spaceId) protected booleansnapshotPropsPresentInSpace(String spaceId) Checks if the snapshot props file is in the space.protected voidstoreSnapshotProps(String spaceId, String serializedProps) Stores a set of snapshot properties in the given space as a properties file.Methods inherited from class org.duracloud.snapshottask.snapshot.AbstractSnapshotTaskRunner
buildBridgeBaseURL, createRestHelper, getBridgeAppHost, getBridgeAppPass, getBridgeAppPort, getBridgeAppUser, getMessageValue, getValueFromJson, jsonStringToMap, waitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.duracloud.storage.provider.TaskRunner
getName, performTask
-
Constructor Details
-
SpaceModifyingSnapshotTaskRunner
public SpaceModifyingSnapshotTaskRunner(StorageProvider snapshotProvider, SnapshotStorageProvider unwrappedSnapshotProvider, String dcSnapshotUser, String bridgeAppHost, String bridgeAppPort, String bridgeAppUser, String bridgeAppPass)
-
-
Method Details
-
getStorageProvider
-
getSnapshotUser
-
addSnapshotIdToSpaceProps
-
storeSnapshotProps
Stores a set of snapshot properties in the given space as a properties file.- Parameters:
spaceId- the space in which the properties file should be storedserializedProps- properties in serialized format
-
getSnapshotIdFromProperties
Returns snapshot from the snapshot properties file if it exists- Parameters:
spaceId-- Returns:
- snapshot from the snapshot properties file if it exists, otherwise null
-
removeSnapshotIdFromSpaceProps
-
setSnapshotUserPermissions
-
removeSnapshotUserPermissions
-
removeSnapshotProps
-
snapshotPropsPresentInSpace
Checks if the snapshot props file is in the space.- Parameters:
spaceId-- Returns:
-