MemoryMetrics API Improvements: fix seconds-milliseconds conversion for .NET
@@ -59,8 +59,6 @@ import org.apache.ignite.configuration.MemoryConfiguration;
import org.apache.ignite.configuration.MemoryPolicyConfiguration;
import org.apache.ignite.configuration.NearCacheConfiguration;
import org.apache.ignite.configuration.TransactionConfiguration;
-import org.apache.ignite.internal.binary.BinaryArrayIdentityResolver;
-import org.apache.ignite.internal.binary.BinaryIdentityResolver;
import org.apache.ignite.internal.binary.BinaryRawReaderEx;
import org.apache.ignite.internal.binary.BinaryRawWriterEx;
import org.apache.ignite.internal.processors.platform.cache.affinity.PlatformAffinityFunction;
@@ -1196,40 +1194,6 @@ public class PlatformConfigurationUtils {
w.writeInt(e == null ? def.ordinal() : e.ordinal());
}
- /**
- * Reads resolver
- *
- * @param r Reader.
- * @return Resolver.
- */
- private static BinaryIdentityResolver readBinaryIdentityResolver(BinaryRawReader r) {
- int type = r.readByte();
-
- switch (type) {
- case 0:
- return null;
-
- case 1:
- return new BinaryArrayIdentityResolver();
- default:
- assert false;
- return null;
- }
- }
-
- /**
- * Writes the resolver.
- *
- * @param w Writer.
- * @param resolver Resolver.
- */
- private static void writeBinaryIdentityResolver(BinaryRawWriter w, BinaryIdentityResolver resolver) {
- if (resolver instanceof BinaryArrayIdentityResolver)
- w.writeByte((byte)1);
- else
- w.writeByte((byte)0);
- }
-
/**
* Reads the plugin configuration.
*
@@ -1353,7 +1317,7 @@ public class PlatformConfigurationUtils {
.setEmptyPagesPoolSize(in.readInt())
.setMetricsEnabled(in.readBoolean())
.setSubIntervals(in.readInt())
- .setRateTimeInterval((int) (in.readLong() / 1000));
+ .setRateTimeInterval(in.readLong());
plcs[i] = cfg;
}
@@ -1399,7 +1363,7 @@ public class PlatformConfigurationUtils {
w.writeInt(plc.getEmptyPagesPoolSize());
w.writeBoolean(plc.isMetricsEnabled());
w.writeInt(plc.getSubIntervals());
- w.writeLong(plc.getRateTimeInterval() * 1000);
+ w.writeLong(plc.getRateTimeInterval());
}
}
else {
