We have a fresh set of serialization proxies used when we have a version
newer than MAGNESIUM. This patch defines that new version.
JIRA: CONTROLLER-2051
Change-Id: Id91201652afc9dd55d4b44c73bd2d9d3fa3853d3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
return NormalizedNodeStreamVersion.MAGNESIUM;
}
},
return NormalizedNodeStreamVersion.MAGNESIUM;
}
},
+ /**
+ * Revised ABI version. The messages remain the same as {@link #MAGNESIUM}, the serialization proxies in use are
+ * flat objects without any superclasses.
+ */
+ CHLORINE_SR2(9) {
+ @Override
+ public NormalizedNodeStreamVersion getStreamVersion() {
+ return NormalizedNodeStreamVersion.MAGNESIUM;
+ }
+ },
/**
* Version which is newer than any other version. This version exists purely for testing purposes.
/**
* Version which is newer than any other version. This version exists purely for testing purposes.
case 6 -> NEON_SR2;
case 7 -> SODIUM_SR1;
case 8 -> MAGNESIUM;
case 6 -> NEON_SR2;
case 7 -> SODIUM_SR1;
case 8 -> MAGNESIUM;
- default -> throw new FutureVersionException(value, MAGNESIUM);
+ case 9 -> CHLORINE_SR2;
+ default -> throw new FutureVersionException(value, CHLORINE_SR2);
}
return switch (toVersion) {
}
return switch (toVersion) {
- case BORON, NEON_SR2, SODIUM_SR1, MAGNESIUM -> verifyNotNull(cloneAsVersion(toVersion));
+ case BORON, NEON_SR2, SODIUM_SR1, MAGNESIUM, CHLORINE_SR2 -> verifyNotNull(cloneAsVersion(toVersion));
default -> throw new IllegalArgumentException("Unhandled ABI version " + toVersion);
};
}
default -> throw new IllegalArgumentException("Unhandled ABI version " + toVersion);
};
}