public class TinkererSDK extends Object
| Constructor and Description |
|---|
TinkererSDK()
Initialize details of the tinkerer host and authentication details.
|
| Modifier and Type | Method and Description |
|---|---|
int |
abortExecution(String operationId,
String agentId)
Abort running operation by sending abort command.
|
void |
broadcastShellCommand(String testPlanId,
String shellCommand)
Send a command to all the tinkerer agents belongs to a given test-plan.
|
AsyncCommandResponse |
executeCommandAsync(String agentId,
String command)
Send shell command as http request to the Tinkerer and get back the result as asynced result.
|
SyncCommandResponse |
executeCommandSync(String agentId,
String testPlanId,
String instantName,
String command)
Send shell command as http request to the Tinkerer and get back the result as synced response.
|
List<Agent> |
getAgentListByInstantName(String testPlanId,
String instantName)
Get a list of agent by given test plan id and instant name.
|
List<Agent> |
getAgentListByTestPlanId(String testPlanId)
Get a list of agent for given set of test plans
|
List<Agent> |
getAllAgentList()
Get a list of all agents from Tinkerer
|
List<String> |
getAllTestPlanIds() |
void |
setTinkererHost(String tinkererHost)
Set Tinkerer host
|
public TinkererSDK()
public AsyncCommandResponse executeCommandAsync(String agentId, String command)
agentId - id of the agent to send commandcommand - command to executepublic SyncCommandResponse executeCommandSync(String agentId, String testPlanId, String instantName, String command)
agentId - id of the agent to send commandtestPlanId - The test plan idinstantName - The instant namecommand - command to executepublic int abortExecution(String operationId, String agentId)
operationId - Operation id of the process to abortagentId - Agent id which running operationpublic List<Agent> getAgentListByTestPlanId(String testPlanId)
testPlanId - The test plan idpublic List<Agent> getAllAgentList()
public List<Agent> getAgentListByInstantName(String testPlanId, String instantName)
testPlanId - The test plan idinstantName - Instant name of the nodepublic void setTinkererHost(String tinkererHost)
tinkererHost - The Tinkerer hostCopyright © 2019 WSO2. All rights reserved.