Add reset and last exchange failure timestamps to syndesis camel context mbean
@@ -44,6 +44,12 @@ public class CamelContextMetadataMBean implements Service, CamelContextAware {
return camelContext.getManagedCamelContext().getStartTimestamp().getTime();
}
+ @ManagedAttribute
+ public Long getResetTimestamp() {
+ final Date resetTimestamp = camelContext.getManagedCamelContext().getResetTimestamp();
+ return resetTimestamp == null ? null : resetTimestamp.getTime();
+ }
+
@ManagedAttribute
public Long getLastExchangeCompletedTimestamp() {
final Date timestamp = camelContext.getManagedCamelContext()
@@ -51,6 +57,13 @@ public class CamelContextMetadataMBean implements Service, CamelContextAware {
return timestamp == null ? null : timestamp.getTime();
}
+ @ManagedAttribute
+ public Long getLastExchangeFailureTimestamp() {
+ final Date timestamp = camelContext.getManagedCamelContext()
+ .getLastExchangeFailureTimestamp();
+ return timestamp == null ? null : timestamp.getTime();
+ }
+
@Override
public void start() throws Exception {
// register mbean
