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

su.nlq.prometheus.jmx.connection.remote.rmi.RMIConnectionConfiguration Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
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