Package org.apache.activemq.store.jdbc
Class DataSourceServiceSupport
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.broker.LockableServiceSupport
org.apache.activemq.store.jdbc.DataSourceServiceSupport
- All Implemented Interfaces:
BrokerServiceAware,Lockable,org.apache.activemq.Service
- Direct Known Subclasses:
JDBCPersistenceAdapter
A helper class which provides a factory method to create a default
{@link DataSource) if one is not provided.
-
Field Summary
Fields inherited from class org.apache.activemq.broker.LockableServiceSupport
brokerService, clockDaemon -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseDataSource(DataSource dataSource) static DataSourcecreateDataSource(String homeDir) static DataSourcecreateDataSource(String homeDir, String dbName) voidsetDataDirectory(String dataDirectory) voidsetDataDirectoryFile(File dataDirectory) voidsetDataSource(DataSource dataSource) static voidshutdownDefaultDataSource(DataSource dataSource) toString()Methods inherited from class org.apache.activemq.broker.LockableServiceSupport
getBrokerService, getLocker, getLockKeepAlivePeriod, getScheduledThreadPoolExecutor, init, isStopOnError, isUseLock, keepLockAlive, postStop, preStart, setBrokerService, setLocker, setLockKeepAlivePeriod, setScheduledThreadPoolExecutor, setStopOnError, setUseLock, stopBrokerMethods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, doStart, doStop, isStarted, isStopped, isStopping, removeServiceListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.broker.Lockable
createDefaultLocker
-
Constructor Details
-
DataSourceServiceSupport
public DataSourceServiceSupport() -
DataSourceServiceSupport
-
-
Method Details
-
getDataDirectoryFile
-
setDataDirectoryFile
-
getDataDirectory
-
setDataDirectory
-
getDataSource
- Throws:
IOException
-
closeDataSource
-
setDataSource
-
createDataSource
- Throws:
IOException
-
createDataSource
- Throws:
IOException
-
shutdownDefaultDataSource
-
toString
-