[jboss-jira] [JBoss JIRA] (AS7-4906) CLI API: provide mechanism to read CLI output
Alexey Loubyansky (JIRA)
jira-events at lists.jboss.org
Tue May 29 08:26:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696737#comment-12696737 ]
Alexey Loubyansky commented on AS7-4906:
----------------------------------------
It does now. In the form of an input stream. I.e. a user can provide own input/output streams for the console and use them to write commands/operations and read the output.
Maybe it's not that convenient but I am not sure I'd do more than this. If there are suggestions, let's discuss on the mailing list.
With the API you can check whether the operation succeeded or failed. The output can be different, it's a text message, in general, with no definite format. Operations are a special case, their output is DMR toString. Which if you want to read you'd probably use ModelNode.fromString(str). But then you can just use the API to build operation requests as ModelNode from commands and operations and then execute the ModelNode requests yourself and process the results the way you want.
> CLI API: provide mechanism to read CLI output
> ---------------------------------------------
>
> Key: AS7-4906
> URL: https://issues.jboss.org/browse/AS7-4906
> Project: Application Server 7
> Issue Type: Feature Request
> Components: CLI
> Affects Versions: 7.2.0.Alpha1
> Reporter: Dominik Pospisil
> Assignee: Alexey Loubyansky
>
> CLI provides Java API to connect to CLI and execute commands. However, it does not seem possible to read CLI output using this API. This limits API usability for testing purposes to non-verbose commands only.
> It would be nice if the API provies a way how to read console output.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list