diff --git a/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java b/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java index 8a66c38d87..b690d90fb4 100644 --- a/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java +++ b/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBPersistenceAdapter.java @@ -193,7 +193,7 @@ public class KahaDBPersistenceAdapter implements PersistenceAdapter { * Get the journalMaxFileLength * @return the journalMaxFileLength */ - public long getJournalMaxFileLength() { + public int getJournalMaxFileLength() { return this.letter.getJournalMaxFileLength(); } @@ -204,7 +204,7 @@ public class KahaDBPersistenceAdapter implements PersistenceAdapter { * * @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.MemoryPropertyEditor" */ - public void setJournalMaxFileLength(long journalMaxFileLength) { + public void setJournalMaxFileLength(int journalMaxFileLength) { this.letter.setJournalMaxFileLength(journalMaxFileLength); } diff --git a/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java b/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java index 53a7788ae1..35b296cc88 100644 --- a/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java +++ b/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java @@ -141,7 +141,7 @@ public class MessageDatabase { protected boolean enableJournalDiskSyncs=true; long checkpointInterval = 5*1000; long cleanupInterval = 30*1000; - long journalMaxFileLength = Journal.DEFAULT_MAX_FILE_LENGTH; + int journalMaxFileLength = Journal.DEFAULT_MAX_FILE_LENGTH; boolean enableIndexWriteAsync = false; int setIndexWriteBatchSize = PageFile.DEFAULT_WRITE_BATCH_SIZE; @@ -1396,11 +1396,11 @@ public class MessageDatabase { this.cleanupInterval = cleanupInterval; } - public void setJournalMaxFileLength(long journalMaxFileLength) { + public void setJournalMaxFileLength(int journalMaxFileLength) { this.journalMaxFileLength = journalMaxFileLength; } - public long getJournalMaxFileLength() { + public int getJournalMaxFileLength() { return journalMaxFileLength; } diff --git a/kahadb/src/main/java/org/apache/kahadb/journal/DataFile.java b/kahadb/src/main/java/org/apache/kahadb/journal/DataFile.java index 3ed65850d5..42c09c5f94 100644 --- a/kahadb/src/main/java/org/apache/kahadb/journal/DataFile.java +++ b/kahadb/src/main/java/org/apache/kahadb/journal/DataFile.java @@ -32,9 +32,9 @@ public class DataFile extends LinkedNode implements Comparable implements Comparable