Class HttpEnterpriseClient
java.lang.Object
io.gatling.plugin.client.EnterpriseClient
io.gatling.plugin.client.HttpEnterpriseClient
-
Field Summary
Fields inherited from class EnterpriseClient
buildPlugin -
Constructor Summary
ConstructorsConstructorDescriptionHttpEnterpriseClient(URL apiUrl, String token, URL privateControlPlaneUrl, BuildPlugin buildPlugin, PluginLogger pluginLogger) -
Method Summary
Modifier and TypeMethodDescriptionbooleandeployPkg(com.fasterxml.jackson.databind.JsonNode descriptor, String artifactId, Boolean usePrivateRepository) deploySimulations(String pkgId, com.fasterxml.jackson.databind.JsonNode descriptor) getLiveRunInformation(String runId) getPackage(String pkgId) getRunAssertions(String runId) startSimulation(String testId, RunComment runComment) longuploadPackage(String packageId, File file) longuploadPackageWithChecksum(String packageId, File file)
-
Constructor Details
-
HttpEnterpriseClient
public HttpEnterpriseClient(URL apiUrl, String token, URL privateControlPlaneUrl, BuildPlugin buildPlugin, PluginLogger pluginLogger) throws EnterprisePluginException - Parameters:
apiUrl- Base URL for the Gatling Enterprise API, e.g.https://api.gatling.iotoken- Authentication token used to access the public APIprivateControlPlaneUrl- (optional) Base URL for a Gatling Enterprise private control plane providing a private repository. If this parameter is provided, packages will be registered as private packages and uploaded through this private control plane.- Throws:
EnterprisePluginException
-
-
Method Details
-
getServerInformation
- Specified by:
getServerInformationin classEnterpriseClient- Throws:
EnterprisePluginException
-
getPackages
- Specified by:
getPackagesin classEnterpriseClient- Throws:
EnterprisePluginException
-
getPackage
- Specified by:
getPackagein classEnterpriseClient- Throws:
EnterprisePluginException
-
uploadPackage
- Specified by:
uploadPackagein classEnterpriseClient- Parameters:
packageId- Requiredfile- Required path to the packaged JAR file to upload; required- Throws:
EnterprisePluginException
-
uploadPackageWithChecksum
- Specified by:
uploadPackageWithChecksumin classEnterpriseClient- Parameters:
packageId- Requiredfile- Required- Returns:
- file size if uploaded, -1 when checksum are equals
- Throws:
EnterprisePluginException
-
getRunAssertions
- Specified by:
getRunAssertionsin classEnterpriseClient- Parameters:
runId- Required- Returns:
- Information on the requested run
- Throws:
EnterprisePluginException
-
getLiveRunInformation
- Specified by:
getLiveRunInformationin classEnterpriseClient- Parameters:
runId- Required- Returns:
- Live information on the requested run
- Throws:
EnterprisePluginException
-
abortRun
- Specified by:
abortRunin classEnterpriseClient- Parameters:
runId- Required- Returns:
- false if there was no run to abort (run does not exist or is already stopped)
- Throws:
EnterprisePluginException
-
deployPkg
public DeployedPkgInfo deployPkg(com.fasterxml.jackson.databind.JsonNode descriptor, String artifactId, Boolean usePrivateRepository) throws EnterprisePluginException - Specified by:
deployPkgin classEnterpriseClient- Throws:
EnterprisePluginException
-
deploySimulations
public List<DeployedSimulationInfo> deploySimulations(String pkgId, com.fasterxml.jackson.databind.JsonNode descriptor) throws EnterprisePluginException - Specified by:
deploySimulationsin classEnterpriseClient- Throws:
EnterprisePluginException
-
startSimulation
public RunSummary startSimulation(String testId, RunComment runComment) throws EnterprisePluginException - Specified by:
startSimulationin classEnterpriseClient- Throws:
EnterprisePluginException
-