Package io.gatling.plugin.domain
Class BatchEnterprisePluginClient
java.lang.Object
io.gatling.plugin.domain.BatchEnterprisePluginClient
- All Implemented Interfaces:
BatchEnterprisePlugin,EnterprisePlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EnterpriseClientprotected final PluginLoggerprotected final URL -
Constructor Summary
ConstructorsConstructorDescriptionBatchEnterprisePluginClient(EnterpriseClient enterpriseClient, PluginLogger logger, URL webAppUrl) -
Method Summary
Modifier and TypeMethodDescriptionbooleandeployFromDescriptor(File descriptor, File pkg, String artifactId, Boolean usePrivateRepository) Deploy a package from a descriptorprotected RunSummarystartSimulation(DeployedSimulationInfo deployedSimulationInfo, RunComment runComment) startSimulation(String simulationName, DeploymentInfo deploymentInfo, RunComment runComment) longuploadPackage(UUID packageId, File file) Upload file to the package associated with given packageIdprotected 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
-
webAppUrl
-
-
Constructor Details
-
BatchEnterprisePluginClient
public BatchEnterprisePluginClient(EnterpriseClient enterpriseClient, PluginLogger logger, URL webAppUrl)
-
-
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
-
deployFromDescriptor
public DeploymentInfo deployFromDescriptor(File descriptor, File pkg, String artifactId, Boolean usePrivateRepository) throws EnterprisePluginException Description copied from interface:BatchEnterprisePluginDeploy a package from a descriptor- Specified by:
deployFromDescriptorin interfaceBatchEnterprisePlugin- Parameters:
descriptor- the descriptor file, nullablepkg- the package fileartifactId- artifactId defined in the build toolusePrivateRepository- If private repository is enabled for this package upload- Throws:
EnterprisePluginException
-
startSimulation
public RunSummary startSimulation(String simulationName, DeploymentInfo deploymentInfo, RunComment runComment) throws EnterprisePluginException - Specified by:
startSimulationin interfaceEnterprisePlugin- Throws:
EnterprisePluginException
-
uploadPackageWithChecksum
protected long uploadPackageWithChecksum(UUID packageId, File file) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
validateJavaVersion
- Throws:
EnterprisePluginException
-
startSimulation
protected RunSummary startSimulation(DeployedSimulationInfo deployedSimulationInfo, RunComment runComment) throws EnterprisePluginException - 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
-