-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Failure Detectors implimented in Haskell. -- -- Failure Detectors implimented in Haskell. @package failure-detector @version 0 module Distributed.Failure.Class class FailureDetector d -- | Add a liveness event to our set of evidence about the target. - -- Specified as the amount of time that passed since the last evidence -- before it. observe :: FailureDetector d => d -> DiffTime -> d -- | If the failure detector suspects the target is faulty, - given that -- the specified amount of time has passed since the last sample. suspected :: FailureDetector d => d -> DiffTime -> Bool module Distributed.Failure.Phi data Phi Phi :: Double -> Int -> Seq Double -> Phi [_pThresh] :: Phi -> Double [_pWindow] :: Phi -> Int [_pLog] :: Phi -> Seq Double -- | Start a phi-acrual failure detector, given a Φ, a window size, and the -- - starting messurements. phi :: Double -> Int -> NonEmpty DiffTime -> Phi instance GHC.Classes.Ord Distributed.Failure.Phi.Phi instance GHC.Classes.Eq Distributed.Failure.Phi.Phi instance GHC.Show.Show Distributed.Failure.Phi.Phi instance Distributed.Failure.Class.FailureDetector Distributed.Failure.Phi.Phi