Class CouchbaseRemoteAnalyticsLink
java.lang.Object
com.couchbase.client.java.manager.analytics.link.AnalyticsLink
com.couchbase.client.java.manager.analytics.link.CouchbaseRemoteAnalyticsLink
An analytics link to a remote couchbase cluster.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Security options for remote Couchbase links. -
Constructor Summary
ConstructorDescriptionCouchbaseRemoteAnalyticsLink
(String name, String dataverse) Creates a new Analytics Link to a remote Couchbase cluster. -
Method Summary
Modifier and TypeMethodDescriptionReturns the certificate when encryption is used.certificate
(String certificate) Sets the certificate when encryption is used.Returns the client certificate when encryption is used.clientCertificate
(String clientCertificate) Sets the client certificate when encryption is used.Returns the client key.Sets the client key.Returns the encryption level for the link to the remote cluster.Sets the encryption level for the link to the remote cluster (required).hostname()
Returns the hostname of the remote cluster.Sets the hostname of the remote cluster (required).password()
Sets the password when connecting to the remote cluster.Sets the password when connecting to the remote cluster (required).toString()
type()
Returns the type of the link.username()
Returns the username when connecting to the remote cluster.Sets the username when connecting to the remote cluster (required).Methods inherited from class com.couchbase.client.java.manager.analytics.link.AnalyticsLink
couchbaseRemote, dataverse, name, s3, toMap
-
Constructor Details
-
CouchbaseRemoteAnalyticsLink
Creates a new Analytics Link to a remote Couchbase cluster.As an alternative to this constructor,
AnalyticsLink.couchbaseRemote(String, String)
can be used as well.Please note that additional parameters are required and must be set on
CouchbaseRemoteAnalyticsLink
in order for the link to work properly.
-
-
Method Details
-
type
Description copied from class:AnalyticsLink
Returns the type of the link.- Specified by:
type
in classAnalyticsLink
- Returns:
- the type of the link.
-
hostname
Returns the hostname of the remote cluster.- Returns:
- the hostname of the remote cluster.
-
hostname
Sets the hostname of the remote cluster (required).- Parameters:
hostname
- the hostname of the remote cluster.- Returns:
- this
CouchbaseRemoteAnalyticsLink
for chaining purposes.
-
encryption
Returns the encryption level for the link to the remote cluster.- Returns:
- the encryption level for the link to the remote cluster.
-
encryption
public CouchbaseRemoteAnalyticsLink encryption(CouchbaseRemoteAnalyticsLink.EncryptionLevel encryption) Sets the encryption level for the link to the remote cluster (required).- Parameters:
encryption
- the encryption level for the link to the remote cluster.- Returns:
- this
CouchbaseRemoteAnalyticsLink
for chaining purposes.
-
username
Returns the username when connecting to the remote cluster.- Returns:
- the username when connecting to the remote cluster.
-
username
Sets the username when connecting to the remote cluster (required).- Parameters:
username
- the username when connecting to the remote cluster.- Returns:
- this
CouchbaseRemoteAnalyticsLink
for chaining purposes.
-
password
Sets the password when connecting to the remote cluster.- Returns:
- the password when connecting to the remote cluster.
-
password
Sets the password when connecting to the remote cluster (required).- Parameters:
password
- the password when connecting to the remote cluster.- Returns:
- this
CouchbaseRemoteAnalyticsLink
for chaining purposes.
-
certificate
Returns the certificate when encryption is used.- Returns:
- the certificate when encryption is used.
-
certificate
Sets the certificate when encryption is used.- Parameters:
certificate
- the certificate when encryption is used.- Returns:
- this
CouchbaseRemoteAnalyticsLink
for chaining purposes.
-
clientCertificate
Returns the client certificate when encryption is used.- Returns:
- the client certificate when encryption is used.
-
clientCertificate
Sets the client certificate when encryption is used.- Parameters:
clientCertificate
- the client certificate when encryption is used.- Returns:
- this
CouchbaseRemoteAnalyticsLink
for chaining purposes.
-
clientKey
Returns the client key.- Returns:
- the client key.
-
clientKey
Sets the client key.- Parameters:
clientKey
- the client key.- Returns:
- this
CouchbaseRemoteAnalyticsLink
for chaining purposes.
-
toString
-