|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2020 the original author or authors.
|
|
|
|
|
* Copyright 2012-2021 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -60,12 +60,14 @@ public class ElasticProperties extends StepRegistryProperties {
|
|
|
|
|
private boolean autoCreateIndex = true;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Login user of the Elastic server.
|
|
|
|
|
* Login user of the Elastic server. If API key is configured, it will be used for
|
|
|
|
|
* authentication instead of username/password.
|
|
|
|
|
*/
|
|
|
|
|
private String userName;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Login password of the Elastic server.
|
|
|
|
|
* Login password of the Elastic server. If API key is configured, it will be used for
|
|
|
|
|
* authentication instead of username/password.
|
|
|
|
|
*/
|
|
|
|
|
private String password;
|
|
|
|
|
|
|
|
|
@ -74,6 +76,12 @@ public class ElasticProperties extends StepRegistryProperties {
|
|
|
|
|
*/
|
|
|
|
|
private String pipeline;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Base64-encoded credentials string. If configured, it will be used for
|
|
|
|
|
* authentication instead of username/password.
|
|
|
|
|
*/
|
|
|
|
|
private String apiKeyCredentials;
|
|
|
|
|
|
|
|
|
|
public String getHost() {
|
|
|
|
|
return this.host;
|
|
|
|
|
}
|
|
|
|
@ -146,4 +154,12 @@ public class ElasticProperties extends StepRegistryProperties {
|
|
|
|
|
this.pipeline = pipeline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getApiKeyCredentials() {
|
|
|
|
|
return this.apiKeyCredentials;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setApiKeyCredentials(String apiKeyCredentials) {
|
|
|
|
|
this.apiKeyCredentials = apiKeyCredentials;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|