public class VCommanderClient extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
VCommanderClient()
Used for Unit Testing
|
|
VCommanderClient(String uri,
String userName,
String password,
String orgName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Done with the rest client and clean-up
|
String |
getClientInfo() |
Long |
getPublishedService(String serviceName)
|
String |
getPublishedServiceNameByPayload(String payload)
|
String |
getSecurityToken()
|
String |
getServiceRequestPayload(Long serviceID)
|
Long |
getWorkflowDefinition(String workflowName)
|
String |
getWorkflowDefinitionTargetType(Long workflowDefinitionId)
|
Long |
requestService(String payload)
|
String |
runCommandWorkflow(Long workflowId,
String targetType,
String targetName)
|
List<DeployedComponentInfo> |
waitForServiceRequestToBeCompleted(Long requestId,
long timeout,
long polling,
PrintStream logger)
|
Long |
waitForWorkflowToBeCompleted(String taskId,
long timeout,
long polling,
PrintStream logger)
|
public VCommanderClient(String uri, String userName, String password, String orgName)
protected VCommanderClient()
public void close()
public String getClientInfo()
public String getSecurityToken() throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic Long getPublishedService(String serviceName) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic String getPublishedServiceNameByPayload(String payload) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic String getServiceRequestPayload(Long serviceID) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic Long requestService(String payload) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic List<DeployedComponentInfo> waitForServiceRequestToBeCompleted(Long requestId, long timeout, long polling, PrintStream logger) throws org.codehaus.jettison.json.JSONException, InterruptedException, VCommanderException
org.codehaus.jettison.json.JSONExceptionInterruptedExceptionVCommanderExceptionpublic Long getWorkflowDefinition(String workflowName) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic String getWorkflowDefinitionTargetType(Long workflowDefinitionId) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic String runCommandWorkflow(Long workflowId, String targetType, String targetName) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONExceptionVCommanderExceptionpublic Long waitForWorkflowToBeCompleted(String taskId, long timeout, long polling, PrintStream logger) throws org.codehaus.jettison.json.JSONException, InterruptedException, VCommanderException
org.codehaus.jettison.json.JSONExceptionInterruptedExceptionVCommanderExceptionCopyright © 2016–2021. All rights reserved.