[
https://issues.jboss.org/browse/AS7-2139?page=com.atlassian.jira.plugin.s...
]
Brian Stansberry resolved AS7-2139.
-----------------------------------
Fix Version/s: 7.1.0.Beta1
(was: 7.1.0.CR1)
Resolution: Done
On the root resource for a server, or on the /host=xxx resource for a HostController, to
get the value for an expression *on that process*, use
:resolve-expression(expression=${the.expression})
To get the value on every server in the domain, on the root resource on the master host
controller (the DC), use
:resolve-expression-on-domain(expression=${the.expression})
To get the value on every server managed by a given host, on the /host=xxx resource, use
:resolve-expression-on-domain(expression=${the.expression})
The value for xxx in expression=xxx can be any text that can be converted to a DMR string.
(So no DMR lists or objects). So these will work
:resolve-expression(expression=hello)
:resolve-expression(expression=10)
:resolve-expression
The first two result in a return value of ModelType.STRING that is the string form of what
was passed in. (The return type of the operation is always STRING.) The last one will
result in a return value of ModelType.UNDEFINED.
Basically, the server will take the passed in value and see if it's
ModelType.EXPRESSION. If not it will convert it to a string and try to parse that string
into a node of type EXPRESSION. If it's not expression syntax it will become a node of
type STRING. It will then resolve that node and will pass back the result.
When I merge a jboss-dmr patch Scott Stark has submitted, the ModelNode.resolve()
operation will start throwing an exception if the value is ModelType.EXPRESSION and the
expression cannot be resolved. Once I merge that, these operations will return a failure
if an expression cannot be resolved. Passing in a non-expression value will still work as
above; that isn't considered a failure.
Provide an operation to resolve expressions
-------------------------------------------
Key: AS7-2139
URL:
https://issues.jboss.org/browse/AS7-2139
Project: Application Server 7
Issue Type: Enhancement
Components: Domain Management
Reporter: Heiko Braun
Assignee: Brian Stansberry
Fix For: 7.1.0.Beta1
Add an op that would resolve expressions on every HC and server and return the set
--
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