Package io.gatling.plugin
Interface EnterprisePlugin
- All Known Subinterfaces:
BatchEnterprisePlugin,InteractiveEnterprisePlugin
- All Known Implementing Classes:
BatchEnterprisePluginClient,InteractiveEnterprisePluginClient
public interface EnterprisePlugin
Enterprise plugin features
The following exception sub-classes of EnterprisePluginException can be thrown by all
methods of this client:
UnauthorizedApiCallException: invalid authentication tokenForbiddenApiCallException: authentication token with insufficient privilegesApiCallIOException: unexpected IO errorInvalidApiCallException: invalid input data
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreateAndStartSimulation(UUID teamId, String groupId, String artifactId, String simulationClass, UUID packageId, Map<String, String> systemProperties, Map<String, String> environmentVariables, File file) Create and start a simulation with given parametersuploadPackageAndStartSimulation(UUID simulationId, Map<String, String> systemProperties, Map<String, String> environmentVariables, String simulationClass, File file) Upload file to the package configured on the given simulation ID, and start the simulationwaitForRunEnd(RunSummary startedRun)
-
Method Details
-
uploadPackageAndStartSimulation
SimulationStartResult uploadPackageAndStartSimulation(UUID simulationId, Map<String, String> systemProperties, Map<String, throws EnterprisePluginExceptionString> environmentVariables, String simulationClass, File file) Upload file to the package configured on the given simulation ID, and start the simulation- Parameters:
simulationId- RequiredsystemProperties- Required, can be an empty mapenvironmentVariables- Required, can be an empty mapsimulationClass- Optional, override simulation configured class name for next runfile- Required, Path to the packaged JAR file to upload and run- Throws:
SimulationNotFoundException- if the simulationId does not existInvalidSimulationClassException- if simulationClass is defined or simulation class name has not been discoveredEnterprisePluginException
-
createAndStartSimulation
SimulationStartResult createAndStartSimulation(UUID teamId, String groupId, String artifactId, String simulationClass, UUID packageId, Map<String, String> systemProperties, Map<String, throws EnterprisePluginExceptionString> environmentVariables, File file) Create and start a simulation with given parameters- Parameters:
teamId- OptionalgroupId- OptionalartifactId- RequiredsimulationClass- OptionalpackageId- OptionalsystemProperties- Required, can be an empty mapenvironmentVariables- Required, can be an empty mapfile- Required- Throws:
SimulationStartException- if simulation start failed after creationSeveralTeamsFoundException- if teamId is null and there's more than one team discoveredSeveralSimulationClassNamesFoundException- if simulationClass is null and there's more than one simulation class name discoveredInvalidSimulationClassException- if simulationClass is defined, but not discoveredEnterprisePluginException
-
waitForRunEnd
- Parameters:
startedRun- 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
-