[
https://issues.apache.org/jira/browse/CAMEL-23049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18061184#comment-18061184
]
Claus Ibsen edited comment on CAMEL-23049 at 2/25/26 8:28 PM:
--------------------------------------------------------------
a group is a collection of routes so there can be more than 1 last error so it
has to return a Set<RouteError>
Ah okay we check the date and grab the newest
was (Author: davsclaus):
a group is a collection of routes so there can be more than 1 last error so it
has to return a Set<RouteError>
> 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)