|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.store.jdbc.DataSourceSupport
org.apache.activemq.store.DefaultPersistenceAdapterFactory
public class DefaultPersistenceAdapterFactory
Factory class that can create PersistenceAdapter objects.
Constructor Summary | |
---|---|
DefaultPersistenceAdapterFactory()
|
Method Summary | |
---|---|
protected void |
createJournal()
|
PersistenceAdapter |
createPersistenceAdapter()
Creates a persistence Adapter that can use a given directory to store it's data. |
JDBCAdapter |
getAdapter()
|
JDBCPersistenceAdapter |
getJdbcAdapter()
|
org.apache.activeio.journal.Journal |
getJournal()
|
File |
getJournalArchiveDirectory()
|
int |
getJournalLogFiles()
|
int |
getJournalLogFileSize()
|
int |
getJournalThreadPriority()
|
Statements |
getStatements()
|
TaskRunnerFactory |
getTaskRunnerFactory()
|
boolean |
isCreateTablesOnStartup()
|
boolean |
isUseDatabaseLock()
|
boolean |
isUseJournal()
|
boolean |
isUseQuickJournal()
|
void |
setAdapter(JDBCAdapter adapter)
|
void |
setCreateTablesOnStartup(boolean createTablesOnStartup)
Sets whether or not tables are created on startup |
void |
setJdbcAdapter(JDBCPersistenceAdapter jdbcAdapter)
|
void |
setJournal(org.apache.activeio.journal.Journal journal)
|
void |
setJournalArchiveDirectory(File journalArchiveDirectory)
|
void |
setJournalLogFiles(int journalLogFiles)
Sets the number of journal log files to use |
void |
setJournalLogFileSize(int journalLogFileSize)
Sets the size of the journal log files |
void |
setJournalThreadPriority(int journalThreadPriority)
Sets the thread priority of the journal thread |
void |
setStatements(Statements statements)
|
void |
setTaskRunnerFactory(TaskRunnerFactory taskRunnerFactory)
|
void |
setUseDatabaseLock(boolean useDatabaseLock)
Sets whether or not an exclusive database lock should be used to enable JDBC Master/Slave. |
void |
setUseJournal(boolean useJournal)
Enables or disables the use of the journal. |
void |
setUseQuickJournal(boolean useQuickJournal)
Enables or disables the use of quick journal, which keeps messages in the journal and just stores a reference to the messages in JDBC. |
Methods inherited from class org.apache.activemq.store.jdbc.DataSourceSupport |
---|
createDataSource, getDataDirectory, getDataDirectoryFile, getDataSource, setDataDirectory, setDataDirectoryFile, setDataSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPersistenceAdapterFactory()
Method Detail |
---|
public PersistenceAdapter createPersistenceAdapter() throws IOException
PersistenceAdapterFactory
createPersistenceAdapter
in interface PersistenceAdapterFactory
IOException
public int getJournalLogFiles()
public void setJournalLogFiles(int journalLogFiles)
public int getJournalLogFileSize()
public void setJournalLogFileSize(int journalLogFileSize)
public JDBCPersistenceAdapter getJdbcAdapter()
public void setJdbcAdapter(JDBCPersistenceAdapter jdbcAdapter)
public boolean isUseJournal()
public void setUseJournal(boolean useJournal)
useJournal
- public TaskRunnerFactory getTaskRunnerFactory()
public void setTaskRunnerFactory(TaskRunnerFactory taskRunnerFactory)
public org.apache.activeio.journal.Journal getJournal() throws IOException
IOException
public void setJournal(org.apache.activeio.journal.Journal journal)
public File getJournalArchiveDirectory()
public void setJournalArchiveDirectory(File journalArchiveDirectory)
public boolean isUseQuickJournal()
public void setUseQuickJournal(boolean useQuickJournal)
public JDBCAdapter getAdapter() throws IOException
IOException
public void setAdapter(JDBCAdapter adapter)
public Statements getStatements()
public void setStatements(Statements statements)
public boolean isUseDatabaseLock()
public void setUseDatabaseLock(boolean useDatabaseLock)
public boolean isCreateTablesOnStartup()
public void setCreateTablesOnStartup(boolean createTablesOnStartup)
public int getJournalThreadPriority()
public void setJournalThreadPriority(int journalThreadPriority)
protected void createJournal() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |