org.apache.activemq.store.kahadb.plist
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
| Methods inherited from interface org.apache.activemq.Service |
start, stop |
PListStoreImpl
public PListStoreImpl()
getIndexLock
public Object getIndexLock()
setBrokerService
public void setBrokerService(BrokerService brokerService)
- Specified by:
setBrokerService in interface 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
public Journal getJournal()
getDirectory
public File getDirectory()
- Specified by:
getDirectory in interface PListStore
setDirectory
public void setDirectory(File directory)
- Specified by:
setDirectory in interface PListStore
size
public long size()
- Specified by:
size in interface PListStore
getPList
public PListImpl getPList(String name)
throws Exception
- Specified by:
getPList in interface PListStore
- Throws:
Exception
removePList
public boolean removePList(String name)
throws Exception
- Specified by:
removePList in interface PListStore
- Throws:
Exception
intialize
protected void intialize()
throws Exception
- Throws:
Exception
doStart
protected void doStart()
throws Exception
- Specified by:
doStart in class ServiceSupport
- Throws:
Exception
doStop
protected void doStop(ServiceStopper stopper)
throws Exception
- Specified by:
doStop in class ServiceSupport
- Throws:
Exception
run
public void run()
- Specified by:
run in interface Runnable
isFailIfDatabaseIsLocked
public boolean isFailIfDatabaseIsLocked()
setFailIfDatabaseIsLocked
public void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked)
getJournalMaxFileLength
public int getJournalMaxFileLength()
- Specified by:
getJournalMaxFileLength in interface 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
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.