[jboss-jira] [JBoss JIRA] (WFCORE-800) Support file in management operation
Alexey Loubyansky (JIRA)
issues at jboss.org
Fri Sep 18 12:49:00 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13110515#comment-13110515 ]
Alexey Loubyansky commented on WFCORE-800:
------------------------------------------
As an alternative, we could consider the following: if there is an int parameter and it has filesystem-path=true in its description, we could treated it as a string parameter with a filesystem path value for the user but turn it into a stream when we send the request.
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list