Search in sources :

Example 1 with AdminPortUnificationHandler

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

the class PushAgent method startAdminListener.

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

Aggregations

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