public final class XmlDataImporter extends ActionAbstract
org.apache.activemq.artemis.core.persistence.impl.journal.XmlDataExporter
, create a core session, and
send the messages to a running instance of ActiveMQ Artemis. It uses the StAX javax.xml.stream.XMLStreamReader
for speed and simplicity.Modifier and Type | Field and Description |
---|---|
String |
host |
String |
input |
String |
password |
int |
port |
boolean |
transactional |
String |
user |
context, verbose
Constructor and Description |
---|
XmlDataImporter() |
Modifier and Type | Method and Description |
---|---|
Object |
execute(ActionContext context) |
String |
getPassword() |
String |
getUser() |
void |
process(InputStream inputStream,
ClientSession session)
This is the normal constructor for programmatic access to the
org.apache.activemq.artemis.core.persistence.impl.journal.XmlDataImporter if the session passed
in uses auto-commit for sends. |
void |
process(InputStream inputStream,
ClientSession session,
ClientSession managementSession)
This is the constructor to use if you wish to import all messages transactionally.
|
void |
process(InputStream inputStream,
String host,
int port,
boolean transactional) |
void |
process(String inputFile,
String host,
int port,
boolean transactional) |
void |
setPassword(String password) |
void |
setUser(String user) |
getBrokerHome, getBrokerInstance, getBrokerURIInstance, isVerbose, setHomeValues
public String host
public int port
public boolean transactional
public String user
public String password
public String input
public String getPassword()
public void setPassword(String password)
public String getUser()
public void setUser(String user)
public Object execute(ActionContext context) throws Exception
execute
in interface Action
execute
in class ActionAbstract
Exception
public void process(String inputFile, String host, int port, boolean transactional) throws Exception
Exception
public void process(InputStream inputStream, ClientSession session) throws Exception
org.apache.activemq.artemis.core.persistence.impl.journal.XmlDataImporter
if the session passed
in uses auto-commit for sends.
inputStream
- the stream from which to read the XML for importsession
- used for sending messages, must use auto-commit for sendsException
public void process(InputStream inputStream, ClientSession session, ClientSession managementSession) throws Exception
inputStream
- the stream from which to read the XML for importsession
- used for sending messages, doesn't need to auto-commit sendsmanagementSession
- used for management queries, must use auto-commit for sendsException
public void process(InputStream inputStream, String host, int port, boolean transactional) throws Exception
Exception
Copyright © 2017 JBoss by Red Hat. All rights reserved.