com.sportradar.livedata.sdk.common.settings.JmxSettingsBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Livedata SDK is a client library that enables easier integration with the Livedata XML feed.
SDK exposes XML feed service interface in a more user-friendly way and isolates the client from having to do
XML feed parsing, proper connection handling, error recovery, event queuing and dispatching.
It also makes a client solution more stable and robust when it comes to feed handling,
especially with the release of new and updated XML feed versions.
package com.sportradar.livedata.sdk.common.settings;
public class JmxSettingsBuilder {
protected String jmxHost;
protected int jmxPort;
protected String passwordFile;
protected String accessFile;
protected boolean enabled;
public JmxSettings build() {
return new JmxSettings(enabled, jmxHost, jmxPort, passwordFile, accessFile);
}
public String getJmxHost() {
return jmxHost;
}
public int getJmxPort() {
return jmxPort;
}
public String getPasswordFile() {
return passwordFile;
}
public String getAccessFile() {
return accessFile;
}
public JmxSettingsBuilder setJmxHost(String jmxHost) {
this.jmxHost = jmxHost;
return this;
}
public JmxSettingsBuilder setJmxPort(int jmxPort) {
this.jmxPort = jmxPort;
return this;
}
public JmxSettingsBuilder setPasswordFile(String passwordFile) {
this.passwordFile = passwordFile;
return this;
}
public boolean isEnabled() {
return enabled;
}
public JmxSettingsBuilder setEnabled(boolean enabled) {
this.enabled = enabled;
return this;
}
public JmxSettingsBuilder setAccessFile(String accessFile) {
this.accessFile = accessFile;
return this;
}
}