]
Alexey Loubyansky commented on WFCORE-800:
------------------------------------------
I just wanted to mention in some way related features supported in the CLI.
WFCORE-74 introduced optional boolean filesystem-path attribute to the description of
resource attributes and operation parameters. Which indicates that the value of the
attribute/parameter is a filesystem path (the type might still be STRING).
WFCORE-217 - for any operation who has a parameter type of ModelType.BYTES, treat the
user-supplied value as a file path from which to retrieve those bytes.
Support file in management operation
------------------------------------
Key: WFCORE-800
URL:
https://issues.jboss.org/browse/WFCORE-800
Project: WildFly Core
Issue Type: Feature Request
Components: CLI, Domain Management
Affects Versions: 2.0.0.Alpha6
Reporter: Jeff Mesnil
Assignee: Alexey Loubyansky
Labels: affects_elytron
Working on WFLY-4683, I want to add 2 management operations :export-journal and
:import-journal that export/import the journal from the messaging-activemq server
resource.
The :export-journal operation is similar to the :take-snapshot operation and it is
acceptable that the dumped file (created internally by Artemis) is stored on the
server-side in a well-know location
However, I'd like to pass such a file to the :import-journal (specified by a dump
attribute) so that the admin does not need to copy the dumped file to the server's
host (or many hosts in domain mode) before calling the :import-journal operation.
Currently, this is not doable since we can not add a stream to a management operation
*from the CLI*. Instead, I have to implement a global command that will execute the client
code to create the management operation, read the file and attach it to the operation as a
stream.
Ideally, I would like to specify that my :import-journal takes a dump attribute with the
ModelType.FILE (or .URL ?) so that our management clients (both CLI and Web) know that
they must attach the stream of the file to the management operation.
This RFE is to simplify this use case and make it possible to use directly the CLI (and
Web) console to upload files without having to create a dedicated client command for that.