2014-12-11 07:17:29 -05:00
|
|
|
# Tools
|
2014-12-04 10:25:29 -05:00
|
|
|
|
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
You can use the artemis cli interface to execute data maintenance tools:
|
|
|
|
|
|
|
|
|
|
|
|
This is a list of sub-commands available
|
|
|
|
|
|
|
|
|
|
|
|
Name | Description
|
|
|
|
:--- | :---
|
|
|
|
exp | Export the message data using a special and independent XML format
|
|
|
|
imp | Imports the journal to a running broker using the output from expt
|
|
|
|
data | Prints a report about journal records and summary of existent records, as well a report on paging
|
|
|
|
encode | shows an internal format of the journal encoded to String
|
|
|
|
decode | imports the internal journal format from encode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can use the help at the tool for more information on how to execute each of the tools. For example:
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-03-13 18:37:28 -04:00
|
|
|
```
|
2015-05-03 11:40:36 -04:00
|
|
|
$ ./artemis help data print
|
|
|
|
NAME
|
|
|
|
artemis data print - Print data records information (WARNING: don't use
|
|
|
|
while a production server is running)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
SYNOPSIS
|
|
|
|
artemis data print [--bindings <binding>] [--journal <journal>]
|
|
|
|
[--paging <paging>]
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
OPTIONS
|
|
|
|
--bindings <binding>
|
|
|
|
The folder used for bindings (default ../data/bindings)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
--journal <journal>
|
|
|
|
The folder used for messages journal (default ../data/journal)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
--paging <paging>
|
|
|
|
The folder used for paging (default ../data/paging)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
|
|
|
|
2015-03-13 18:37:28 -04:00
|
|
|
```
|
2015-05-03 11:40:36 -04:00
|
|
|
|
|
|
|
|
|
|
|
For a full list of data tools commands available use:
|
|
|
|
|
2015-03-13 18:37:28 -04:00
|
|
|
```
|
2015-05-03 11:40:36 -04:00
|
|
|
NAME
|
2015-11-24 19:02:42 -05:00
|
|
|
artemis data - data tools group
|
2017-02-10 06:44:05 -05:00
|
|
|
(print|imp|exp|encode|decode|compact) (example ./artemis data print)
|
2015-05-03 11:40:36 -04:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
artemis data
|
2015-11-24 19:02:42 -05:00
|
|
|
artemis data compact [--broker <brokerConfig>] [--verbose]
|
|
|
|
[--paging <paging>] [--journal <journal>]
|
|
|
|
[--large-messages <largeMessges>] [--bindings <binding>]
|
|
|
|
artemis data decode [--broker <brokerConfig>] [--suffix <suffix>]
|
|
|
|
[--verbose] [--paging <paging>] [--prefix <prefix>] [--file-size <size>]
|
|
|
|
[--directory <directory>] --input <input> [--journal <journal>]
|
|
|
|
[--large-messages <largeMessges>] [--bindings <binding>]
|
|
|
|
artemis data encode [--directory <directory>] [--broker <brokerConfig>]
|
|
|
|
[--suffix <suffix>] [--verbose] [--paging <paging>] [--prefix <prefix>]
|
|
|
|
[--file-size <size>] [--journal <journal>]
|
|
|
|
[--large-messages <largeMessges>] [--bindings <binding>]
|
|
|
|
artemis data exp [--broker <brokerConfig>] [--verbose]
|
|
|
|
[--paging <paging>] [--journal <journal>]
|
|
|
|
[--large-messages <largeMessges>] [--bindings <binding>]
|
|
|
|
artemis data imp [--host <host>] [--verbose] [--port <port>]
|
|
|
|
[--password <password>] [--transaction] --input <input> [--user <user>]
|
|
|
|
artemis data print [--broker <brokerConfig>] [--verbose]
|
|
|
|
[--paging <paging>] [--journal <journal>]
|
|
|
|
[--large-messages <largeMessges>] [--bindings <binding>]
|
2015-05-03 11:40:36 -04:00
|
|
|
|
|
|
|
COMMANDS
|
|
|
|
With no arguments, Display help information
|
|
|
|
|
|
|
|
print
|
|
|
|
Print data records information (WARNING: don't use while a
|
|
|
|
production server is running)
|
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --broker option, This would override the broker configuration
|
|
|
|
from the bootstrap
|
2015-05-03 11:40:36 -04:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --verbose option, Adds more information on the execution
|
|
|
|
|
|
|
|
With --paging option, The folder used for paging (default from
|
|
|
|
broker.xml)
|
2015-05-03 11:40:36 -04:00
|
|
|
|
|
|
|
With --journal option, The folder used for messages journal (default
|
2015-11-24 19:02:42 -05:00
|
|
|
from broker.xml)
|
|
|
|
|
|
|
|
With --large-messages option, The folder used for large-messages
|
|
|
|
(default from broker.xml)
|
|
|
|
|
|
|
|
With --bindings option, The folder used for bindings (default from
|
|
|
|
broker.xml)
|
2015-05-03 11:40:36 -04:00
|
|
|
|
|
|
|
exp
|
|
|
|
Export all message-data using an XML that could be interpreted by
|
|
|
|
any system.
|
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --broker option, This would override the broker configuration
|
|
|
|
from the bootstrap
|
2015-05-03 11:40:36 -04:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --verbose option, Adds more information on the execution
|
2015-05-03 11:40:36 -04:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --paging option, The folder used for paging (default from
|
|
|
|
broker.xml)
|
2015-05-03 11:40:36 -04:00
|
|
|
|
|
|
|
With --journal option, The folder used for messages journal (default
|
2015-11-24 19:02:42 -05:00
|
|
|
from broker.xml)
|
|
|
|
|
|
|
|
With --large-messages option, The folder used for large-messages
|
|
|
|
(default from broker.xml)
|
|
|
|
|
|
|
|
With --bindings option, The folder used for bindings (default from
|
|
|
|
broker.xml)
|
2015-05-03 11:40:36 -04:00
|
|
|
|
|
|
|
imp
|
|
|
|
Import all message-data using an XML that could be interpreted by
|
|
|
|
any system.
|
|
|
|
|
|
|
|
With --host option, The host used to import the data (default
|
|
|
|
localhost)
|
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --verbose option, Adds more information on the execution
|
|
|
|
|
|
|
|
With --port option, The port used to import the data (default 61616)
|
|
|
|
|
|
|
|
With --password option, User name used to import the data. (default
|
2015-05-03 11:40:36 -04:00
|
|
|
null)
|
|
|
|
|
|
|
|
With --transaction option, If this is set to true you will need a
|
|
|
|
whole transaction to commit at the end. (default false)
|
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --input option, The input file name (default=exp.dmp)
|
|
|
|
|
|
|
|
With --user option, User name used to import the data. (default
|
|
|
|
null)
|
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
decode
|
|
|
|
Decode a journal's internal format into a new journal set of files
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --broker option, This would override the broker configuration
|
|
|
|
from the bootstrap
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
With --suffix option, The journal suffix (default amq)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --verbose option, Adds more information on the execution
|
|
|
|
|
|
|
|
With --paging option, The folder used for paging (default from
|
|
|
|
broker.xml)
|
|
|
|
|
|
|
|
With --prefix option, The journal prefix (default activemq-data)
|
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
With --file-size option, The journal size (default 10485760)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --directory option, The journal folder (default journal folder
|
|
|
|
from broker.xml)
|
|
|
|
|
|
|
|
With --input option, The input file name (default=exp.dmp)
|
|
|
|
|
|
|
|
With --journal option, The folder used for messages journal (default
|
|
|
|
from broker.xml)
|
|
|
|
|
|
|
|
With --large-messages option, The folder used for large-messages
|
|
|
|
(default from broker.xml)
|
|
|
|
|
|
|
|
With --bindings option, The folder used for bindings (default from
|
|
|
|
broker.xml)
|
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
encode
|
|
|
|
Encode a set of journal files into an internal encoded data format
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --directory option, The journal folder (default the journal
|
|
|
|
folder from broker.xml)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --broker option, This would override the broker configuration
|
|
|
|
from the bootstrap
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
With --suffix option, The journal suffix (default amq)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --verbose option, Adds more information on the execution
|
|
|
|
|
|
|
|
With --paging option, The folder used for paging (default from
|
|
|
|
broker.xml)
|
|
|
|
|
|
|
|
With --prefix option, The journal prefix (default activemq-data)
|
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
With --file-size option, The journal size (default 10485760)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
2015-11-24 19:02:42 -05:00
|
|
|
With --journal option, The folder used for messages journal (default
|
|
|
|
from broker.xml)
|
|
|
|
|
|
|
|
With --large-messages option, The folder used for large-messages
|
|
|
|
(default from broker.xml)
|
|
|
|
|
|
|
|
With --bindings option, The folder used for bindings (default from
|
|
|
|
broker.xml)
|
|
|
|
|
|
|
|
compact
|
|
|
|
Compacts the journal of a non running server
|
|
|
|
|
|
|
|
With --broker option, This would override the broker configuration
|
|
|
|
from the bootstrap
|
|
|
|
|
|
|
|
With --verbose option, Adds more information on the execution
|
|
|
|
|
|
|
|
With --paging option, The folder used for paging (default from
|
|
|
|
broker.xml)
|
|
|
|
|
|
|
|
With --journal option, The folder used for messages journal (default
|
|
|
|
from broker.xml)
|
|
|
|
|
|
|
|
With --large-messages option, The folder used for large-messages
|
|
|
|
(default from broker.xml)
|
|
|
|
|
|
|
|
With --bindings option, The folder used for bindings (default from
|
|
|
|
broker.xml)
|
2014-12-04 10:25:29 -05:00
|
|
|
|
|
|
|
|
2015-05-03 11:40:36 -04:00
|
|
|
```
|