All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.indeed.proctor.common.AbstractProctorDiffReporter Maven / Gradle / Ivy

There is a newer version: 1.9.118-1950c8a
Show newest version
package com.indeed.proctor.common;

import com.indeed.proctor.common.model.TestMatrixArtifact;

public abstract class AbstractProctorDiffReporter implements ProctorLoadReporter {

    /* provide your implementation to customize reporting */
    public abstract void reportProctorDiff(
            final TestMatrixArtifact oldProctor, final TestMatrixArtifact newProctor);

    @Override
    public void reportReloaded(final Proctor oldProctor, final Proctor newProctor) {
        if ((oldProctor != null) && (newProctor != null)) {
            reportProctorDiff(oldProctor.getArtifact(), newProctor.getArtifact());
        }
    }

    @Override
    public void reportFailed(final Throwable t) {
        /* do nothing */
    }

    @Override
    public void reportNoChange() {
        /* do nothing */
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy