Package io.gatling.plugin
Class InteractiveEnterprisePluginClient
java.lang.Object
io.gatling.plugin.InteractiveEnterprisePluginClient
- All Implemented Interfaces:
EnterprisePlugin,InteractiveEnterprisePlugin
public final class InteractiveEnterprisePluginClient
extends Object
implements InteractiveEnterprisePlugin
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInteractiveEnterprisePluginClient(EnterpriseClient enterpriseClient, PluginIO pluginIO) -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateAndStartSimulation(UUID teamId, String groupId, String artifactId, String configuredSimulationClass, UUID configuredPackageId, Map<String, String> systemProperties, Map<String, String> environmentVariables, File file) Create and start a simulation with given parametersgetSimulationClasses(File file) uploadPackageAndStartSimulation(UUID simulationId, Map<String, String> systemProperties, Map<String, String> environmentVariables, String configuredSimulationClass, File file) Upload file to the package configured on the given simulation ID, and start the simulationprotected longuploadPackageWithChecksum(UUID packageId, File file) protected voidvalidateJavaVersion(File file) waitForRunEnd(RunSummary startedRun) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.gatling.plugin.EnterprisePlugin
abortRun, waitForRunEnd
-
Field Details
-
enterpriseClient
-
logger
-
-
Constructor Details
-
InteractiveEnterprisePluginClient
-
-
Method Details
-
uploadPackageAndStartSimulation
public SimulationStartResult uploadPackageAndStartSimulation(UUID simulationId, Map<String, String> systemProperties, Map<String, throws EnterprisePluginExceptionString> environmentVariables, String configuredSimulationClass, File file) Description copied from interface:EnterprisePluginUpload file to the package configured on the given simulation ID, and start the simulation- Specified by:
uploadPackageAndStartSimulationin interfaceEnterprisePlugin- Parameters:
simulationId- RequiredsystemProperties- Required, can be an empty mapenvironmentVariables- Required, can be an empty mapconfiguredSimulationClass- Optional, override simulation configured class name for next runfile- Required, Path to the packaged JAR file to upload and run- Throws:
EnterprisePluginException
-
createAndStartSimulation
public SimulationStartResult createAndStartSimulation(UUID teamId, String groupId, String artifactId, String configuredSimulationClass, UUID configuredPackageId, Map<String, String> systemProperties, Map<String, throws EnterprisePluginExceptionString> environmentVariables, File file) Description copied from interface:EnterprisePluginCreate and start a simulation with given parameters- Specified by:
createAndStartSimulationin interfaceEnterprisePlugin- Parameters:
teamId- OptionalgroupId- OptionalartifactId- RequiredconfiguredSimulationClass- OptionalconfiguredPackageId- OptionalsystemProperties- Required, can be an empty mapenvironmentVariables- Required, can be an empty mapfile- Required- Throws:
EnterprisePluginException
-
uploadPackageWithChecksum
protected long uploadPackageWithChecksum(UUID packageId, File file) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
validateJavaVersion
- Throws:
EnterprisePluginException
-
getSimulationClasses
- Throws:
EnterprisePluginException
-
waitForRunEnd
- Specified by:
waitForRunEndin interfaceEnterprisePlugin- Parameters:
startedRun- Required- Throws:
EnterprisePluginException
-
abortRun
- Specified by:
abortRunin interfaceEnterprisePlugin- Parameters:
runId- Required- Returns:
- false if there was no run to abort (run does not exist or is already stopped)
- Throws:
EnterprisePluginException
-