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.JSONException
VCommanderException
public Long getPublishedService(String serviceName) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONException
VCommanderException
public String getPublishedServiceNameByPayload(String payload) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONException
VCommanderException
public String getServiceRequestPayload(Long serviceID) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONException
VCommanderException
public Long requestService(String payload) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONException
VCommanderException
public List<DeployedComponentInfo> waitForServiceRequestToBeCompleted(Long requestId, long timeout, long polling, PrintStream logger) throws org.codehaus.jettison.json.JSONException, InterruptedException, VCommanderException
org.codehaus.jettison.json.JSONException
InterruptedException
VCommanderException
public Long getWorkflowDefinition(String workflowName) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONException
VCommanderException
public String getWorkflowDefinitionTargetType(Long workflowDefinitionId) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONException
VCommanderException
public String runCommandWorkflow(Long workflowId, String targetType, String targetName) throws org.codehaus.jettison.json.JSONException, VCommanderException
org.codehaus.jettison.json.JSONException
VCommanderException
public Long waitForWorkflowToBeCompleted(String taskId, long timeout, long polling, PrintStream logger) throws org.codehaus.jettison.json.JSONException, InterruptedException, VCommanderException
org.codehaus.jettison.json.JSONException
InterruptedException
VCommanderException
Copyright © 2016–2021. All rights reserved.