mirror of https://github.com/apache/activemq.git
remove unused method
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@636733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5288e0d2e7
commit
4a136864f1
|
@ -207,29 +207,7 @@ public class HashIndex implements Index, HashIndexMBean {
|
|||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void dump() throws IOException {
|
||||
long offset = 0;
|
||||
readBuffer = new byte[pageSize];
|
||||
dataIn = new DataByteArrayInputStream();
|
||||
dataOut = new DataByteArrayOutputStream(pageSize);
|
||||
int count = 0;
|
||||
while ((offset + pageSize) <= indexFile.length()) {
|
||||
indexFile.seek(offset);
|
||||
HashPage page = getFullPage(offset);
|
||||
if (page.isActive()) {
|
||||
|
||||
for (HashEntry entry : page.getEntries()) {
|
||||
count++;
|
||||
System.out.println("PAGE( " + count + ") " + page.getId() + ": " + entry);
|
||||
}
|
||||
}
|
||||
offset += pageSize;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public synchronized void unload() throws IOException {
|
||||
if (loaded.compareAndSet(true, false)) {
|
||||
|
|
Loading…
Reference in New Issue