Package io.gatling.plugin.client
Class HttpEnterpriseClient
java.lang.Object
io.gatling.plugin.client.EnterpriseClient
io.gatling.plugin.client.HttpEnterpriseClient
-
Field Summary
Fields inherited from class io.gatling.plugin.client.EnterpriseClient
buildPlugin -
Constructor Summary
ConstructorsConstructorDescriptionHttpEnterpriseClient(URL apiUrl, String token, URL privateControlPlaneUrl, BuildPlugin buildPlugin) -
Method Summary
Modifier and TypeMethodDescriptionbooleancreatePackage(String packageName, UUID teamId) deployPkg(com.fasterxml.jackson.databind.JsonNode descriptor, String artifactId, Boolean usePrivateRepository) deploySimulations(UUID pkgId, com.fasterxml.jackson.databind.JsonNode descriptor) getConcurrentUserMetric(UUID runId, String scenario) getPackage(UUID pkgId) getRequestsSummary(UUID runId) getRunInformation(UUID runId) getSimulation(UUID simulationId) startSimulation(UUID simulationId, RunComment runComment) longuploadPackage(UUID packageId, File file) longuploadPackageWithChecksum(UUID packageId, File file)
-
Constructor Details
-
HttpEnterpriseClient
public HttpEnterpriseClient(URL apiUrl, String token, URL privateControlPlaneUrl, BuildPlugin buildPlugin) 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
-
getSimulation
- Specified by:
getSimulationin 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
-
createPackage
- Specified by:
createPackagein classEnterpriseClient- Throws:
EnterprisePluginException
-
getRunInformation
- Specified by:
getRunInformationin classEnterpriseClient- Parameters:
runId- Required- Returns:
- Information on the requested run
- Throws:
EnterprisePluginException
-
getConcurrentUserMetric
public List<Series> getConcurrentUserMetric(UUID runId, String scenario) throws EnterprisePluginException - Specified by:
getConcurrentUserMetricin classEnterpriseClient- Parameters:
runId- Requiredscenario- Required- Throws:
EnterprisePluginException
-
getRequestsSummary
- Specified by:
getRequestsSummaryin classEnterpriseClient- Parameters:
runId- Required- 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(UUID pkgId, com.fasterxml.jackson.databind.JsonNode descriptor) throws EnterprisePluginException - Specified by:
deploySimulationsin classEnterpriseClient- Throws:
EnterprisePluginException
-
startSimulation
public RunSummary startSimulation(UUID simulationId, RunComment runComment) throws EnterprisePluginException - Specified by:
startSimulationin classEnterpriseClient- Throws:
EnterprisePluginException
-