public class PListStore extends ServiceSupport implements BrokerServiceAware, 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() |
File |
getDirectory() |
int |
getIndexCacheSize() |
boolean |
getIndexEnablePageCaching() |
Object |
getIndexLock() |
int |
getIndexPageSize() |
int |
getIndexWriteBatchSize() |
Journal |
getJournal() |
int |
getJournalMaxFileLength() |
int |
getJournalMaxWriteBatchSize() |
PList |
getPList(String name) |
protected void |
intialize() |
boolean |
isEnableIndexWriteAsync() |
boolean |
isFailIfDatabaseIsLocked() |
boolean |
isLazyInit() |
boolean |
removePList(String name) |
void |
run() |
void |
setBrokerService(BrokerService brokerService) |
void |
setCleanupInterval(long cleanupInterval) |
void |
setDirectory(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() |
String |
toString() |
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stop
public PListStore()
public 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 File getDirectory()
public void setDirectory(File directory)
public long size()
public boolean removePList(String name) throws Exception
Exception
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop(ServiceStopper stopper) throws Exception
doStop
in class ServiceSupport
Exception
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)
Copyright © 2005–2014. All rights reserved.