@Override protected boolean requiresExplicitServiceName() { // RU_COMPAT_3_10 // We are not checking target member version here since this requires // the operation to be target-aware and that breaks the multi-member // broadcast serialization optimization in OperationBackupHandler. It's // cheaper just to transfer an additional service name string in // mixed-version clusters than serializing the operation for each member // individually. Version clusterVersion = getNodeEngine().getClusterService().getClusterVersion(); return clusterVersion.isUnknownOrLessThan(Versions.V3_11); }
@Override protected boolean requiresExplicitServiceName() { // RU_COMPAT_3_10 // We are not checking target member version here since this requires // the operation to be target-aware and that breaks the multi-member // broadcast serialization optimization in OperationBackupHandler. It's // cheaper just to transfer an additional service name string in // mixed-version clusters than serializing the operation for each member // individually. Version clusterVersion = getNodeEngine().getClusterService().getClusterVersion(); return clusterVersion.isUnknownOrLessThan(Versions.V3_11); }
protected boolean isClusterVersionUnknownOrLessThan(Version version) { Version clusterVersion = getNodeEngine().getClusterService().getClusterVersion(); return clusterVersion.isUnknownOrLessThan(version); }
protected boolean isClusterVersionUnknownOrLessThan(Version version) { Version clusterVersion = getNodeEngine().getClusterService().getClusterVersion(); return clusterVersion.isUnknownOrLessThan(version); }
@Override protected void writeInternal(ObjectDataOutput out) throws IOException { out.writeUTF(engineName); out.writeUTF(script); if (out.getVersion().isUnknownOrLessThan(V3_10)) { out.writeInt(0); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { engineName = in.readUTF(); script = in.readUTF(); if (in.getVersion().isUnknownOrLessThan(V3_10)) { in.readInt(); } }
@Override protected void writeInternal(ObjectDataOutput out) throws IOException { out.writeUTF(engineName); out.writeUTF(script); if (out.getVersion().isUnknownOrLessThan(V3_10)) { out.writeInt(0); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { engineName = in.readUTF(); script = in.readUTF(); if (in.getVersion().isUnknownOrLessThan(V3_10)) { in.readInt(); } }
@Override protected void readListenerConfigurations(ObjectDataInput in) throws IOException { // RU_COMPAT_3_9 if (in.getVersion().isUnknownOrLessThan(V3_10)) { super.readListenerConfigurations(in); } else { int size = in.readInt(); listenerConfigurations = createConcurrentSet(); for (int i = 0; i < size; i++) { DeferredValue<CacheEntryListenerConfiguration<K, V>> serializedConfig = DeferredValue.withSerializedValue(in.readData()); listenerConfigurations.add(serializedConfig); } } }
if (inputversion.isUnknownOrLessThan(V3_10) && getBuildInfo().isEnterprise()) { int indexesCount = in.readInt(); for (int i = 0; i < indexesCount; i++) {
@Override protected void readFactories(ObjectDataInput in) throws IOException { // RU_COMPAT_3_9 if (in.getVersion().isUnknownOrLessThan(V3_10)) { super.readFactories(in); } else { cacheLoaderFactory = DeferredValue.withSerializedValue(in.readData()); cacheWriterFactory = DeferredValue.withSerializedValue(in.readData()); expiryPolicyFactory = DeferredValue.withSerializedValue(in.readData()); } }
@Override public void readData(ObjectDataInput in) throws IOException { name = in.readUTF(); inMemoryFormat = InMemoryFormat.valueOf(in.readUTF()); asyncFillup = in.readBoolean(); statisticsEnabled = in.readBoolean(); // RU_COMPAT_3_9 if (in.getVersion().isUnknownOrLessThan(Versions.V3_10)) { mergePolicyConfig.setPolicy(in.readUTF()); } listenerConfigs = readNullableList(in); // RU_COMPAT_3_9 if (in.getVersion().isGreaterOrEqual(Versions.V3_10)) { quorumName = in.readUTF(); mergePolicyConfig = in.readObject(); } }