Class JournalPersistenceAdapterFactory
- java.lang.Object
-
- org.apache.activemq.util.ServiceSupport
-
- org.apache.activemq.broker.LockableServiceSupport
-
- org.apache.activemq.store.jdbc.DataSourceServiceSupport
-
- org.apache.activemq.store.journal.JournalPersistenceAdapterFactory
-
- All Implemented Interfaces:
BrokerServiceAware,Lockable,org.apache.activemq.Service,PersistenceAdapterFactory
@Deprecated(forRemoval=true) public class JournalPersistenceAdapterFactory extends DataSourceServiceSupport implements PersistenceAdapterFactory
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated for removal as this PersistenceAdapter is no longer used and replaced by the JDBCPersistenceAdapter.Factory class that can create PersistenceAdapter objects.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.broker.LockableServiceSupport
brokerService, clockDaemon
-
-
Constructor Summary
Constructors Constructor Description JournalPersistenceAdapterFactory()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LockercreateDefaultLocker()Deprecated, for removal: This API element is subject to removal in a future version.protected voidcreateJournal()Deprecated, for removal: This API element is subject to removal in a future version.PersistenceAdaptercreatePersistenceAdapter()Deprecated, for removal: This API element is subject to removal in a future version.protected voiddoStart()Deprecated, for removal: This API element is subject to removal in a future version.protected voiddoStop(ServiceStopper stopper)Deprecated, for removal: This API element is subject to removal in a future version.JDBCAdaptergetAdapter()Deprecated, for removal: This API element is subject to removal in a future version.longgetCheckpointInterval()Deprecated, for removal: This API element is subject to removal in a future version.JDBCPersistenceAdaptergetJdbcAdapter()Deprecated, for removal: This API element is subject to removal in a future version.org.apache.activeio.journal.JournalgetJournal()Deprecated, for removal: This API element is subject to removal in a future version.FilegetJournalArchiveDirectory()Deprecated, for removal: This API element is subject to removal in a future version.intgetJournalLogFiles()Deprecated, for removal: This API element is subject to removal in a future version.intgetJournalLogFileSize()Deprecated, for removal: This API element is subject to removal in a future version.intgetJournalThreadPriority()Deprecated, for removal: This API element is subject to removal in a future version.StatementsgetStatements()Deprecated, for removal: This API element is subject to removal in a future version.org.apache.activemq.thread.TaskRunnerFactorygetTaskRunnerFactory()Deprecated, for removal: This API element is subject to removal in a future version.voidinit()Deprecated, for removal: This API element is subject to removal in a future version.booleanisCreateTablesOnStartup()Deprecated, for removal: This API element is subject to removal in a future version.booleanisUseDedicatedTaskRunner()Deprecated, for removal: This API element is subject to removal in a future version.booleanisUseJournal()Deprecated, for removal: This API element is subject to removal in a future version.booleanisUseQuickJournal()Deprecated, for removal: This API element is subject to removal in a future version.voidsetAdapter(JDBCAdapter adapter)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCheckpointInterval(long checkpointInterval)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCreateTablesOnStartup(boolean createTablesOnStartup)Deprecated, for removal: This API element is subject to removal in a future version.Sets whether or not tables are created on startupvoidsetJdbcAdapter(JDBCPersistenceAdapter jdbcAdapter)Deprecated, for removal: This API element is subject to removal in a future version.voidsetJournal(org.apache.activeio.journal.Journal journal)Deprecated, for removal: This API element is subject to removal in a future version.voidsetJournalArchiveDirectory(File journalArchiveDirectory)Deprecated, for removal: This API element is subject to removal in a future version.voidsetJournalLogFiles(int journalLogFiles)Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of journal log files to usevoidsetJournalLogFileSize(int journalLogFileSize)Deprecated, for removal: This API element is subject to removal in a future version.Sets the size of the journal log files When set using Xbean, values of the form "20 Mb", "1024kb", and "1g" can be usedvoidsetJournalThreadPriority(int journalThreadPriority)Deprecated, for removal: This API element is subject to removal in a future version.Sets the thread priority of the journal threadvoidsetStatements(Statements statements)Deprecated, for removal: This API element is subject to removal in a future version.voidsetTaskRunnerFactory(org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUseDatabaseLock(boolean useDatabaseLock)Deprecated, for removal: This API element is subject to removal in a future version.Sets whether or not an exclusive database lock should be used to enable JDBC Master/Slave.voidsetUseDedicatedTaskRunner(boolean useDedicatedTaskRunner)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUseJournal(boolean useJournal)Deprecated, for removal: This API element is subject to removal in a future version.Enables or disables the use of the journal.voidsetUseQuickJournal(boolean useQuickJournal)Deprecated, for removal: This API element is subject to removal in a future version.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.DataSourceServiceSupport
closeDataSource, createDataSource, createDataSource, getDataDirectory, getDataDirectoryFile, getDataSource, setDataDirectory, setDataDirectoryFile, setDataSource, shutdownDefaultDataSource, toString
-
Methods inherited from class org.apache.activemq.broker.LockableServiceSupport
getBrokerService, getLocker, getLockKeepAlivePeriod, getScheduledThreadPoolExecutor, isStopOnError, isUseLock, keepLockAlive, postStop, preStart, setBrokerService, setLocker, setLockKeepAlivePeriod, setScheduledThreadPoolExecutor, setStopOnError, setUseLock, stopBroker
-
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stop
-
-
-
-
Method Detail
-
createPersistenceAdapter
public PersistenceAdapter createPersistenceAdapter() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createPersistenceAdapterin interfacePersistenceAdapterFactory- Throws:
IOException
-
getJournalLogFiles
public int getJournalLogFiles()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setJournalLogFiles
public void setJournalLogFiles(int journalLogFiles)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of journal log files to use
-
getJournalLogFileSize
public int getJournalLogFileSize()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setJournalLogFileSize
public void setJournalLogFileSize(int journalLogFileSize)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the size of the journal log files When set using Xbean, values of the form "20 Mb", "1024kb", and "1g" can be used
-
getJdbcAdapter
public JDBCPersistenceAdapter getJdbcAdapter()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setJdbcAdapter
public void setJdbcAdapter(JDBCPersistenceAdapter jdbcAdapter)
Deprecated, for removal: This API element is subject to removal in a future version.
-
isUseJournal
public boolean isUseJournal()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCheckpointInterval
public long getCheckpointInterval()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCheckpointInterval
public void setCheckpointInterval(long checkpointInterval)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUseJournal
public void setUseJournal(boolean useJournal)
Deprecated, for removal: This API element is subject to removal in a future version.Enables or disables the use of the journal. The default is to use the journal- Parameters:
useJournal-
-
isUseDedicatedTaskRunner
public boolean isUseDedicatedTaskRunner()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUseDedicatedTaskRunner
public void setUseDedicatedTaskRunner(boolean useDedicatedTaskRunner)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getTaskRunnerFactory
public org.apache.activemq.thread.TaskRunnerFactory getTaskRunnerFactory()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setTaskRunnerFactory
public void setTaskRunnerFactory(org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getJournal
public org.apache.activeio.journal.Journal getJournal() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
setJournal
public void setJournal(org.apache.activeio.journal.Journal journal)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getJournalArchiveDirectory
public File getJournalArchiveDirectory()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setJournalArchiveDirectory
public void setJournalArchiveDirectory(File journalArchiveDirectory)
Deprecated, for removal: This API element is subject to removal in a future version.
-
isUseQuickJournal
public boolean isUseQuickJournal()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUseQuickJournal
public void setUseQuickJournal(boolean useQuickJournal)
Deprecated, for removal: This API element is subject to removal in a future version.Enables or disables the use of quick journal, which keeps messages in the journal and just stores a reference to the messages in JDBC. Defaults to false so that messages actually reside long term in the JDBC database.
-
getAdapter
public JDBCAdapter getAdapter() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
setAdapter
public void setAdapter(JDBCAdapter adapter)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getStatements
public Statements getStatements()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setStatements
public void setStatements(Statements statements)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUseDatabaseLock
public void setUseDatabaseLock(boolean useDatabaseLock)
Deprecated, for removal: This API element is subject to removal in a future version.Sets whether or not an exclusive database lock should be used to enable JDBC Master/Slave. Enabled by default.
-
isCreateTablesOnStartup
public boolean isCreateTablesOnStartup()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCreateTablesOnStartup
public void setCreateTablesOnStartup(boolean createTablesOnStartup)
Deprecated, for removal: This API element is subject to removal in a future version.Sets whether or not tables are created on startup
-
getJournalThreadPriority
public int getJournalThreadPriority()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setJournalThreadPriority
public void setJournalThreadPriority(int journalThreadPriority)
Deprecated, for removal: This API element is subject to removal in a future version.Sets the thread priority of the journal thread
-
createJournal
protected void createJournal() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
createDefaultLocker
public Locker createDefaultLocker() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createDefaultLockerin interfaceLockable- Throws:
IOException
-
init
public void init() throws ExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
initin classLockableServiceSupport- Throws:
Exception
-
doStop
protected void doStop(ServiceStopper stopper) throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
doStart
protected void doStart() throws ExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
-