Package io.gatling.plugin.client
Interface EnterpriseClient
- All Known Implementing Classes:
HttpEnterpriseClient
public interface EnterpriseClient
The following exception sub-classes of
EnterprisePluginException can be thrown by all
methods of this public API:
UnauthorizedApiCallException: invalid authentication tokenForbiddenApiCallException: authentication token with insufficient privilegesApiCallIOException: unexpected IO errorInvalidApiCallException: invalid input data
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreatePackage(String packageName, UUID teamId) createSimulation(String simulationName, UUID teamId, String className, UUID pkgId, Map<String, HostByLocation> hostsByLocation) getConcurrentUserMetric(UUID runId, String scenario) getPackage(UUID pkgId) getRequestsSummary(UUID runId) getRunInformation(UUID runId) getSimulation(UUID simulationId) getTeams()startSimulation(UUID simulationId, Map<String, String> systemProperties, Map<String, String> environmentVariables) updateSimulationClassName(UUID simulationId, String className) longuploadPackage(UUID packageId, File file) uploadPackageConfiguration(String jsonConfiguration) longuploadPackageWithChecksum(UUID packageId, File file)
-
Method Details
-
getBaseUrl
URL getBaseUrl() -
getServerInformation
- Throws:
EnterprisePluginException
-
getSimulations
- Throws:
EnterprisePluginException
-
getSimulation
- Throws:
EnterprisePluginException
-
getTeams
- Throws:
EnterprisePluginException
-
getLocations
- Throws:
EnterprisePluginException
-
getPackages
- Throws:
EnterprisePluginException
-
getPackage
- Throws:
EnterprisePluginException
-
uploadPackage
- Parameters:
packageId- Requiredfile- Required path to the packaged JAR file to upload; required- Throws:
PackageNotFoundException- if the packageId does not existEnterprisePluginException
-
uploadPackageConfiguration
- Parameters:
jsonConfiguration- Package configuration file, serialized JSON- Returns:
- Package id
- Throws:
EnterprisePluginException
-
startSimulation
RunSummary startSimulation(UUID simulationId, Map<String, String> systemProperties, Map<String, throws EnterprisePluginExceptionString> environmentVariables) - Parameters:
simulationId- RequiredsystemProperties- Required (can be an empty map)environmentVariables- Required (can be an empty map)- Throws:
SimulationStartException- when start failed for any reasonEnterprisePluginException
-
uploadPackageWithChecksum
- Parameters:
packageId- Requiredfile- Required- Returns:
- file size if uploaded, -1 when checksum are equals
- Throws:
EnterprisePluginException
-
updateSimulationClassName
SimulationClassName updateSimulationClassName(UUID simulationId, String className) throws EnterprisePluginException - Parameters:
simulationId- RequiredclassName- Required- Returns:
- updated simulation
- Throws:
EnterprisePluginException
-
createSimulation
Simulation createSimulation(String simulationName, UUID teamId, String className, UUID pkgId, Map<String, HostByLocation> hostsByLocation) throws EnterprisePluginException- Throws:
EnterprisePluginException
-
createPackage
- Throws:
EnterprisePluginException
-
getRunInformation
- Parameters:
runId- Required- Returns:
- Information on the requested run
- Throws:
RunNotFoundException- if the runId does not existEnterprisePluginException
-
getConcurrentUserMetric
- Parameters:
runId- Requiredscenario- Required- Throws:
EnterprisePluginException
-
getRequestsSummary
- Parameters:
runId- Required- Throws:
EnterprisePluginException
-
abortRun
- Parameters:
runId- Required- Returns:
- false if there was no run to abort (run does not exist or is already stopped)
- Throws:
EnterprisePluginException
-