Class StabilityMonitor

    • Constructor Detail

      • StabilityMonitor

        public StabilityMonitor()
        Deprecated.
    • Method Detail

      • clear

        public void clear()
        Deprecated.
        Removes all the registered controllers in this monitor. The monitor can be later reused for stability detection again.
      • awaitStability

        public void awaitStability()
                            throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Throws:
        InterruptedException - if the current thread is interrupted while waiting
      • awaitStability

        public void awaitStability​(StabilityStatistics statistics)
                            throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Parameters:
        statistics - stability statistics report to fill in
        Throws:
        InterruptedException - if the current thread is interrupted while waiting
      • awaitStability

        public boolean awaitStability​(long timeout,
                                      TimeUnit unit)
                               throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Parameters:
        timeout - the maximum time to wait
        unit - the time unit of the timeout argument
        Returns:
        true if this monitor achieved stability, false if the timeout elapsed before stability
        Throws:
        InterruptedException - if the current thread is interrupted while waiting
      • awaitStability

        public boolean awaitStability​(long timeout,
                                      TimeUnit unit,
                                      StabilityStatistics statistics)
                               throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Parameters:
        timeout - the maximum time to wait
        unit - the time unit of the timeout argument
        statistics - stability statistics report to fill in
        Returns:
        true if this monitor achieved stability, false if the timeout elapsed before stability
        Throws:
        InterruptedException - if the current thread is interrupted while waiting
      • awaitStability

        public void awaitStability​(Set<? super ServiceController<?>> failed,
                                   Set<? super ServiceController<?>> problems)
                            throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Parameters:
        failed - a set into which failed services should be copied
        problems - a set into which problem services should be copied
        Throws:
        InterruptedException - if the current thread is interrupted while waiting
      • awaitStability

        public boolean awaitStability​(long timeout,
                                      TimeUnit unit,
                                      Set<? super ServiceController<?>> failed,
                                      Set<? super ServiceController<?>> problems)
                               throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Parameters:
        timeout - the maximum time to wait
        unit - the time unit of the timeout argument
        failed - a set into which failed services should be copied
        problems - a set into which problem services should be copied
        Returns:
        true if this monitor achieved stability, false if the timeout elapsed before stability
        Throws:
        InterruptedException - if the current thread is interrupted while waiting
      • awaitStability

        public void awaitStability​(Set<? super ServiceController<?>> failed,
                                   Set<? super ServiceController<?>> problems,
                                   StabilityStatistics statistics)
                            throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Parameters:
        failed - a set into which failed services should be copied
        problems - a set into which problem services should be copied
        statistics - stability statistics report to fill in
        Throws:
        InterruptedException - if the current thread is interrupted while waiting
      • awaitStability

        public boolean awaitStability​(long timeout,
                                      TimeUnit unit,
                                      Set<? super ServiceController<?>> failed,
                                      Set<? super ServiceController<?>> problems,
                                      StabilityStatistics statistics)
                               throws InterruptedException
        Deprecated.
        Causes the current thread to wait until the monitor is stable.
        Parameters:
        timeout - the maximum time to wait
        unit - the time unit of the timeout argument
        failed - a set into which failed services should be copied
        problems - a set into which problem services should be copied
        statistics - stability statistics report to fill in
        Returns:
        true if this monitor achieved stability, false if the timeout elapsed before stability
        Throws:
        InterruptedException - if the current thread is interrupted while waiting