su.nlq.prometheus.jmx.connection.remote.rmi.RMIConnectionConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmx-prometheus-collector Show documentation
Show all versions of jmx-prometheus-collector Show documentation
Pipe for JMX MBeans to Prometheus
package su.nlq.prometheus.jmx.connection.remote.rmi;
import org.jetbrains.annotations.NotNull;
import su.nlq.prometheus.jmx.connection.remote.Connector;
import su.nlq.prometheus.jmx.connection.remote.RemoteConnectionConfiguration;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import java.util.Optional;
@XmlType(name = "rmi-connection")
public final class RMIConnectionConfiguration extends RemoteConnectionConfiguration {
@XmlAttribute
private @NotNull Boolean ssl = false;
@Override
protected @NotNull Connector connector(@NotNull String address, @NotNull Optional credentials) {
return new RMIConnector(address, credentials, ssl);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy