[jboss-jira] [JBoss JIRA] (WFCORE-721) Create a ModelNode to CLI call transformation facility
Brian Stansberry (JIRA)
issues at jboss.org
Wed May 31 12:32:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFCORE-721:
------------------------------------
Description:
Add a transformation function that can convert a ModelNode representation of an operation into a CLI low level operation. In the case of a composite operation, this should result in a CLI batch command with multiple CLI low level operations.
This capability involves introducing a transformation API (ModelNodeTransformer?), and perhaps an SPI to support pluggable transformation algorithms.
Future transformations might be:
- Java code - Transformation of a ModelNode based management operation into Java code using the jboss-dmr API to build a ModelNode and use the ModelController client API
- Python code - Transformation of a ModelNode based management operation into Python code that builds a JSON representation of the model node and some demo code calling an HTTP API in python to make the invocation
- Curl code - Transformation of a ModelNode based management operation into a curl statement(s) that can be cut and paste into a console
- XHR JS code - Transformation of a ModelNode based management operation into JS XHR calls
This functionality belongs in a new library, and once completed should be directly ported to HAL(console) as a prototype (this would enable HAL to record and display operations, CLI calls, or even code of the work performance based on user selection)
was:
Add a transformation function that can convert a ModelNode representation of an operation into a CLI command. In the case of a composite operation, this should result in a CLI batch with multiple CLI commands.
This capability involves introducing a transformation API (ModelNodeTransformer?), and perhaps an SPI to support pluggable transformation algorithms.
Future transformations might be:
- Java code - Transformation of a ModelNode based management operation into Java code using the jboss-dmr API to build a ModelNode and use the ModelController client API
- Python code - Transformation of a ModelNode based management operation into Python code that builds a JSON representation of the model node and some demo code calling an HTTP API in python to make the invocation
- Curl code - Transformation of a ModelNode based management operation into a curl statement(s) that can be cut and paste into a console
- XHR JS code - Transformation of a ModelNode based management operation into JS XHR calls
This functionality belongs in a new library, and once completed should be directly ported to HAL(console) as a prototype (this would enable HAL to record and display operations, CLI calls, or even code of the work performance based on user selection)
> Create a ModelNode to CLI call transformation facility
> ------------------------------------------------------
>
> Key: WFCORE-721
> URL: https://issues.jboss.org/browse/WFCORE-721
> Project: WildFly Core
> Issue Type: Feature Request
> Components: Domain Management
> Reporter: Jason Greene
> Assignee: Ken Wills
>
> Add a transformation function that can convert a ModelNode representation of an operation into a CLI low level operation. In the case of a composite operation, this should result in a CLI batch command with multiple CLI low level operations.
> This capability involves introducing a transformation API (ModelNodeTransformer?), and perhaps an SPI to support pluggable transformation algorithms.
> Future transformations might be:
> - Java code - Transformation of a ModelNode based management operation into Java code using the jboss-dmr API to build a ModelNode and use the ModelController client API
> - Python code - Transformation of a ModelNode based management operation into Python code that builds a JSON representation of the model node and some demo code calling an HTTP API in python to make the invocation
> - Curl code - Transformation of a ModelNode based management operation into a curl statement(s) that can be cut and paste into a console
> - XHR JS code - Transformation of a ModelNode based management operation into JS XHR calls
> This functionality belongs in a new library, and once completed should be directly ported to HAL(console) as a prototype (this would enable HAL to record and display operations, CLI calls, or even code of the work performance based on user selection)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list