Repository navigation
Add support for PageFile free page truncation #2233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1092c3f
0d8ef4e
1e3fabe
85f44dd
58adcdc
36f7280
18c9c38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,7 @@ | |
| import org.apache.activemq.store.kahadb.data.KahaXATransactionId; | ||
| import org.apache.activemq.store.kahadb.disk.journal.DataFileFactory; | ||
| import org.apache.activemq.store.kahadb.disk.journal.Journal.JournalDiskSyncStrategy; | ||
| import org.apache.activemq.store.kahadb.disk.page.PageFile.PageFileCompactionStrategy; | ||
| import org.apache.activemq.usage.SystemUsage; | ||
| import org.apache.activemq.util.ServiceStopper; | ||
|
|
||
|
|
@@ -462,7 +463,7 @@ | |
| * @deprecated use {@link #getJournalDiskSyncStrategy} instead | ||
| * @return the enableJournalDiskSyncs | ||
| */ | ||
| public boolean isEnableJournalDiskSyncs() { | ||
|
Check warning on line 466 in activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java
|
||
| return this.letter.isEnableJournalDiskSyncs(); | ||
| } | ||
|
|
||
|
|
@@ -473,7 +474,7 @@ | |
| * @param enableJournalDiskSyncs | ||
| * the enableJournalDiskSyncs to set | ||
| */ | ||
| public void setEnableJournalDiskSyncs(boolean enableJournalDiskSyncs) { | ||
|
Check warning on line 477 in activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java
|
||
| this.letter.setEnableJournalDiskSyncs(enableJournalDiskSyncs); | ||
| } | ||
|
|
||
|
|
@@ -774,6 +775,30 @@ | |
| letter.setEnableSubscriptionStatistics(enableSubscriptionStatistics); | ||
| } | ||
|
|
||
| public float getMinFreePageCompactionRatio() { | ||
| return letter.getMinFreePageCompactionRatio(); | ||
| } | ||
|
|
||
| public void setMinFreePageCompactionRatio(float minFreePageCompactionRatio) { | ||
| letter.setMinFreePageCompactionRatio(minFreePageCompactionRatio); | ||
| } | ||
|
|
||
| public float getMaxFreePageCompactionRatio() { | ||
| return letter.getMaxFreePageCompactionRatio(); | ||
| } | ||
|
|
||
| public void setMaxFreePageCompactionRatio(float maxFreePageCompactionRatio) { | ||
| letter.setMaxFreePageCompactionRatio(maxFreePageCompactionRatio); | ||
| } | ||
|
|
||
| public PageFileCompactionStrategy getIndexCompactionStrategy() { | ||
| return letter.getIndexCompactionStrategy(); | ||
| } | ||
|
|
||
| public void setIndexCompactionStrategy(PageFileCompactionStrategy indexCompactionStrategy) { | ||
| letter.setIndexCompactionStrategy(indexCompactionStrategy); | ||
| } | ||
|
|
||
| public KahaDBStore getStore() { | ||
| return letter; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.