Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Netconf message related constants moved to one place.
[controller.git]
/
opendaylight
/
netconf
/
netconf-util
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
netconf
/
util
/
handler
/
NetconfMessageAggregator.java
diff --git
a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfMessageAggregator.java
b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfMessageAggregator.java
index 131c3d71a57c9df779302ca4ff352e10f53841e6..868ddbd99c37a07a6fd31198cd81fe01c654e662 100644
(file)
--- a/
opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfMessageAggregator.java
+++ b/
opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfMessageAggregator.java
@@
-11,7
+11,7
@@
package org.opendaylight.controller.netconf.util.handler;
import java.util.List;
import org.opendaylight.controller.netconf.util.messages.FramingMechanism;
import java.util.List;
import org.opendaylight.controller.netconf.util.messages.FramingMechanism;
-import org.opendaylight.controller.netconf.util.messages.NetconfMessage
Factory
;
+import org.opendaylight.controller.netconf.util.messages.NetconfMessage
Constants
;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@
-23,11
+23,11
@@
public class NetconfMessageAggregator extends ByteToMessageDecoder {
private final static Logger logger = LoggerFactory.getLogger(NetconfMessageAggregator.class);
private final static Logger logger = LoggerFactory.getLogger(NetconfMessageAggregator.class);
- private byte[] eom = NetconfMessage
Factory
.endOfMessage;
+ private byte[] eom = NetconfMessage
Constants
.endOfMessage;
public NetconfMessageAggregator(FramingMechanism framingMechanism) {
if (framingMechanism == FramingMechanism.CHUNK) {
public NetconfMessageAggregator(FramingMechanism framingMechanism) {
if (framingMechanism == FramingMechanism.CHUNK) {
- eom = NetconfMessage
Factory
.endOfChunk;
+ eom = NetconfMessage
Constants
.endOfChunk;
}
}
}
}
@@
-41,7
+41,7
@@
public class NetconfMessageAggregator extends ByteToMessageDecoder {
ByteBuf msg = in.readBytes(index);
in.readBytes(eom.length);
in.discardReadBytes();
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);
}
}
out.add(msg);
}
}