public class PListStore extends ServiceSupport implements BrokerServiceAware, java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
protected class |
PListStore.MetaData |
Constructor and Description |
---|
PListStore() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
long |
getCleanupInterval() |
java.io.File |
getDirectory() |
int |
getIndexCacheSize() |
boolean |
getIndexEnablePageCaching() |
java.lang.Object |
getIndexLock() |
int |
getIndexPageSize() |
int |
getIndexWriteBatchSize() |
Journal |
getJournal() |
int |
getJournalMaxFileLength() |
int |
getJournalMaxWriteBatchSize() |
PList |
getPList(java.lang.String name) |
protected void |
intialize() |
boolean |
isEnableIndexWriteAsync() |
boolean |
isFailIfDatabaseIsLocked() |
boolean |
isLazyInit() |
boolean |
removePList(java.lang.String name) |
void |
run() |
void |
setBrokerService(BrokerService brokerService) |
void |
setCleanupInterval(long cleanupInterval) |
void |
setDirectory(java.io.File directory) |
void |
setEnableIndexWriteAsync(boolean enableIndexWriteAsync) |
void |
setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked) |
void |
setIndexCacheSize(int indexCacheSize) |
void |
setIndexEnablePageCaching(boolean indexEnablePageCaching) |
void |
setIndexPageSize(int indexPageSize) |
void |
setIndexWriteBatchSize(int indexWriteBatchSize) |
void |
setJournalMaxFileLength(int journalMaxFileLength) |
void |
setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize) |
void |
setLazyInit(boolean lazyInit) |
long |
size() |
java.lang.String |
toString() |
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stop
public PListStore()
public java.lang.Object getIndexLock()
public void setBrokerService(BrokerService brokerService)
setBrokerService
in interface BrokerServiceAware
public int getIndexPageSize()
public int getIndexCacheSize()
public int getIndexWriteBatchSize()
public void setIndexPageSize(int indexPageSize)
public void setIndexCacheSize(int indexCacheSize)
public void setIndexWriteBatchSize(int indexWriteBatchSize)
public boolean getIndexEnablePageCaching()
public void setIndexEnablePageCaching(boolean indexEnablePageCaching)
public Journal getJournal()
public java.io.File getDirectory()
public void setDirectory(java.io.File directory)
public long size()
public PList getPList(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public boolean removePList(java.lang.String name) throws java.lang.Exception
java.lang.Exception
protected void intialize() throws java.lang.Exception
java.lang.Exception
protected void doStart() throws java.lang.Exception
doStart
in class ServiceSupport
java.lang.Exception
protected void doStop(ServiceStopper stopper) throws java.lang.Exception
doStop
in class ServiceSupport
java.lang.Exception
public void run()
run
in interface java.lang.Runnable
public boolean isFailIfDatabaseIsLocked()
public void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked)
public int getJournalMaxFileLength()
public void setJournalMaxFileLength(int journalMaxFileLength)
public int getJournalMaxWriteBatchSize()
public void setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize)
public boolean isEnableIndexWriteAsync()
public void setEnableIndexWriteAsync(boolean enableIndexWriteAsync)
public long getCleanupInterval()
public void setCleanupInterval(long cleanupInterval)
public boolean isLazyInit()
public void setLazyInit(boolean lazyInit)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2017. All Rights Reserved.