public class LumberjackServer extends Object implements org.thales.punch.netty.api.INettyReaderCallback<Map<String,String>>, Runnable
This server can listen on several ports, relying on a single internal netty engine. To listen onto several ports,
 call the constructor once, then invoke addListeningAddress(ISettingsMap, LinkedBlockingQueue).
| Constructor and Description | 
|---|
LumberjackServer(org.thales.punch.settings.api.ISettingsMap address,
                LinkedBlockingQueue<org.thales.punch.netty.api.INettyTuple<Map<String,String>>> queue,
                int queueSize,
                org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
Ctor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
LumberjackServer | 
addListeningAddress(org.thales.punch.settings.api.ISettingsMap address,
                   LinkedBlockingQueue<org.thales.punch.netty.api.INettyTuple<Map<String,String>>> queue)  | 
void | 
close()  | 
Class<?> | 
getType()  | 
void | 
onReceive(io.netty.channel.ChannelHandlerContext ctx,
         org.thales.punch.netty.api.INettyTuple<Map<String,String>> data)  | 
void | 
registerNextTupleCallback(org.thales.punch.libraries.storm.api.INextTupleCallback cb)  | 
void | 
run()  | 
public LumberjackServer(org.thales.punch.settings.api.ISettingsMap address,
                        LinkedBlockingQueue<org.thales.punch.netty.api.INettyTuple<Map<String,String>>> queue,
                        int queueSize,
                        org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
address - the listening addressqueue - the receiving queuequeueSize - the size of the input queue, once reached the syslogserver will stop reading the incoming socketmetricsContext - the metrics contextpublic void onReceive(io.netty.channel.ChannelHandlerContext ctx,
                      org.thales.punch.netty.api.INettyTuple<Map<String,String>> data)
public void close()
public void registerNextTupleCallback(org.thales.punch.libraries.storm.api.INextTupleCallback cb)
public LumberjackServer addListeningAddress(org.thales.punch.settings.api.ISettingsMap address, LinkedBlockingQueue<org.thales.punch.netty.api.INettyTuple<Map<String,String>>> queue)
Copyright © 2023. All rights reserved.