
artoria.spring.config.elasticsearch.RestClientProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artoria-extend Show documentation
Show all versions of artoria-extend Show documentation
Artoria is a java technology framework based on the facade pattern.
The newest version!
package artoria.spring.config.elasticsearch;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* The elasticsearch rest client properties.
* @author Kahle
*/
@ConfigurationProperties(prefix = "spring.elasticsearch.rest")
public class RestClientProperties {
/**
* The comma-separated list of the Elasticsearch instances to use.
*/
private List uris = new ArrayList(
Collections.singletonList("http://localhost:9200")
);
/**
* The credentials username.
*/
private String username;
/**
* The credentials password.
*/
private String password;
public List getUris() {
return uris;
}
public void setUris(List uris) {
this.uris = uris;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy