use of com.wavefront.agent.listeners.WriteHttpJsonPortUnificationHandler in project java by wavefrontHQ.
the class PushAgent method startWriteHttpJsonListener.
protected void startWriteHttpJsonListener(String strPort, ReportableEntityHandlerFactory handlerFactory) {
final int port = Integer.parseInt(strPort);
registerPrefixFilter(strPort);
registerTimestampFilter(strPort);
if (proxyConfig.isHttpHealthCheckAllPorts())
healthCheckManager.enableHealthcheck(port);
ChannelHandler channelHandler = new WriteHttpJsonPortUnificationHandler(strPort, tokenAuthenticator, healthCheckManager, handlerFactory, 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-writehttpjson-" + port);
logger.info("listening on port: " + strPort + " for write_http data");
}
Aggregations