summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-17 16:33:04 (EDT)
committerEike Stepper2007-09-17 16:33:04 (EDT)
commit819aca26025c719f454712df41b9febcb8e9f2cc (patch)
tree9e0be9c1b43e0d0eaa33644e08a0bb0cc716c13b
parent410cfefd09aadfe7b9763ac739af09eaa37c27d8 (diff)
downloadcdo-819aca26025c719f454712df41b9febcb8e9f2cc.zip
cdo-819aca26025c719f454712df41b9febcb8e9f2cc.tar.gz
cdo-819aca26025c719f454712df41b9febcb8e9f2cc.tar.bz2
[203538] Limit memory consumption in CDORevisionResolverImpl
https://bugs.eclipse.org/bugs/show_bug.cgi?id=203538
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/cache/CacheMonitor.java6
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java8
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java8
3 files changed, 12 insertions, 10 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/cache/CacheMonitor.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/cache/CacheMonitor.java
index 4a9bc72..042fd20 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/cache/CacheMonitor.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/internal/util/cache/CacheMonitor.java
@@ -151,14 +151,16 @@ public class CacheMonitor extends Worker implements ICacheMonitor
break;
case RED:
- handleRedCondition();
+ handleConditionRED();
context.nextWork(pauseRED);
break;
}
}
- protected void handleRedCondition()
+ protected void handleConditionRED()
{
+ // TODO Implement method CacheMonitor.handleConditionRED()
+ throw new UnsupportedOperationException("Not yet implemented");
}
/**
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java
index 5d9c260..66805fa 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheProbe.java
@@ -22,12 +22,4 @@ public interface ICacheProbe
public void elementEvicted(int elementSize);
public void elementReconstructed(long reconstructionTime);
-
- public int getElementCount();
-
- public long getCacheSize();
-
- public long getAverageElementSize();
-
- public long getReconstructionCost();
}
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java
index 7dbb386..ac48580 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/cache/ICacheRegistration.java
@@ -20,4 +20,12 @@ public interface ICacheRegistration extends ICacheProbe
public ICache getCache();
public void dispose();
+
+ public int getElementCount();
+
+ public long getCacheSize();
+
+ public long getAverageElementSize();
+
+ public long getReconstructionCost();
}