Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Phi accrual failure detector
Java
Branch: master
Failed to load latest commit information.
src/main/java/asr/failure Apache licensing.
.gitignore Initial checkin.
LICENSE Added my name as copyright holder.
README Remove license TODO.
pom.xml

README

A failure detector as described in "The Phi Accrual Failure Detector" (Hayashibara, et al., 2004).

Example:

    import asr.failure.FailureDetector;

    final FailureDetector detector = new FailureDetector(windowSize, minSamples);

    new Thread(new Runnable() {
        public void run() {
            while (doingStuff) {
                detector.recordHeartbeat(System.currentTimeMillis());
            }
        }
    ).start();

    while (doingOtherStuff) {
        Double phi = detector.phi(System.currentTimeMillis());

        if (phi != null && phi > threshold) {
            // failure!
        }
    }
Something went wrong with that request. Please try again.