Class StabilityStatistics


  • public final class StabilityStatistics
    extends java.lang.Object
    A stability monitor statistics. Allows to collect statistics data about ServiceControllers registered with StabilityMonitor object. The following data are available: Sample usage:
     StabilityMonitor monitor = ...
     StabilityStatistics statistics = new StabilityStatistics();
     monitor.awaitStability(statistics);
     // do something with statistics object.
     
    See Also:
    StabilityMonitor
    • Field Detail

      • active

        private int active
      • failed

        private int failed
      • lazy

        private int lazy
      • never

        private int never
      • onDemand

        private int onDemand
      • passive

        private int passive
      • problems

        private int problems
      • started

        private int started
    • Constructor Detail

      • StabilityStatistics

        public StabilityStatistics()
    • Method Detail

      • getFailedCount

        public int getFailedCount()
        Returns count of controllers registered with StabilityMonitor that failed to start because of start exception being thrown.
        Returns:
        count of FAILED controllers
      • getProblemsCount

        public int getProblemsCount()
        Returns count of controllers registered with StabilityMonitor that had problem to start because of missing dependencies.
        Returns:
        count of PROBLEM controllers
      • setActiveCount

        void setActiveCount​(int count)
      • setFailedCount

        void setFailedCount​(int count)
      • setLazyCount

        void setLazyCount​(int count)
      • setNeverCount

        void setNeverCount​(int count)
      • setOnDemandCount

        void setOnDemandCount​(int count)
      • setPassiveCount

        void setPassiveCount​(int count)
      • setProblemsCount

        void setProblemsCount​(int count)
      • setStartedCount

        void setStartedCount​(int count)