Package io.hyperfoil.http.connection
Class HttpClientPoolImpl
- java.lang.Object
-
- io.hyperfoil.http.connection.HttpClientPoolImpl
-
- All Implemented Interfaces:
HttpClientPool
public class HttpClientPoolImpl extends java.lang.Object implements HttpClientPool
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description HttpClientPoolImpl(Http http, io.netty.channel.EventLoop[] executors, io.hyperfoil.api.config.Benchmark benchmark, int agentId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringauthority()Httpconfig()HttpConnectionPoolconnectionPool(io.netty.util.concurrent.EventExecutor executor)static HttpClientPoolImplforTesting(Http http, int threads)java.lang.Stringhost()booleanisSecure()HttpConnectionPoolnext()byte[]originalDestinationBytes()java.lang.Stringscheme()voidshutdown()voidstart(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler)voidvisitConnectionStats(ConnectionStatsConsumer consumer)
-
-
-
Constructor Detail
-
HttpClientPoolImpl
public HttpClientPoolImpl(Http http, io.netty.channel.EventLoop[] executors, io.hyperfoil.api.config.Benchmark benchmark, int agentId) throws javax.net.ssl.SSLException
- Throws:
javax.net.ssl.SSLException
-
-
Method Detail
-
forTesting
public static HttpClientPoolImpl forTesting(Http http, int threads) throws javax.net.ssl.SSLException
- Throws:
javax.net.ssl.SSLException
-
config
public Http config()
- Specified by:
configin interfaceHttpClientPool
-
start
public void start(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler)
- Specified by:
startin interfaceHttpClientPool
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceHttpClientPool
-
next
public HttpConnectionPool next()
- Specified by:
nextin interfaceHttpClientPool
-
connectionPool
public HttpConnectionPool connectionPool(io.netty.util.concurrent.EventExecutor executor)
- Specified by:
connectionPoolin interfaceHttpClientPool
-
host
public java.lang.String host()
- Specified by:
hostin interfaceHttpClientPool
-
authority
public java.lang.String authority()
- Specified by:
authorityin interfaceHttpClientPool
-
originalDestinationBytes
public byte[] originalDestinationBytes()
- Specified by:
originalDestinationBytesin interfaceHttpClientPool
-
scheme
public java.lang.String scheme()
- Specified by:
schemein interfaceHttpClientPool
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceHttpClientPool
-
visitConnectionStats
public void visitConnectionStats(ConnectionStatsConsumer consumer)
- Specified by:
visitConnectionStatsin interfaceHttpClientPool
-
-