|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2018 the original author or authors.
|
|
|
|
* Copyright 2012-2019 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -13,6 +13,7 @@
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.autoconfigure.couchbase;
|
|
|
|
package org.springframework.boot.autoconfigure.couchbase;
|
|
|
|
|
|
|
|
|
|
|
|
import java.time.Duration;
|
|
|
|
import java.time.Duration;
|
|
|
@ -37,19 +38,19 @@ public class CouchbaseProperties {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private List<String> bootstrapHosts;
|
|
|
|
private List<String> bootstrapHosts;
|
|
|
|
|
|
|
|
|
|
|
|
private final Bucket bucket = new Bucket();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final Env env = new Env();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Password of the cluster on RBA(role base access).
|
|
|
|
* Cluster username when using role based access.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private String password = "";
|
|
|
|
private String username;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Username of the cluster on RBA(role base access).
|
|
|
|
* Cluster password when using role based access.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private String username = "";
|
|
|
|
private String password;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final Bucket bucket = new Bucket();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final Env env = new Env();
|
|
|
|
|
|
|
|
|
|
|
|
public List<String> getBootstrapHosts() {
|
|
|
|
public List<String> getBootstrapHosts() {
|
|
|
|
return this.bootstrapHosts;
|
|
|
|
return this.bootstrapHosts;
|
|
|
@ -59,12 +60,12 @@ public class CouchbaseProperties {
|
|
|
|
this.bootstrapHosts = bootstrapHosts;
|
|
|
|
this.bootstrapHosts = bootstrapHosts;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Bucket getBucket() {
|
|
|
|
public String getUsername() {
|
|
|
|
return this.bucket;
|
|
|
|
return this.username;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Env getEnv() {
|
|
|
|
public void setUsername(String username) {
|
|
|
|
return this.env;
|
|
|
|
this.username = username;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getPassword() {
|
|
|
|
public String getPassword() {
|
|
|
@ -75,12 +76,12 @@ public class CouchbaseProperties {
|
|
|
|
this.password = password;
|
|
|
|
this.password = password;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getUsername() {
|
|
|
|
public Bucket getBucket() {
|
|
|
|
return this.username;
|
|
|
|
return this.bucket;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setUsername(String username) {
|
|
|
|
public Env getEnv() {
|
|
|
|
this.username = username;
|
|
|
|
return this.env;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Bucket {
|
|
|
|
public static class Bucket {
|
|
|
|