X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FNormalizedNodeDataInput.java;h=93eb55cc8e07b388a3865c9ae39cd8e966d0e25e;hp=7d793b1f3c14602dfe368b5232346baa122ac876;hb=657b0b025a92f9d0ad6647d79950071031d7b0b4;hpb=69e914b3889a82fa2f7daa8d55e1aa0de23fb454 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeDataInput.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeDataInput.java index 7d793b1f3c..93eb55cc8e 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeDataInput.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeDataInput.java @@ -35,4 +35,12 @@ public interface NormalizedNodeDataInput extends DataInput { PathArgument readPathArgument() throws IOException; SchemaPath readSchemaPath() throws IOException; + + /** + * Return the version of the underlying input stream. + * + * @return Stream version + * @throws IOException if the version cannot be ascertained + */ + NormalizedNodeStreamVersion getVersion() throws IOException; }