public class Server extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Server.Protocol |
| Constructor and Description |
|---|
Server(Server.Protocol protocol_p,
String svrHost_p,
int svrPort_p,
String username_p,
String password_p)
Provides a set of APIs to access TestOptimal server.
|
| Modifier and Type | Method and Description |
|---|---|
AgentAPI |
getAgentAPI() |
DataSetAPI |
getDataSetAPI() |
protected String |
getGraph(String modelName_p,
String graphType_p,
String outFilePath_p) |
ModelAPI |
getModelAPI() |
protected String |
sendGet(String facilityName_p,
String cmd_p,
String param_p,
int expectedStatusCode_p) |
protected String |
sendPost(String facilityName_p,
String cmd_p,
String body_p,
int expectedStatusCode_p) |
protected String |
sendPut(String facilityName_p,
String cmd_p,
String body_p,
int expectedStatusCode_p) |
public Server(Server.Protocol protocol_p, String svrHost_p, int svrPort_p, String username_p, String password_p)
protocol_p - http or httpssvrHost_p - TestOptimal server host namesvrPort_p - TestOptimal server port numberusername_p - user id to login to TestOptimal server (same user id you would use to open TestOptimal IDE)password_p - passwordprotected String sendGet(String facilityName_p, String cmd_p, String param_p, int expectedStatusCode_p) throws APIError
APIErrorprotected String sendPost(String facilityName_p, String cmd_p, String body_p, int expectedStatusCode_p) throws APIError
APIErrorprotected String sendPut(String facilityName_p, String cmd_p, String body_p, int expectedStatusCode_p) throws APIError
APIErrorprotected String getGraph(String modelName_p, String graphType_p, String outFilePath_p) throws APIError
APIErrorpublic DataSetAPI getDataSetAPI()
public ModelAPI getModelAPI()
public AgentAPI getAgentAPI()
Copyright © 2020. All rights reserved.