BUG-4626: Split out stream token types 83/30283/12
authorRobert Varga <rovarga@cisco.com>
Thu, 26 Nov 2015 11:46:59 +0000 (12:46 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 10 Dec 2015 13:08:14 +0000 (13:08 +0000)
commit3ee741416f6f67699392f8d9de9142f828d8981e
treeca481a5313e72b645dbcd50a96d5aa169a76d0cd
parent27f4b162e70c2463c1c47c03cb0f6a698b953d49
BUG-4626: Split out stream token types

Move token types and version into a dedicated internal class, adding
some documentation and introducing planned token types.

Also adds validation of stream version on reception, so that parsing
fails predictably in case of sender doing the worng thing and sending us
an unrecognized version.

Change-Id: I85fd9615b897e0fe4addb7f1807416d7bfe1b903
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeInputStreamReader.java
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/TokenTypes.java [new file with mode: 0644]