public class SnapshotTaskRunner extends Object implements TaskRunner
| Constructor and Description |
|---|
SnapshotTaskRunner(StorageProvider chronProvider,
String dcHost,
String dcPort,
String dcStoreId,
String dcAccountName,
String bridgeAppHost,
String bridgeAppPort,
String bridgeAppUser,
String bridgeAppPass) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildSnapshotProps(Map<String,String> props)
Constructs the contents of a properties file given a set of
key/value pairs
|
protected String |
buildSnapshotURL(String spaceId,
String snapshotId) |
protected String |
buildTaskResult(String snapshotId)
Creates a serialized version of task results
|
String |
getName() |
protected SnapshotTaskParameters |
parseTaskParams(String taskParameters)
Parses spaceId and snapshot properties from task parameter string
|
String |
performTask(String taskParameters) |
protected void |
storeSnapshotProps(String spaceId,
String serializedProps)
Stores a set of snapshot properties in the given space as a properties
file.
|
public String getName()
getName in interface TaskRunnerpublic String performTask(String taskParameters)
performTask in interface TaskRunnerprotected SnapshotTaskParameters parseTaskParams(String taskParameters)
taskParameters - - JSON formatted set of parametersprotected String buildSnapshotProps(Map<String,String> props)
props - snapshot propertiesprotected void storeSnapshotProps(String spaceId, String serializedProps)
spaceId - the space in which the properties file should be storedserializedProps - properties in serialized formatCopyright © 2009–2014 DuraSpace. All rights reserved.