import java.util.List;
import org.opendaylight.controller.netconf.util.messages.FramingMechanism;
-import org.opendaylight.controller.netconf.util.messages.NetconfMessageFactory;
+import org.opendaylight.controller.netconf.util.messages.NetconfMessageConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private final static Logger logger = LoggerFactory.getLogger(NetconfMessageAggregator.class);
- private byte[] eom = NetconfMessageFactory.endOfMessage;
+ private byte[] eom = NetconfMessageConstants.endOfMessage;
public NetconfMessageAggregator(FramingMechanism framingMechanism) {
if (framingMechanism == FramingMechanism.CHUNK) {
- eom = NetconfMessageFactory.endOfChunk;
+ eom = NetconfMessageConstants.endOfChunk;
}
}
ByteBuf msg = in.readBytes(index);
in.readBytes(eom.length);
in.discardReadBytes();
- logger.debug("Message is complete. {}", msg.readableBytes());
+ logger.debug("Message is complete.");
out.add(msg);
}
}