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
-
- Direct Known Subclasses:
PrintData,RecoverMessages,XmlDataExporter
public class DBOption extends OptionalLocking
-
-
Field Summary
Fields Modifier and Type Field Description protected Configurationconfigprotected ExecutorServiceexecutorprotected ExecutorFactoryexecutorFactoryprotected org.apache.activemq.artemis.core.paging.PagingManagerpagingmanagerprotected 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.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()voiddone()Objectexecute(ActionContext context)StringgetJdbcBindings()StringgetJdbcClassName()StringgetJdbcLargeMessages()StringgetJdbcMessages()StringgetJdbcNodeManager()StringgetJdbcPageStore()StringgetJdbcPassword()StringgetJdbcURL()StringgetJdbcUser()FilegetOutput()ConfigurationgetParameterConfiguration()protected voidinitializeJournal(Configuration configuration)booleanisJDBC()DBOptionsetJdbcBindings(String jdbcBindings)DBOptionsetJdbcClassName(String jdbcClassName)DBOptionsetJdbcLargeMessages(String jdbcLargeMessages)DBOptionsetJdbcMessages(String jdbcMessages)DBOptionsetJdbcNodeManager(String jdbcNodeManager)DBOptionsetJdbcPageStore(String jdbcPageStore)DBOptionsetJdbcPassword(String jdbcPassword)DBOptionsetJdbcURL(String jdbcURL)DBOptionsetJdbcUser(String jdbcUser)DBOptionsetOutput(File output)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.OptionalLocking
isIgnoreLock, lockCLI, setIgnoreLock
-
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, readConfiguration, treatError
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
-
-
-
Field Detail
-
storageManager
protected org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager storageManager
-
config
protected Configuration config
-
executor
protected ExecutorService executor
-
executorFactory
protected ExecutorFactory executorFactory
-
scheduledExecutorService
protected ScheduledExecutorService scheduledExecutorService
-
pagingmanager
protected org.apache.activemq.artemis.core.paging.PagingManager pagingmanager
-
-
Method Detail
-
getOutput
public File getOutput()
-
getJdbcUser
public String getJdbcUser()
-
getJdbcPassword
public String getJdbcPassword()
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classLockAbstract- Throws:
Exception
-
done
public void done()
- Specified by:
donein interfaceAction- Overrides:
donein classLockAbstract
-
getParameterConfiguration
public Configuration getParameterConfiguration() throws Exception
- Throws:
Exception
-
initializeJournal
protected void initializeJournal(Configuration configuration) throws Exception
- Throws:
Exception
-
-