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

org.zodiac.monitor.console.model.Endpoint Maven / Gradle / Ivy

package org.zodiac.monitor.console.model;

import java.io.Serializable;
import org.zodiac.sdk.toolkit.util.AssertUtil;

/**
 * @author zodiac
 */
public class Endpoint implements Serializable {

    private static final long serialVersionUID = 7836209619629832815L;

    public static final String INFO = "info";
    public static final String HEALTH = "health";
    public static final String LOGFILE = "logfile";
    public static final String ENV = "env";
    public static final String HTTPTRACE = "httptrace";
    public static final String THREADDUMP = "threaddump";
    public static final String LIQUIBASE = "liquibase";
    public static final String FLYWAY = "flyway";
    public static final String ACTUATOR_INDEX = "actuator-index";

    private final String id;
    private final String url;

    Endpoint(String id, String url) {
        this.id = AssertUtil.notBlankOf(id, "'id' must not be empty.");
        this.url = AssertUtil.notBlankOf(url, "'url' must not be empty.");
    }

    public String getId() {
        return id;
    }

    public String getUrl() {
        return url;
    }

    public static Endpoint of(String id, String url) {
        return new Endpoint(id, url);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy