Package io.gatling.plugin
Class BatchEnterprisePluginClient
java.lang.Object
io.gatling.plugin.BatchEnterprisePluginClient
- All Implemented Interfaces:
BatchEnterprisePlugin,EnterprisePlugin
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBatchEnterprisePluginClient(EnterpriseClient enterpriseClient, PluginLogger logger) -
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 parametersgetSimulationClasses(File file) longuploadPackage(UUID packageId, File file) Upload file to the package associated with given packageIduploadPackageAndStartSimulation(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 simulationuploadPackageConfiguration(String jsonConfiguration) Upload a package configuration description to apply.protected longuploadPackageWithChecksum(UUID packageId, File file) longuploadPackageWithSimulationId(UUID simulationId, File file) Upload file to the package associated to the given simulationIdprotected 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
-
BatchEnterprisePluginClient
-
-
Method Details
-
uploadPackage
Description copied from interface:BatchEnterprisePluginUpload file to the package associated with given packageId- Specified by:
uploadPackagein interfaceBatchEnterprisePlugin- Parameters:
packageId- Requiredfile- File to upload and run; required- Throws:
EnterprisePluginException
-
uploadPackageWithSimulationId
public long uploadPackageWithSimulationId(UUID simulationId, File file) throws EnterprisePluginException Description copied from interface:BatchEnterprisePluginUpload file to the package associated to the given simulationId- Specified by:
uploadPackageWithSimulationIdin interfaceBatchEnterprisePlugin- Parameters:
simulationId- Requiredfile- File to upload and run; required- Throws:
EnterprisePluginException
-
uploadPackageConfiguration
Description copied from interface:BatchEnterprisePluginUpload a package configuration description to apply.- Specified by:
uploadPackageConfigurationin interfaceBatchEnterprisePlugin- Parameters:
jsonConfiguration- Serialized json package configuration to apply; required- Returns:
- Package id
- Throws:
EnterprisePluginException
-
uploadPackageAndStartSimulation
public SimulationStartResult uploadPackageAndStartSimulation(UUID simulationId, Map<String, String> systemProperties, Map<String, throws EnterprisePluginExceptionString> environmentVariables, String simulationClass, 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 mapsimulationClass- 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 simulationClass, UUID packageId, 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- RequiredsimulationClass- OptionalpackageId- 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
-