This HcibenchApiCallSample_Java.7z provides Hcibench Api Call Samples implemented in Java. It contains three Java files:
1 Constants.java which stores list of Hcibench REST API constants used by other Java files
2 HciBaseLib.java which provides the common funtionalities consumed by hcibench REST API, such as getHttpClient(), createRequestUrl(), sendGetRequest(), sendPostRequest(), parseResponse() etc.
3 HcibenchLib.java which provides hcibench REST API, such as generateParam(), generateFile(), validateFile(),
runTest(), isTestFinish(), readLog(), killTest(), cleanupVms() etc. It also provides the unit testing code sample.
This code sample is dependent on external httpmime jar. In your project pom.xml, add following dependency:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.3.1</version>
</dependency>
This HcibenchApiCallSample_Java.7z provides Hcibench Api Call Samples implemented in Java. It contains three Java files:
1 Constants.java which stores list of Hcibench REST API constants used by other Java files
2 HciBaseLib.java which provides the common funtionalities consumed by hcibench REST API, such as getHttpClient(),
createRequestUrl(), sendGetRequest(), sendPostRequest(), parseResponse() etc.
3 HcibenchLib.java which provides hcibench REST API, such as generateParam(), generateFile(), validateFile(),
runTest(), isTestFinish(), readLog(), killTest(), cleanupVms() etc. It also provides the unit testing code sample.
This code sample is dependent on external httpmime jar. In your project pom.xml, add following dependency:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.3.1</version>
</dependency>
#vSAN#vSphere#MIT#HCIBench#Java