Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-108

Timer is repeatedly setup/cancelled during startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0
    • 3.0
    • servicemix-core
    • None

    Description

      EnvironmentContext.java

      The scheduleStatsTImer() method is called during startup as a side-effect of setStatsInterval. In this case wouldn't it make more sense to defer actually doing anything until the EnvironmentContext.start processing. Otherwise the timer get set & cancelled several timers during startup.

      Ditto for other similar cases like AutoDeploymentService.scheduleDirectoryTimer

      Attachments

        Activity

          People

            Unassigned Unassigned
            peters Peter Samuelson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: