Class DBOption
- java.lang.Object
-
- org.apache.activemq.artemis.cli.commands.ActionAbstract
-
- org.apache.activemq.artemis.cli.commands.Configurable
-
- org.apache.activemq.artemis.cli.commands.tools.DataAbstract
-
- org.apache.activemq.artemis.cli.commands.tools.LockAbstract
-
- org.apache.activemq.artemis.cli.commands.tools.OptionalLocking
-
- org.apache.activemq.artemis.cli.commands.tools.DBOption
-
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
PrintData,RecoverMessages,XmlDataExporter
public class DBOption extends OptionalLocking
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.activemq.artemis.core.config.Configurationconfigprotected java.util.concurrent.ExecutorServiceexecutorprotected org.apache.activemq.artemis.utils.ExecutorFactoryexecutorFactoryprotected org.apache.activemq.artemis.core.paging.PagingManagerpagingmanagerprotected java.util.concurrent.ScheduledExecutorServicescheduledExecutorServiceprotected org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManagerstorageManager-
Fields inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
binding, journal, largeMessges, paging
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.Configurable
global
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description DBOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanup()java.lang.Objectexecute(ActionContext context)java.lang.StringgetJdbcBindings()java.lang.StringgetJdbcClassName()java.lang.StringgetJdbcLargeMessages()java.lang.StringgetJdbcMessages()java.lang.StringgetJdbcNodeManager()java.lang.StringgetJdbcPageStore()java.lang.StringgetJdbcURL()org.apache.activemq.artemis.core.config.ConfigurationgetParameterConfiguration()protected voidinitializeJournal(org.apache.activemq.artemis.core.config.Configuration configuration)booleanisJDBC()DBOptionsetJdbcBindings(java.lang.String jdbcBindings)DBOptionsetJdbcClassName(java.lang.String jdbcClassName)DBOptionsetJdbcLargeMessages(java.lang.String jdbcLargeMessages)DBOptionsetJdbcMessages(java.lang.String jdbcMessages)DBOptionsetJdbcNodeManager(java.lang.String jdbcNodeManager)DBOptionsetJdbcPageStore(java.lang.String jdbcPageStore)DBOptionsetJdbcURL(java.lang.String jdbcURL)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.OptionalLocking
lockCLI
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.LockAbstract
unlock
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.DataAbstract
getBinding, getJournal, getLargeMessages, getPaging
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.Configurable
getBrokerDTO, getConfiguration, getFileConfiguration, getManagementConfiguration, getManagementDTO, helpGroup, readConfiguration, treatError
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
checkOptions, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, setHomeValues
-
-
-
-
Field Detail
-
storageManager
protected org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager storageManager
-
config
protected org.apache.activemq.artemis.core.config.Configuration config
-
executor
protected java.util.concurrent.ExecutorService executor
-
executorFactory
protected org.apache.activemq.artemis.utils.ExecutorFactory executorFactory
-
scheduledExecutorService
protected java.util.concurrent.ScheduledExecutorService scheduledExecutorService
-
pagingmanager
protected org.apache.activemq.artemis.core.paging.PagingManager pagingmanager
-
-
Method Detail
-
isJDBC
public boolean isJDBC() throws java.lang.Exception- Throws:
java.lang.Exception
-
getJdbcBindings
public java.lang.String getJdbcBindings() throws java.lang.Exception- Throws:
java.lang.Exception
-
setJdbcBindings
public DBOption setJdbcBindings(java.lang.String jdbcBindings)
-
getJdbcMessages
public java.lang.String getJdbcMessages() throws java.lang.Exception- Throws:
java.lang.Exception
-
setJdbcMessages
public DBOption setJdbcMessages(java.lang.String jdbcMessages)
-
getJdbcLargeMessages
public java.lang.String getJdbcLargeMessages() throws java.lang.Exception- Throws:
java.lang.Exception
-
setJdbcLargeMessages
public DBOption setJdbcLargeMessages(java.lang.String jdbcLargeMessages)
-
getJdbcPageStore
public java.lang.String getJdbcPageStore() throws java.lang.Exception- Throws:
java.lang.Exception
-
setJdbcPageStore
public DBOption setJdbcPageStore(java.lang.String jdbcPageStore)
-
getJdbcNodeManager
public java.lang.String getJdbcNodeManager() throws java.lang.Exception- Throws:
java.lang.Exception
-
setJdbcNodeManager
public DBOption setJdbcNodeManager(java.lang.String jdbcNodeManager)
-
getJdbcURL
public java.lang.String getJdbcURL() throws java.lang.Exception- Throws:
java.lang.Exception
-
setJdbcURL
public DBOption setJdbcURL(java.lang.String jdbcURL)
-
getJdbcClassName
public java.lang.String getJdbcClassName() throws java.lang.Exception- Throws:
java.lang.Exception
-
setJdbcClassName
public DBOption setJdbcClassName(java.lang.String jdbcClassName)
-
execute
public java.lang.Object execute(ActionContext context) throws java.lang.Exception
- Specified by:
executein interfaceAction- Overrides:
executein classLockAbstract- Throws:
java.lang.Exception
-
getParameterConfiguration
public org.apache.activemq.artemis.core.config.Configuration getParameterConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
initializeJournal
protected void initializeJournal(org.apache.activemq.artemis.core.config.Configuration configuration) throws java.lang.Exception- Throws:
java.lang.Exception
-
cleanup
protected void cleanup() throws java.lang.Exception- Throws:
java.lang.Exception
-
-