[jboss-jira] [JBoss JIRA] (WFCORE-800) Support file in management operation

Jeff Mesnil (JIRA) issues at jboss.org
Thu Jul 9 09:48:04 EDT 2015


Jeff Mesnil created WFCORE-800:
----------------------------------

             Summary: 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


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.3.15#6346)


More information about the jboss-jira mailing list