Class XmlDataExporter
- 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
-
- org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXmlDataExporter.PrettyPrintHandlerProxy to handle indenting the XML sincejavax.xml.stream.XMLStreamWriterdoesn't support that.
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.tools.DBOption
config, executor, executorFactory, pagingmanager, scheduledExecutorService, storageManager
-
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 XmlDataExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Objectexecute(ActionContext context)ThrowablegetLastError()StringgetUndefinedPrefix()voidprocess(OutputStream out)voidprocess(OutputStream out, String bindingsDir, String journalDir, String pagingDir, String largeMessagesDir)Deprecated.XmlDataExportersetUndefinedPrefix(String undefinedPrefix)protected voidwriteOutput(OutputStream out)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.tools.DBOption
cleanup, done, getJdbcBindings, getJdbcClassName, getJdbcLargeMessages, getJdbcMessages, getJdbcNodeManager, getJdbcPageStore, getJdbcPassword, getJdbcURL, getJdbcUser, getOutput, getParameterConfiguration, initializeJournal, isJDBC, setJdbcBindings, setJdbcClassName, setJdbcLargeMessages, setJdbcMessages, setJdbcNodeManager, setJdbcPageStore, setJdbcPassword, setJdbcURL, setJdbcUser, setOutput
-
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
-
-
-
-
Method Detail
-
getUndefinedPrefix
public String getUndefinedPrefix()
-
setUndefinedPrefix
public XmlDataExporter setUndefinedPrefix(String undefinedPrefix)
-
execute
public Object execute(ActionContext context) throws Exception
-
process
@Deprecated public void process(OutputStream out, String bindingsDir, String journalDir, String pagingDir, String largeMessagesDir) throws Exception
Deprecated.Use setConfiguration and process(out) instead.- Parameters:
out-bindingsDir-journalDir-pagingDir-largeMessagesDir-- Throws:
Exception
-
process
public void process(OutputStream out) throws Exception
- Throws:
Exception
-
writeOutput
protected void writeOutput(OutputStream out) throws Exception
- Throws:
Exception
-
getLastError
public Throwable getLastError()
-
-