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