Search in sources :

Example 1 with HttpHealthCheckEndpointHandler

use of com.wavefront.agent.listeners.HttpHealthCheckEndpointHandler in project java by wavefrontHQ.

the class PushAgent method startHealthCheckListener.

@VisibleForTesting
protected void startHealthCheckListener(int port) {
    String strPort = String.valueOf(port);
    healthCheckManager.enableHealthcheck(port);
    ChannelHandler channelHandler = new HttpHealthCheckEndpointHandler(healthCheckManager, port);
    startAsManagedThread(port, new TcpIngester(createInitializer(channelHandler, port, proxyConfig.getPushListenerMaxReceivedLength(), proxyConfig.getPushListenerHttpBufferSize(), proxyConfig.getListenerIdleConnectionTimeout(), getSslContext(strPort), getCorsConfig(strPort)), port).withChildChannelOptions(childChannelOptions), "listener-http-healthcheck-" + port);
    logger.info("Health check port enabled: " + port);
}
Also used : ChannelHandler(io.netty.channel.ChannelHandler) HttpHealthCheckEndpointHandler(com.wavefront.agent.listeners.HttpHealthCheckEndpointHandler) TcpIngester(com.wavefront.ingester.TcpIngester) VisibleForTesting(com.google.common.annotations.VisibleForTesting)

Aggregations

VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 HttpHealthCheckEndpointHandler (com.wavefront.agent.listeners.HttpHealthCheckEndpointHandler)1 TcpIngester (com.wavefront.ingester.TcpIngester)1 ChannelHandler (io.netty.channel.ChannelHandler)1