Package org.apache.hc.core5.benchmark
Class BenchmarkConfig
- java.lang.Object
-
- org.apache.hc.core5.benchmark.BenchmarkConfig
-
public class BenchmarkConfig extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BenchmarkConfig.Builder
-
Field Summary
Fields Modifier and Type Field Description private int
concurrencyLevel
private ContentType
contentType
private boolean
disableSSLVerification
private boolean
forceHttp2
private java.lang.String[]
headers
private boolean
headInsteadOfGet
private java.lang.String
identityStorePassword
private java.lang.String
identityStorePath
private boolean
keepAlive
private java.lang.String
method
private java.io.File
payloadFile
private java.lang.String
payloadText
private int
requests
private java.lang.String
soapAction
private Timeout
socketTimeout
private TimeValue
timeLimit
private java.lang.String
trustStorePassword
private java.lang.String
trustStorePath
private java.net.URI
uri
private boolean
useAcceptGZip
private boolean
useChunking
private boolean
useExpectContinue
private int
verbosity
-
Constructor Summary
Constructors Modifier Constructor Description private
BenchmarkConfig(java.net.URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, java.io.File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, java.lang.String[] headers, boolean keepAlive, java.lang.String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, java.lang.String payloadText, java.lang.String soapAction, boolean forceHttp2, boolean disableSSLVerification, java.lang.String trustStorePath, java.lang.String identityStorePath, java.lang.String trustStorePassword, java.lang.String identityStorePassword)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BenchmarkConfig.Builder
copy(BenchmarkConfig config)
static BenchmarkConfig.Builder
custom()
int
getConcurrencyLevel()
ContentType
getContentType()
java.lang.String[]
getHeaders()
java.lang.String
getIdentityStorePassword()
java.lang.String
getIdentityStorePath()
java.lang.String
getMethod()
java.io.File
getPayloadFile()
java.lang.String
getPayloadText()
int
getRequests()
java.lang.String
getSoapAction()
Timeout
getSocketTimeout()
TimeValue
getTimeLimit()
java.lang.String
getTrustStorePassword()
java.lang.String
getTrustStorePath()
java.net.URI
getUri()
int
getVerbosity()
boolean
isDisableSSLVerification()
boolean
isForceHttp2()
boolean
isHeadInsteadOfGet()
boolean
isKeepAlive()
boolean
isUseAcceptGZip()
boolean
isUseChunking()
boolean
isUseExpectContinue()
java.lang.String
toString()
-
-
-
Field Detail
-
uri
private final java.net.URI uri
-
requests
private final int requests
-
concurrencyLevel
private final int concurrencyLevel
-
timeLimit
private final TimeValue timeLimit
-
socketTimeout
private final Timeout socketTimeout
-
payloadFile
private final java.io.File payloadFile
-
contentType
private final ContentType contentType
-
verbosity
private final int verbosity
-
headInsteadOfGet
private final boolean headInsteadOfGet
-
headers
private final java.lang.String[] headers
-
keepAlive
private final boolean keepAlive
-
method
private final java.lang.String method
-
useChunking
private final boolean useChunking
-
useExpectContinue
private final boolean useExpectContinue
-
useAcceptGZip
private final boolean useAcceptGZip
-
payloadText
private final java.lang.String payloadText
-
soapAction
private final java.lang.String soapAction
-
forceHttp2
private final boolean forceHttp2
-
disableSSLVerification
private final boolean disableSSLVerification
-
trustStorePath
private final java.lang.String trustStorePath
-
identityStorePath
private final java.lang.String identityStorePath
-
trustStorePassword
private final java.lang.String trustStorePassword
-
identityStorePassword
private final java.lang.String identityStorePassword
-
-
Constructor Detail
-
BenchmarkConfig
private BenchmarkConfig(java.net.URI uri, int requests, int concurrencyLevel, TimeValue timeLimit, Timeout socketTimeout, java.io.File payloadFile, ContentType contentType, int verbosity, boolean headInsteadOfGet, java.lang.String[] headers, boolean keepAlive, java.lang.String method, boolean useChunking, boolean useExpectContinue, boolean useAcceptGZip, java.lang.String payloadText, java.lang.String soapAction, boolean forceHttp2, boolean disableSSLVerification, java.lang.String trustStorePath, java.lang.String identityStorePath, java.lang.String trustStorePassword, java.lang.String identityStorePassword)
-
-
Method Detail
-
getUri
public java.net.URI getUri()
-
getRequests
public int getRequests()
-
getConcurrencyLevel
public int getConcurrencyLevel()
-
isKeepAlive
public boolean isKeepAlive()
-
getVerbosity
public int getVerbosity()
-
isHeadInsteadOfGet
public boolean isHeadInsteadOfGet()
-
getPayloadFile
public java.io.File getPayloadFile()
-
getContentType
public ContentType getContentType()
-
getHeaders
public java.lang.String[] getHeaders()
-
getSocketTimeout
public Timeout getSocketTimeout()
-
getMethod
public java.lang.String getMethod()
-
isUseChunking
public boolean isUseChunking()
-
isUseExpectContinue
public boolean isUseExpectContinue()
-
isUseAcceptGZip
public boolean isUseAcceptGZip()
-
getPayloadText
public java.lang.String getPayloadText()
-
getSoapAction
public java.lang.String getSoapAction()
-
isForceHttp2
public boolean isForceHttp2()
-
isDisableSSLVerification
public boolean isDisableSSLVerification()
-
getTrustStorePath
public java.lang.String getTrustStorePath()
-
getIdentityStorePath
public java.lang.String getIdentityStorePath()
-
getTrustStorePassword
public java.lang.String getTrustStorePassword()
-
getIdentityStorePassword
public java.lang.String getIdentityStorePassword()
-
getTimeLimit
public TimeValue getTimeLimit()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
custom
public static BenchmarkConfig.Builder custom()
-
copy
public static BenchmarkConfig.Builder copy(BenchmarkConfig config)
-
-