Class BenchmarkConfig

java.lang.Object
org.apache.hc.core5.benchmark.BenchmarkConfig

public class BenchmarkConfig extends Object
  • Field Details

    • uri

      private final 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 File payloadFile
    • contentType

      private final ContentType contentType
    • verbosity

      private final int verbosity
    • headInsteadOfGet

      private final boolean headInsteadOfGet
    • headers

      private final String[] headers
    • keepAlive

      private final boolean keepAlive
    • method

      private final String method
    • useChunking

      private final boolean useChunking
    • useExpectContinue

      private final boolean useExpectContinue
    • useAcceptGZip

      private final boolean useAcceptGZip
    • payloadText

      private final String payloadText
    • soapAction

      private final String soapAction
    • forceHttp2

      private final boolean forceHttp2
    • disableSSLVerification

      private final boolean disableSSLVerification
    • trustStorePath

      private final String trustStorePath
    • identityStorePath

      private final String identityStorePath
    • trustStorePassword

      private final String trustStorePassword
    • identityStorePassword

      private final String 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

      public URI getUri()
    • getRequests

      public int getRequests()
    • getConcurrencyLevel

      public int getConcurrencyLevel()
    • isKeepAlive

      public boolean isKeepAlive()
    • getVerbosity

      public int getVerbosity()
    • isHeadInsteadOfGet

      public boolean isHeadInsteadOfGet()
    • getPayloadFile

      public File getPayloadFile()
    • getContentType

      public ContentType getContentType()
    • getHeaders

      public String[] getHeaders()
    • getSocketTimeout

      public Timeout getSocketTimeout()
    • getMethod

      public String getMethod()
    • isUseChunking

      public boolean isUseChunking()
    • isUseExpectContinue

      public boolean isUseExpectContinue()
    • isUseAcceptGZip

      public boolean isUseAcceptGZip()
    • getPayloadText

      public String getPayloadText()
    • getSoapAction

      public String getSoapAction()
    • isForceHttp2

      public boolean isForceHttp2()
    • isDisableSSLVerification

      public boolean isDisableSSLVerification()
    • getTrustStorePath

      public String getTrustStorePath()
    • getIdentityStorePath

      public String getIdentityStorePath()
    • getTrustStorePassword

      public String getTrustStorePassword()
    • getIdentityStorePassword

      public String getIdentityStorePassword()
    • getTimeLimit

      public TimeValue getTimeLimit()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • custom

      public static BenchmarkConfig.Builder custom()
    • copy

      public static BenchmarkConfig.Builder copy(BenchmarkConfig config)