Class EnterpriseClient
java.lang.Object
io.gatling.plugin.client.EnterpriseClient
- Direct Known Subclasses:
HttpEnterpriseClient
The following exception sub-classes of
EnterprisePluginException can be thrown by all
methods of this public API:
UnauthorizedApiCallException: invalid authentication tokenForbiddenApiCallException: authentication token with insufficient privilegesApiCallIOException: unexpected IO errorInvalidApiCallException: invalid input data
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract DeployedPkgInfodeployPkg(com.fasterxml.jackson.databind.JsonNode descriptor, String artifactId, Boolean usePrivateRepository) abstract List<DeployedSimulationInfo> deploySimulations(String pkgId, com.fasterxml.jackson.databind.JsonNode descriptor) abstract LiveInformationResponsegetLiveRunInformation(String runId) abstract PkggetPackage(String pkgId) abstract List<RunAssertion> getRunAssertions(String runId) abstract ServerInformationabstract RunSummarystartSimulation(String simulationId, RunComment runComment) abstract longuploadPackage(String packageId, File file) abstract longuploadPackageWithChecksum(String packageId, File file)
-
Field Details
-
buildPlugin
-
-
Constructor Details
-
EnterpriseClient
-
-
Method Details
-
getServerInformation
- Throws:
EnterprisePluginException
-
getPackages
- Throws:
EnterprisePluginException
-
getPackage
- Throws:
EnterprisePluginException
-
uploadPackage
- Parameters:
packageId- Requiredfile- Required path to the packaged JAR file to upload; required- Throws:
PackageNotFoundException- if the packageId does not existEnterprisePluginException
-
uploadPackageWithChecksum
public abstract long uploadPackageWithChecksum(String packageId, File file) throws EnterprisePluginException - Parameters:
packageId- Requiredfile- Required- Returns:
- file size if uploaded, -1 when checksum are equals
- Throws:
EnterprisePluginException
-
getRunAssertions
- Parameters:
runId- Required- Returns:
- Information on the requested run
- Throws:
RunNotFoundException- if the runId does not existEnterprisePluginException
-
getLiveRunInformation
public abstract LiveInformationResponse getLiveRunInformation(String runId) throws EnterprisePluginException - Parameters:
runId- Required- Returns:
- Live information on the requested run
- Throws:
RunNotFoundException- if the runId does not existEnterprisePluginException
-
abortRun
- Parameters:
runId- Required- Returns:
- false if there was no run to abort (run does not exist or is already stopped)
- Throws:
EnterprisePluginException
-
deployPkg
public abstract DeployedPkgInfo deployPkg(com.fasterxml.jackson.databind.JsonNode descriptor, String artifactId, Boolean usePrivateRepository) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
deploySimulations
public abstract List<DeployedSimulationInfo> deploySimulations(String pkgId, com.fasterxml.jackson.databind.JsonNode descriptor) throws EnterprisePluginException - Throws:
EnterprisePluginException
-
startSimulation
public abstract RunSummary startSimulation(String simulationId, RunComment runComment) throws EnterprisePluginException - Throws:
EnterprisePluginException
-