Class PListStoreImpl
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.store.kahadb.plist.PListStoreImpl
- All Implemented Interfaces:
Runnable,org.apache.activemq.broker.BrokerServiceAware,org.apache.activemq.Service,org.apache.activemq.store.JournaledStore,org.apache.activemq.store.PListStore
public class PListStoreImpl
extends org.apache.activemq.util.ServiceSupport
implements org.apache.activemq.broker.BrokerServiceAware, Runnable, org.apache.activemq.store.PListStore, org.apache.activemq.store.JournaledStore
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanupDirectory(File dir) protected voiddoStart()protected voiddoStop(org.apache.activemq.util.ServiceStopper stopper) longprotected Fileintbooleanintintintintprotected voidbooleanbooleanbooleanbooleanremovePList(String name) voidrun()voidsetBrokerService(org.apache.activemq.broker.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
public void setBrokerService(org.apache.activemq.broker.BrokerService brokerService) - Specified by:
setBrokerServicein interfaceorg.apache.activemq.broker.BrokerServiceAware
-
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 interfaceorg.apache.activemq.store.PListStore
-
setDirectory
- Specified by:
setDirectoryin interfaceorg.apache.activemq.store.PListStore
-
getIndexDirectory
-
setIndexDirectory
-
size
public long size()- Specified by:
sizein interfaceorg.apache.activemq.store.PListStore
-
getPList
- Specified by:
getPListin interfaceorg.apache.activemq.store.PListStore- Throws:
Exception
-
removePList
- Specified by:
removePListin interfaceorg.apache.activemq.store.PListStore- Throws:
Exception
-
intialize
- Throws:
Exception
-
getDefaultDirectory
-
cleanupDirectory
-
doStart
- Specified by:
doStartin classorg.apache.activemq.util.ServiceSupport- Throws:
Exception
-
doStop
- Specified by:
doStopin classorg.apache.activemq.util.ServiceSupport- Throws:
Exception
-
run
public void run() -
isFailIfDatabaseIsLocked
public boolean isFailIfDatabaseIsLocked() -
setFailIfDatabaseIsLocked
public void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked) -
getJournalMaxFileLength
public int getJournalMaxFileLength()- Specified by:
getJournalMaxFileLengthin interfaceorg.apache.activemq.store.JournaledStore
-
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
-