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);
}
Aggregations