mirror of https://github.com/apache/activemq.git
file size limit should be a long
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@802709 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d4d0e4679
commit
880f3d6811
|
@ -193,7 +193,7 @@ public class KahaDBPersistenceAdapter implements PersistenceAdapter {
|
||||||
* Get the journalMaxFileLength
|
* Get the journalMaxFileLength
|
||||||
* @return the journalMaxFileLength
|
* @return the journalMaxFileLength
|
||||||
*/
|
*/
|
||||||
public int getJournalMaxFileLength() {
|
public long getJournalMaxFileLength() {
|
||||||
return this.letter.getJournalMaxFileLength();
|
return this.letter.getJournalMaxFileLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ public class KahaDBPersistenceAdapter implements PersistenceAdapter {
|
||||||
*
|
*
|
||||||
* @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.MemoryPropertyEditor"
|
* @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.MemoryPropertyEditor"
|
||||||
*/
|
*/
|
||||||
public void setJournalMaxFileLength(int journalMaxFileLength) {
|
public void setJournalMaxFileLength(long journalMaxFileLength) {
|
||||||
this.letter.setJournalMaxFileLength(journalMaxFileLength);
|
this.letter.setJournalMaxFileLength(journalMaxFileLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ public class MessageDatabase {
|
||||||
protected boolean enableJournalDiskSyncs=true;
|
protected boolean enableJournalDiskSyncs=true;
|
||||||
long checkpointInterval = 5*1000;
|
long checkpointInterval = 5*1000;
|
||||||
long cleanupInterval = 30*1000;
|
long cleanupInterval = 30*1000;
|
||||||
int journalMaxFileLength = Journal.DEFAULT_MAX_FILE_LENGTH;
|
long journalMaxFileLength = Journal.DEFAULT_MAX_FILE_LENGTH;
|
||||||
boolean enableIndexWriteAsync = false;
|
boolean enableIndexWriteAsync = false;
|
||||||
int setIndexWriteBatchSize = PageFile.DEFAULT_WRITE_BATCH_SIZE;
|
int setIndexWriteBatchSize = PageFile.DEFAULT_WRITE_BATCH_SIZE;
|
||||||
|
|
||||||
|
@ -1396,11 +1396,11 @@ public class MessageDatabase {
|
||||||
this.cleanupInterval = cleanupInterval;
|
this.cleanupInterval = cleanupInterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJournalMaxFileLength(int journalMaxFileLength) {
|
public void setJournalMaxFileLength(long journalMaxFileLength) {
|
||||||
this.journalMaxFileLength = journalMaxFileLength;
|
this.journalMaxFileLength = journalMaxFileLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getJournalMaxFileLength() {
|
public long getJournalMaxFileLength() {
|
||||||
return journalMaxFileLength;
|
return journalMaxFileLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,9 @@ public class DataFile extends LinkedNode<DataFile> implements Comparable<DataFil
|
||||||
|
|
||||||
protected final File file;
|
protected final File file;
|
||||||
protected final Integer dataFileId;
|
protected final Integer dataFileId;
|
||||||
protected int length;
|
protected long length;
|
||||||
|
|
||||||
DataFile(File file, int number, int preferedSize) {
|
DataFile(File file, int number, long preferedSize) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
this.dataFileId = Integer.valueOf(number);
|
this.dataFileId = Integer.valueOf(number);
|
||||||
length = (int)(file.exists() ? file.length() : 0);
|
length = (int)(file.exists() ? file.length() : 0);
|
||||||
|
@ -48,11 +48,11 @@ public class DataFile extends LinkedNode<DataFile> implements Comparable<DataFil
|
||||||
return dataFileId;
|
return dataFileId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized int getLength() {
|
public synchronized long getLength() {
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLength(int length) {
|
public void setLength(long length) {
|
||||||
this.length = length;
|
this.length = length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,8 +80,8 @@ public class Journal {
|
||||||
protected String fileSuffix = DEFAULT_FILE_SUFFIX;
|
protected String fileSuffix = DEFAULT_FILE_SUFFIX;
|
||||||
protected boolean started;
|
protected boolean started;
|
||||||
|
|
||||||
protected int maxFileLength = DEFAULT_MAX_FILE_LENGTH;
|
protected long maxFileLength = DEFAULT_MAX_FILE_LENGTH;
|
||||||
protected int preferedFileLength = DEFAULT_MAX_FILE_LENGTH - PREFERED_DIFF;
|
protected long preferedFileLength = DEFAULT_MAX_FILE_LENGTH - PREFERED_DIFF;
|
||||||
|
|
||||||
protected DataFileAppender appender;
|
protected DataFileAppender appender;
|
||||||
protected DataFileAccessorPool accessorPool;
|
protected DataFileAccessorPool accessorPool;
|
||||||
|
@ -357,14 +357,14 @@ public class Journal {
|
||||||
/**
|
/**
|
||||||
* @return the maxFileLength
|
* @return the maxFileLength
|
||||||
*/
|
*/
|
||||||
public int getMaxFileLength() {
|
public long getMaxFileLength() {
|
||||||
return maxFileLength;
|
return maxFileLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maxFileLength the maxFileLength to set
|
* @param maxFileLength the maxFileLength to set
|
||||||
*/
|
*/
|
||||||
public void setMaxFileLength(int maxFileLength) {
|
public void setMaxFileLength(long maxFileLength) {
|
||||||
this.maxFileLength = maxFileLength;
|
this.maxFileLength = maxFileLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue