[Red Hat JIRA] (WFCORE-5211) Add new Phases for base metrics and health subsystems
by Jeff Mesnil (Jira)
Jeff Mesnil created WFCORE-5211:
-----------------------------------
Summary: Add new Phases for base metrics and health subsystems
Key: WFCORE-5211
URL: https://issues.redhat.com/browse/WFCORE-5211
Project: WildFly Core
Issue Type: Task
Components: Management
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
New metrics and health subsystems (tracked by WFLY-14108 & WFLY-14151) needs distinct Phases from the existing microprofile-metrics-smallrye & microprofile-health-smallry.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 5 months
[Red Hat JIRA] (WFCORE-2687) Expose the current step operation's name and parameters via the OperationContext
by Brian Stansberry (Jira)
[ https://issues.redhat.com/browse/WFCORE-2687?page=com.atlassian.jira.plug... ]
Brian Stansberry updated WFCORE-2687:
-------------------------------------
Description:
Remove the need to pass the 'operation' ModelNode to a method for it to be able to learn about the currently effective operation.
OperationContext already exposes getCurrentAddress(). Add getCurrentOperationName() and getCurrentOperationParameter(String name).
The latter returns null if !operation.has(name) otherwise it returns whatever the node was. Or perhaps return undefined with an overloaded variant with a boolean param that lets the caller turn on getting null.
The getCurrentOperationParameter should reject 'operation', 'address', 'operation-headers' etc as legal param names; only expose true parameters.
EDIT: I removed 'name' from the list of illegal param names. It's not a special key in an operation model node. I added 'operation', which is a special key. I suspect when I wrote this I confused myself because the value of 'operation' key is the name of the operation.
was:
Remove the need to pass the 'operation' ModelNode to a method for it to be able to learn about the currently effective operation.
OperationContext already exposes getCurrentAddress(). Add getCurrentOperationName() and getCurrentOperationParameter(String name).
The latter returns null if !operation.has(name) otherwise it returns whatever the node was. Or perhaps return undefined with an overloaded variant with a boolean param that lets the caller turn on getting null.
The getCurrentOperationParameter should reject 'address', 'operation-headers' etc as legal param names; only expose true parameters.
EDIT: I removed 'name' from the list of illegal param names. It's not a special key in an operation model node.
> Expose the current step operation's name and parameters via the OperationContext
> --------------------------------------------------------------------------------
>
> Key: WFCORE-2687
> URL: https://issues.redhat.com/browse/WFCORE-2687
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Management
> Reporter: Brian Stansberry
> Assignee: Lukas Vydra
> Priority: Major
>
> Remove the need to pass the 'operation' ModelNode to a method for it to be able to learn about the currently effective operation.
> OperationContext already exposes getCurrentAddress(). Add getCurrentOperationName() and getCurrentOperationParameter(String name).
> The latter returns null if !operation.has(name) otherwise it returns whatever the node was. Or perhaps return undefined with an overloaded variant with a boolean param that lets the caller turn on getting null.
> The getCurrentOperationParameter should reject 'operation', 'address', 'operation-headers' etc as legal param names; only expose true parameters.
> EDIT: I removed 'name' from the list of illegal param names. It's not a special key in an operation model node. I added 'operation', which is a special key. I suspect when I wrote this I confused myself because the value of 'operation' key is the name of the operation.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 5 months
[Red Hat JIRA] (WFCORE-2687) Expose the current step operation's name and parameters via the OperationContext
by Brian Stansberry (Jira)
[ https://issues.redhat.com/browse/WFCORE-2687?page=com.atlassian.jira.plug... ]
Brian Stansberry updated WFCORE-2687:
-------------------------------------
Description:
Remove the need to pass the 'operation' ModelNode to a method for it to be able to learn about the currently effective operation.
OperationContext already exposes getCurrentAddress(). Add getCurrentOperationName() and getCurrentOperationParameter(String name).
The latter returns null if !operation.has(name) otherwise it returns whatever the node was. Or perhaps return undefined with an overloaded variant with a boolean param that lets the caller turn on getting null.
The getCurrentOperationParameter should reject 'address', 'operation-headers' etc as legal param names; only expose true parameters.
EDIT: I removed 'name' from the list of illegal param names. It's not a special key in an operation model node.
was:
Remove the need to pass the 'operation' ModelNode to a method for it to be able to learn about the currently effective operation.
OperationContext already exposes getCurrentAddress(). Add getCurrentOperationName() and getCurrentOperationParameter(String name).
The latter returns null if !operation.has(name) otherwise it returns whatever the node was. Or perhaps return undefined with an overloaded variant with a boolean param that lets the caller turn on getting null.
The getCurrentOperationParameter should reject 'name', 'address', 'operation-headers' etc as legal param names; only expose true parameters.
> Expose the current step operation's name and parameters via the OperationContext
> --------------------------------------------------------------------------------
>
> Key: WFCORE-2687
> URL: https://issues.redhat.com/browse/WFCORE-2687
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Management
> Reporter: Brian Stansberry
> Assignee: Lukas Vydra
> Priority: Major
>
> Remove the need to pass the 'operation' ModelNode to a method for it to be able to learn about the currently effective operation.
> OperationContext already exposes getCurrentAddress(). Add getCurrentOperationName() and getCurrentOperationParameter(String name).
> The latter returns null if !operation.has(name) otherwise it returns whatever the node was. Or perhaps return undefined with an overloaded variant with a boolean param that lets the caller turn on getting null.
> The getCurrentOperationParameter should reject 'address', 'operation-headers' etc as legal param names; only expose true parameters.
> EDIT: I removed 'name' from the list of illegal param names. It's not a special key in an operation model node.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 5 months