Permalink
Browse files

Added slabReassign to the API.

  • Loading branch information...
1 parent 0898832 commit d58cca980b0e50cc24523d095949b009768ad942 @dustin committed Oct 25, 2008
@@ -1278,6 +1278,23 @@ public boolean isDone() {
return flush(-1);
}
+ /**
+ * Move all of the items from one slab into another dynamically.
+ *
+ * <p><strong>Note:</strong> This is not an every day operation...
+ *
+ * <p>
+ * Blows away all the items in a slab class and moves its slabs to
+ * another class. This is only used by the "slabs reassign" command,
+ * for manual tweaking of memory allocation. It's disabled by default
+ * since it requires that all slabs be the same size (which can waste
+ * space for chunk size mantissas of other than 2.0).
+ * </p>
+ */
+ public boolean slabReassign(int from, int to) {
+ throw new UnsupportedOperationException();
+ }
+
private void logRunException(Exception e) {
if(shuttingDown) {
// There are a couple types of errors that occur during the
@@ -126,6 +126,8 @@ long decr(String key, int by, long def)
Future<Boolean> flush();
+ boolean slabReassign(int from, int to);
+
void shutdown();
boolean shutdown(long timeout, TimeUnit unit);

0 comments on commit d58cca9

Please sign in to comment.