org.apache.activemq.store.kahadb.plist
Class PListStore

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.store.kahadb.plist.PListStore
All Implemented Interfaces:
Service

public class PListStore
extends ServiceSupport


Nested Class Summary
protected  class PListStore.MetaData
           
 
Constructor Summary
PListStore()
           
 
Method Summary
protected  void doStart()
           
protected  void doStop(ServiceStopper stopper)
           
 java.io.File getDirectory()
           
 java.lang.Object getIndexLock()
           
 int getJournalMaxFileLength()
           
 int getJournalMaxWriteBatchSize()
           
 PList getPList(java.lang.String name)
           
protected  void intialize()
           
 boolean isEnableIndexWriteAsync()
           
 boolean isFailIfDatabaseIsLocked()
           
 boolean removePList(java.lang.String name)
           
 void setDirectory(java.io.File directory)
           
 void setEnableIndexWriteAsync(boolean enableIndexWriteAsync)
           
 void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked)
           
 void setJournalMaxFileLength(int journalMaxFileLength)
           
 void setJournalMaxWriteBatchSize(int journalMaxWriteBatchSize)
           
 long size()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PListStore

public PListStore()
Method Detail

getIndexLock

public java.lang.Object getIndexLock()

getDirectory

public java.io.File getDirectory()

setDirectory

public void setDirectory(java.io.File directory)

size

public long size()

getPList

public PList getPList(java.lang.String name)
               throws java.lang.Exception
Throws:
java.lang.Exception

removePList

public boolean removePList(java.lang.String name)
                    throws java.lang.Exception
Throws:
java.lang.Exception

intialize

protected void intialize()
                  throws java.lang.Exception
Throws:
java.lang.Exception

doStart

protected void doStart()
                throws java.lang.Exception
Specified by:
doStart in class ServiceSupport
Throws:
java.lang.Exception

doStop

protected void doStop(ServiceStopper stopper)
               throws java.lang.Exception
Specified by:
doStop in class ServiceSupport
Throws:
java.lang.Exception

isFailIfDatabaseIsLocked

public boolean isFailIfDatabaseIsLocked()

setFailIfDatabaseIsLocked

public void setFailIfDatabaseIsLocked(boolean failIfDatabaseIsLocked)

getJournalMaxFileLength

public int getJournalMaxFileLength()

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)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2012. All Rights Reserved.