Package org.apache.hc.core5.benchmark
Class BenchmarkConfig
java.lang.Object
org.apache.hc.core5.benchmark.BenchmarkConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final ContentType
private final boolean
private final boolean
private final String[]
private final boolean
private final String
private final String
private final boolean
private final String
private final File
private final String
private final int
private final String
private final Timeout
private final TimeValue
private final String
private final String
private final URI
private final boolean
private final boolean
private final boolean
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
BenchmarkConfig
(URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, String[] headers, boolean keepAlive, String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, String payloadText, String soapAction, boolean forceHttp2, boolean disableSSLVerification, String trustStorePath, String identityStorePath, String trustStorePassword, String identityStorePassword) -
Method Summary
Modifier and TypeMethodDescriptionstatic BenchmarkConfig.Builder
copy
(BenchmarkConfig config) static BenchmarkConfig.Builder
custom()
int
String[]
int
getUri()
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
toString()
-
Field Details
-
uri
-
requests
private final int requests -
concurrencyLevel
private final int concurrencyLevel -
timeLimit
-
socketTimeout
-
payloadFile
-
contentType
-
verbosity
private final int verbosity -
headInsteadOfGet
private final boolean headInsteadOfGet -
headers
-
keepAlive
private final boolean keepAlive -
method
-
useChunking
private final boolean useChunking -
useExpectContinue
private final boolean useExpectContinue -
useAcceptGZip
private final boolean useAcceptGZip -
payloadText
-
soapAction
-
forceHttp2
private final boolean forceHttp2 -
disableSSLVerification
private final boolean disableSSLVerification -
trustStorePath
-
identityStorePath
-
trustStorePassword
-
identityStorePassword
-
-
Constructor Details
-
BenchmarkConfig
private BenchmarkConfig(URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, String[] headers, boolean keepAlive, String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, String payloadText, String soapAction, boolean forceHttp2, boolean disableSSLVerification, String trustStorePath, String identityStorePath, String trustStorePassword, String identityStorePassword)
-
-
Method Details
-
getUri
-
getRequests
public int getRequests() -
getConcurrencyLevel
public int getConcurrencyLevel() -
isKeepAlive
public boolean isKeepAlive() -
getVerbosity
public int getVerbosity() -
isHeadInsteadOfGet
public boolean isHeadInsteadOfGet() -
getPayloadFile
-
getContentType
-
getHeaders
-
getSocketTimeout
-
getMethod
-
isUseChunking
public boolean isUseChunking() -
isUseExpectContinue
public boolean isUseExpectContinue() -
isUseAcceptGZip
public boolean isUseAcceptGZip() -
getPayloadText
-
getSoapAction
-
isForceHttp2
public boolean isForceHttp2() -
isDisableSSLVerification
public boolean isDisableSSLVerification() -
getTrustStorePath
-
getIdentityStorePath
-
getTrustStorePassword
-
getIdentityStorePassword
-
getTimeLimit
-
toString
-
custom
-
copy
-