Camel
  1. Camel
  2. CAMEL-2628

Uptime - Show uptime in JMX and when Camel is shutting down

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      It would be great if we add uptime to show how long CamelContext has been started.

      1) It should display that in JMX so you can see the current uptime.
      2) And when CamelContext is shutting down it should display the uptime as well, so you can see how long it was up for.

      It should be formatted nicely like

      3 days, 6 hours, 37 minutes, 6 seconds.
      

      And the code should be in camel-core in a util class, for example the StopWatch.

        Activity

        Hide
        Claus Ibsen added a comment -

        btw it helps when you run in one of those big containers where you hot deploy your Camel apps. Then the JVM uptime is not the same as your app uptime

        Show
        Claus Ibsen added a comment - btw it helps when you run in one of those big containers where you hot deploy your Camel apps. Then the JVM uptime is not the same as your app uptime
        Hide
        Claus Ibsen added a comment -

        trunk: 952644.

        Show
        Claus Ibsen added a comment - trunk: 952644.
        Hide
        Claus Ibsen added a comment -

        Closing all resolved tickets from 2010 or older

        Show
        Claus Ibsen added a comment - Closing all resolved tickets from 2010 or older

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development