Class OctoPerfClient
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.engines.BaseRemoteEngineApiClient
-
- us.abstracta.jmeter.javadsl.octoperf.OctoPerfClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class OctoPerfClient extends BaseRemoteEngineApiClient
-
-
Constructor Summary
Constructors Constructor Description OctoPerfClient(String apiKey)
-
Method Summary
-
Methods inherited from class us.abstracta.jmeter.javadsl.engines.BaseRemoteEngineApiClient
buildApiFor, close, configureHttpClient, execApiCall
-
-
-
-
Constructor Detail
-
OctoPerfClient
public OctoPerfClient(String apiKey)
-
-
Method Detail
-
buildAuthorizationHeaderValue
protected String buildAuthorizationHeaderValue(okhttp3.Request request)
- Specified by:
buildAuthorizationHeaderValuein classBaseRemoteEngineApiClient
-
buildConverterMapper
protected com.fasterxml.jackson.databind.ObjectMapper buildConverterMapper()
- Overrides:
buildConverterMapperin classBaseRemoteEngineApiClient
-
buildRemoteEngineException
protected RemoteEngineException buildRemoteEngineException(int code, String message)
- Overrides:
buildRemoteEngineExceptionin classBaseRemoteEngineApiClient
-
findCurrentUser
public User findCurrentUser() throws IOException
- Throws:
IOException
-
findDefaultWorkspace
public Workspace findDefaultWorkspace() throws IOException
- Throws:
IOException
-
findProjectByWorkspaceAndName
public Optional<Project> findProjectByWorkspaceAndName(Workspace workspace, String name) throws IOException
- Throws:
IOException
-
createProject
public Project createProject(Project project) throws IOException
- Throws:
IOException
-
findVirtualUsersByProject
public List<VirtualUser> findVirtualUsersByProject(Project project) throws IOException
- Throws:
IOException
-
deleteVirtualUser
public void deleteVirtualUser(VirtualUser virtualUser) throws IOException
- Throws:
IOException
-
findScenariosByProject
public List<Scenario> findScenariosByProject(Project project) throws IOException
- Throws:
IOException
-
deleteScenario
public void deleteScenario(Scenario scenario) throws IOException
- Throws:
IOException
-
importJmx
public List<VirtualUser> importJmx(Project project, File jmxFile) throws IOException
- Throws:
IOException
-
updateVirtualUser
public void updateVirtualUser(VirtualUser vu) throws IOException
- Throws:
IOException
-
findProviderByWorkspace
public Provider findProviderByWorkspace(Workspace workspace) throws IOException
- Throws:
IOException
-
createScenario
public Scenario createScenario(Scenario scenario) throws IOException
- Throws:
IOException
-
runScenario
public BenchReport runScenario(Scenario scenario) throws IOException
- Throws:
IOException
-
findBenchResult
public BenchResult findBenchResult(String resultId) throws IOException
- Throws:
IOException
-
findSummaryStats
public double[] findSummaryStats(BenchReport.SummaryReportItem summaryReport) throws IOException
- Throws:
IOException
-
findTableStats
public List<TableEntry> findTableStats(BenchReport.StatisticTableReportItem tableReport) throws IOException
- Throws:
IOException
-
-