public class OperationRequest extends Operation
Operation.OperationCode| Constructor and Description |
|---|
OperationRequest()
Default constructor to create operation request
|
OperationRequest(String request,
Operation.OperationCode code,
String agentId)
Generate operation request for given command and code
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAgentId()
Get agent id which is running command
|
String |
getRequest()
Get request command
|
void |
setAgentId(String agentId)
Set agent id which run command
|
void |
setRequest(String request)
Set request command
|
getCode, getMetaData, getOperationId, setCode, setMetaData, setOperationId, toJSONpublic OperationRequest()
public OperationRequest(String request, Operation.OperationCode code, String agentId)
request - Command to sendcode - Type of the operationagentId - The agent idpublic String getRequest()
public void setRequest(String request)
request - The requestpublic void setAgentId(String agentId)
agentId - The agent idpublic String getAgentId()
Copyright © 2019 WSO2. All rights reserved.