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

nl.orange11.healthcheck.api.ThoroughPingResult Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
package nl.orange11.healthcheck.api;

import java.util.Map;

/**
 * Extension to the {@link PingResult}, now you can provided a map with key, value pairs of information to the client.
 *
 * @author Jettro Coenradie
 */
public class ThoroughPingResult extends PingResult {
    private Map thoroughExtraValues;

    public ThoroughPingResult(PingResult pingResult, Map thoroughExtraValues) {
        this(pingResult.getPingExecutorName(), pingResult.getSystemStatus(), pingResult.getMessage(), thoroughExtraValues);
    }

    public ThoroughPingResult(String name, SystemStatus systemStatus, String message, Map thoroughExtraValues) {
        super(name, systemStatus, message);
        this.thoroughExtraValues = thoroughExtraValues;
    }

    public Map getThoroughExtraValues() {
        return thoroughExtraValues;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy