public final class BatchEnterprisePluginClient extends java.lang.Object implements BatchEnterprisePlugin
| Modifier and Type | Field and Description |
|---|---|
protected EnterpriseClient |
enterpriseClient |
protected PluginLogger |
logger |
| Constructor and Description |
|---|
BatchEnterprisePluginClient(EnterpriseClient enterpriseClient,
PluginLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSimulationByteCodeCompatibility(io.gatling.scanner.HighestJavaVersionClass highestJavaVersionClass) |
void |
close() |
SimulationStartResult |
createAndStartSimulation(java.util.UUID teamId,
java.lang.String groupId,
java.lang.String artifactId,
java.lang.String simulationClass,
java.util.UUID packageId,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
java.io.File file)
Create and start a simulation with given parameters
|
protected java.util.List<java.lang.String> |
simulationClassesFromCompatibleByteCodeFile(java.io.File file) |
long |
uploadPackage(java.util.UUID packageId,
java.io.File file)
Upload file to the package associated with given packageId
|
SimulationStartResult |
uploadPackageAndStartSimulation(java.util.UUID simulationId,
java.util.Map<java.lang.String,java.lang.String> systemProperties,
java.lang.String simulationClass,
java.io.File file)
Upload file to the package configured on the given simulation ID, and start the simulation
|
protected long |
uploadPackageWithChecksum(java.util.UUID packageId,
java.io.File file) |
long |
uploadPackageWithSimulationId(java.util.UUID simulationId,
java.io.File file)
Upload file to the package associated to the given simulationId
|
protected final EnterpriseClient enterpriseClient
protected final PluginLogger logger
public BatchEnterprisePluginClient(EnterpriseClient enterpriseClient, PluginLogger logger)
public long uploadPackage(java.util.UUID packageId,
java.io.File file)
throws EnterprisePluginException
BatchEnterprisePluginuploadPackage in interface BatchEnterprisePluginpackageId - Requiredfile - File to upload and run; requiredEnterprisePluginExceptionpublic long uploadPackageWithSimulationId(java.util.UUID simulationId,
java.io.File file)
throws EnterprisePluginException
BatchEnterprisePluginuploadPackageWithSimulationId in interface BatchEnterprisePluginsimulationId - Requiredfile - File to upload and run; requiredEnterprisePluginExceptionpublic SimulationStartResult uploadPackageAndStartSimulation(java.util.UUID simulationId, java.util.Map<java.lang.String,java.lang.String> systemProperties, java.lang.String simulationClass, java.io.File file) throws EnterprisePluginException
EnterprisePluginuploadPackageAndStartSimulation in interface EnterprisePluginsimulationId - RequiredsystemProperties - 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 runSimulationNotFoundException - if the simulationId does not existInvalidSimulationClassException - if simulationClass is defined or simulation class name
has not been discoveredEnterprisePluginExceptionpublic SimulationStartResult createAndStartSimulation(java.util.UUID teamId, java.lang.String groupId, java.lang.String artifactId, java.lang.String simulationClass, java.util.UUID packageId, java.util.Map<java.lang.String,java.lang.String> systemProperties, java.io.File file) throws EnterprisePluginException
EnterprisePlugincreateAndStartSimulation in interface EnterprisePluginteamId - OptionalgroupId - OptionalartifactId - RequiredsimulationClass - OptionalpackageId - OptionalsystemProperties - Required, can be an empty Mapfile - RequiredSimulationStartException - 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 discoveredEnterprisePluginExceptionprotected long uploadPackageWithChecksum(java.util.UUID packageId,
java.io.File file)
throws EnterprisePluginException
EnterprisePluginExceptionprotected void checkSimulationByteCodeCompatibility(io.gatling.scanner.HighestJavaVersionClass highestJavaVersionClass)
throws EnterprisePluginException
EnterprisePluginExceptionprotected java.util.List<java.lang.String> simulationClassesFromCompatibleByteCodeFile(java.io.File file)
throws EnterprisePluginException
EnterprisePluginExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception