use of com.wavefront.agent.listeners.JsonMetricsPortUnificationHandler in project java by wavefrontHQ.
the class PushAgent method startJsonListener.
protected void startJsonListener(String strPort, ReportableEntityHandlerFactory handlerFactory) {
final int port = Integer.parseInt(strPort);
registerTimestampFilter(strPort);
if (proxyConfig.isHttpHealthCheckAllPorts())
healthCheckManager.enableHealthcheck(port);
ChannelHandler channelHandler = new JsonMetricsPortUnificationHandler(strPort, tokenAuthenticator, healthCheckManager, handlerFactory, proxyConfig.getPrefix(), proxyConfig.getHostname(), preprocessors.get(strPort));
startAsManagedThread(port, new TcpIngester(createInitializer(channelHandler, port, proxyConfig.getPushListenerMaxReceivedLength(), proxyConfig.getPushListenerHttpBufferSize(), proxyConfig.getListenerIdleConnectionTimeout(), getSslContext(strPort), getCorsConfig(strPort)), port).withChildChannelOptions(childChannelOptions), "listener-plaintext-json-" + port);
logger.info("listening on port: " + strPort + " for JSON metrics data");
}
Aggregations