Class PListStoreImpl
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.store.kahadb.plist.PListStoreImpl
- All Implemented Interfaces:
Runnable,BrokerServiceAware,org.apache.activemq.Service,JournaledStore,PListStore
public class PListStoreImpl
extends ServiceSupport
implements BrokerServiceAware, Runnable, PListStore, JournaledStore
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanupDirectory(File dir) protected voiddoStart()protected voiddoStop(ServiceStopper stopper) longprotected Fileintbooleanintintintintprotected voidbooleanbooleanbooleanbooleanremovePList(String name) voidrun()voidsetBrokerService(BrokerService brokerService) voidsetCleanupInterval(long cleanupInterval) voidsetDirectory(File directory) voidsetEnableIndexWriteAsync(boolean enableIndexWriteAsync) voidsetFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked) voidsetIndexCacheSize(int indexCacheSize) voidsetIndexDirectory(File indexDirectory) voidsetIndexEnablePageCaching(boolean indexEnablePageCaching) voidsetIndexPageSize(int indexPageSize) voidsetIndexWriteBatchSize(int indexWriteBatchSize) voidsetJournalMaxFileLength(int journalMaxFileLength) voidsetJournalMaxWriteBatchSize(int journalMaxWriteBatchSize) voidsetLazyInit(boolean lazyInit) longsize()toString()Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.Service
start, stop
-
Constructor Details
-
PListStoreImpl
public PListStoreImpl()
-
-
Method Details
-
getIndexLock
-
setBrokerService
- Specified by:
setBrokerServicein interfaceBrokerServiceAware
-
getIndexPageSize
public int getIndexPageSize() -
getIndexCacheSize
public int getIndexCacheSize() -
getIndexWriteBatchSize
public int getIndexWriteBatchSize() -
setIndexPageSize
public void setIndexPageSize(int indexPageSize) -
setIndexCacheSize
public void setIndexCacheSize(int indexCacheSize) -
setIndexWriteBatchSize
public void setIndexWriteBatchSize(int indexWriteBatchSize) -
getIndexEnablePageCaching
public boolean getIndexEnablePageCaching() -
setIndexEnablePageCaching
public void setIndexEnablePageCaching(boolean indexEnablePageCaching) -
getJournal
-
getDirectory
- Specified by:
getDirectoryin interfacePListStore
-
setDirectory
- Specified by:
setDirectoryin interfacePListStore
-
getIndexDirectory
-
setIndexDirectory
-
size
public long size()- Specified by:
sizein interfacePListStore
-
getPList
- Specified by:
getPListin interfacePListStore- Throws:
Exception
-
removePList
- Specified by:
removePListin interfacePListStore- Throws:
Exception
-
intialize
- Throws:
Exception
-
getDefaultDirectory
-
cleanupDirectory
-
doStart
- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
doStop
- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
run
public void run() -
isFailIfDatabaseIsLocked
public boolean isFailIfDatabaseIsLocked() -
setFailIfDatabaseIsLocked
public void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked) -
getJournalMaxFileLength
public int getJournalMaxFileLength()- Specified by:
getJournalMaxFileLengthin interfaceJournaledStore
-
setJournalMaxFileLength
public void setJournalMaxFileLength(int journalMaxFileLength) -
getJournalMaxWriteBatchSize
public int getJournalMaxWriteBatchSize() -
setJournalMaxWriteBatchSize
public void setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize) -
isEnableIndexWriteAsync
public boolean isEnableIndexWriteAsync() -
setEnableIndexWriteAsync
public void setEnableIndexWriteAsync(boolean enableIndexWriteAsync) -
getCleanupInterval
public long getCleanupInterval() -
setCleanupInterval
public void setCleanupInterval(long cleanupInterval) -
isLazyInit
public boolean isLazyInit() -
setLazyInit
public void setLazyInit(boolean lazyInit) -
toString
-