com.axibase.tsd.driver.jdbc.enums.Location Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atsd-jdbc Show documentation
Show all versions of atsd-jdbc Show documentation
JDBC driver for SQL API using
package com.axibase.tsd.driver.jdbc.enums;
import com.axibase.tsd.driver.jdbc.ext.AtsdConnectionInfo;
import lombok.Getter;
public enum Location {
SQL_ENDPOINT("/api/sql"),
SQL_META_ENDPOINT("/api/sql/meta"),
CANCEL_ENDPOINT("/api/sql/cancel"),
METRICS_ENDPOINT("/api/v1/metrics"),
VERSION_ENDPOINT("/api/v1/version"),
COMMAND_ENDPOINT("/api/v1/command");
@Getter
private final String endpoint;
Location(String endpoint) {
this.endpoint = endpoint;
}
public String getUrl(AtsdConnectionInfo info) {
return info.protocol() + info.host() + endpoint;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy