private SimpleMapCache smc;
private AuthenticationKeyDataListener authenticationKeyDataListener;
private DataStoreBackEnd dsbe;
- private boolean isReadFromChannelEnabled = true;
public LispSouthboundHandler(LispSouthboundPlugin lispSbPlugin) {
this.lispSbPlugin = lispSbPlugin;
@Override
protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) throws Exception {
- if (isReadFromChannelEnabled) {
- if (LOG.isTraceEnabled()) {
- LOG.trace("Received UDP packet from {}:{} with content:\n{}", msg.sender().getHostString(),
- msg.sender().getPort(), ByteBufUtil.prettyHexDump(msg.content()));
- }
- handlePacket(msg);
+ if (LOG.isTraceEnabled()) {
+ LOG.trace("Received UDP packet from {}:{} with content:\n{}", msg.sender().getHostString(),
+ msg.sender().getPort(), ByteBufUtil.prettyHexDump(msg.content()));
}
+ handlePacket(msg);
}
@Override
dsbe = new DataStoreBackEnd(dataBroker);
}
- public void setIsReadFromChannelEnabled(boolean isReadFromChannelEnabled) {
- this.isReadFromChannelEnabled = isReadFromChannelEnabled;
- }
-
public void setMapRegisterCacheTimeout(long mapRegisterCacheTimeout) {
this.mapRegisterCacheTimeout = mapRegisterCacheTimeout;
}