com.cisco.trex.stateless.TRexCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trex-java-sdk Show documentation
Show all versions of trex-java-sdk Show documentation
Java client SDK provides an implementation for TRex RPC APIs
package com.cisco.trex.stateless;
import java.util.Map;
public class TRexCommand {
private int id;
private String apiMethod;
private Map parameters;
public TRexCommand(String apiMethod, Map parameters) {
this.apiMethod = apiMethod;
this.parameters = parameters;
}
public TRexCommand(int id, String apiMethod, Map parameters) {
this.apiMethod = apiMethod;
this.parameters = parameters;
this.parameters.put("id", id);
}
public int getId() {
return id;
}
public String getApiMethod() {
return apiMethod;
}
public Map getParameters() {
return parameters;
}
}