[
https://issues.apache.org/jira/browse/CAMEL-23049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-23049:
--------------------------------
Fix Version/s: 4.19.0
> Add getLastError to ManagedRouteGroupMBean API
> ----------------------------------------------
>
> Key: CAMEL-23049
> URL: https://issues.apache.org/jira/browse/CAMEL-23049
> Project: Camel
> Issue Type: Improvement
> Components: came-core
> Affects Versions: 4.18.0
> Reporter: Raymond
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.19.0
>
>
> In a ManagedRouteMBean I currently get the lastError:
> {code:java}
> ManagedRouteMBean route = managedContext.getManagedRoute(routeId);
> RouteError lastError = route.getLastError();{code}
> I would like the same method in the ManagedRouteGroupMBean, so I can do this:
>
> {code:java}
> ManagedRouteGroupMBean managedRouteGroup =
> ManagedContext.getManagedRouteGroup(grouId);
> RouteError lastError = managedRouteGroup.getLastError();{code}
> This return the last error within the group.
> *Note:* Generally when an exchange failed is called a failure or failed. For
> example the getHandledFailures or getFailedExchanges methods. Wouldn't it be
> more consistent to rename the method "getLastFailure()" (and then deprecate
> this one)?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)