public abstract class AbstractSnapshotTaskRunner extends Object implements TaskRunner
| Constructor and Description |
|---|
AbstractSnapshotTaskRunner(String bridgeAppHost,
String bridgeAppPort,
String bridgeAppUser,
String bridgeAppPass) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildBridgeBaseURL() |
protected RestHttpHelper |
createRestHelper() |
protected String |
getBridgeAppHost() |
protected String |
getBridgeAppPass() |
protected String |
getBridgeAppPort() |
protected String |
getBridgeAppUser() |
protected String |
getMessageValue(String json)
A helper method that extracts the "message" property from the json string.
|
protected <T> T |
getValueFromJson(String json,
String propName)
A helper method that takes a json string and extracts the value of the specified
property.
|
protected Map |
jsonStringToMap(String json)
A helper method that converts a json string into a map object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, performTaskprotected String getBridgeAppHost()
protected String getBridgeAppPort()
protected String getBridgeAppUser()
protected String getBridgeAppPass()
protected String buildBridgeBaseURL()
protected RestHttpHelper createRestHelper()
protected <T> T getValueFromJson(String json, String propName) throws IOException
T - The type for the value expected to be returned.json - the json stringpropName - the name of the property to extractIOExceptionprotected Map jsonStringToMap(String json) throws IOException
json - the json stringIOExceptionprotected String getMessageValue(String json) throws IOException
json - the json stringIOExceptionCopyright © 2009–2018 DuraSpace. All rights reserved.