X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2FABIVersion.java;fp=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2FABIVersion.java;h=4658f3b754f8008f0b3c905bfc9056fd55371734;hb=f40e99a51cd3fc2c9be3ac8aa0772bdb6b6ce479;hp=119d477cc6e77df384c1807af1490094e084fb1a;hpb=609f0bd2646991335ab40a9a2265dcc928c0e6f7;p=controller.git diff --git a/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/ABIVersion.java b/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/ABIVersion.java index 119d477cc6..4658f3b754 100644 --- a/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/ABIVersion.java +++ b/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/ABIVersion.java @@ -40,15 +40,16 @@ public enum ABIVersion implements WritableObject { // NEON_SR2 was 6 // SODIUM_SR1 was 7 // MAGNESIUM was 8 + // CHLORINE_SR2 was 9 /** - * Oldest ABI version we support. The messages remain the same as {@code MAGNESIUM}, the serialization proxies in - * use are flat objects without any superclasses. + * Oldest ABI version we support. The messages remain the same as {@code CHLORINE_SR2}, the serialization proxies in + * use are flat objects without any superclasses. Data encoding does not include augmentations as separate objects. */ - CHLORINE_SR2(9) { + POTASSIUM(10) { @Override public NormalizedNodeStreamVersion getStreamVersion() { - return NormalizedNodeStreamVersion.MAGNESIUM; + return NormalizedNodeStreamVersion.POTASSIUM; } }, @@ -88,7 +89,7 @@ public enum ABIVersion implements WritableObject { * @return Current {@link ABIVersion} */ public static @NonNull ABIVersion current() { - return CHLORINE_SR2; + return POTASSIUM; } /** @@ -102,9 +103,9 @@ public enum ABIVersion implements WritableObject { */ public static @NonNull ABIVersion valueOf(final short value) throws FutureVersionException, PastVersionException { return switch (Short.toUnsignedInt(value)) { - case 0, 1, 2, 3, 4, 6, 7, 8 -> throw new PastVersionException(value, CHLORINE_SR2); - case 9 -> CHLORINE_SR2; - default -> throw new FutureVersionException(value, CHLORINE_SR2); + case 0, 1, 2, 3, 4, 6, 7, 8, 9 -> throw new PastVersionException(value, POTASSIUM); + case 10 -> POTASSIUM; + default -> throw new FutureVersionException(value, POTASSIUM); }; }