Package com.calm.CalmHelpers
Class Application
- java.lang.Object
-
- com.calm.CalmHelpers.Application
-
public class Application extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,String>
applicationNameUuidPair
static Map<String,String>
systemActions
-
Method Summary
-
-
-
Method Detail
-
getInstance
public static Application getInstance(Rest rest) throws Exception
- Throws:
Exception
-
getApplicationUuidByRequestId
public String getApplicationUuidByRequestId(String blueprintUuid, String requestId) throws Exception
- Throws:
Exception
-
getApplicationDetails
public org.json.JSONObject getApplicationDetails(String applicationUuid) throws Exception
- Throws:
Exception
-
waitForApplicationToGoIntoSuccessState
public String waitForApplicationToGoIntoSuccessState(String appName, String applicationUuid, String state_name, PrintStream logger) throws Exception
- Throws:
Exception
-
fetchRuntimeProfileActionVariables
public String fetchRuntimeProfileActionVariables(String applicationName, String actionName) throws Exception
- Throws:
Exception
-
patchAppProfileActionVariables
public org.json.JSONObject patchAppProfileActionVariables(org.json.JSONObject actionSpec, String applicationName, String actionName, String runtimeVariablesStr, PrintStream logger) throws Exception
- Throws:
Exception
-
getActionUuid
public String getActionUuid(String applicationName, String actionName) throws Exception
- Throws:
Exception
-
runAction
public org.json.JSONObject runAction(String applicationName, String actionName, org.json.JSONObject actionSpec) throws Exception
- Throws:
Exception
-
waitForActionToComplete
public String waitForActionToComplete(String applicationName, String runlogUuid, PrintStream logger) throws Exception
- Throws:
Exception
-
taskOutput
public void taskOutput(String appUuid, String action, PrintStream logger) throws Exception
- Throws:
Exception
-
getProfileActionsFromBlueprint
public List<String> getProfileActionsFromBlueprint(String blueprintName, String appProfileName) throws Exception
- Throws:
Exception
-
getProfileActionsVariablesFromBlueprint
public String getProfileActionsVariablesFromBlueprint(String blueprintName, String appProfileName, String actionName) throws Exception
- Throws:
Exception
-
-