Class CouchbaseSettings
java.lang.Object
org.eclipse.jnosql.databases.couchbase.communication.CouchbaseSettings
An immutable structure that has the Couchbase settings.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancom.couchbase.client.java.ClusterReturns the scopeCouchbaseConfigurations.SCOPEReturns the scopeCouchbaseConfigurations.COLLECTIONSgetHost()Returns the hostConfigurations.HOSTorCouchbaseConfigurations.HOSTgetIndex()Returns the scopeCouchbaseConfigurations.INDEXReturns the passwordConfigurations.PASSWORDorCouchbaseConfigurations.PASSWORDgetScope()Returns the scopeCouchbaseConfigurations.SCOPEgetUser()Returns the userConfigurations.USERorCouchbaseConfigurations.USERinthashCode()voidGiven a database/bucket, it creates a basic setup to create a scope, collection, and index.toString()
-
Method Details
-
getHost
Returns the hostConfigurations.HOSTorCouchbaseConfigurations.HOST- Returns:
- the host
Configurations.HOSTorCouchbaseConfigurations.HOST
-
getUser
Returns the userConfigurations.USERorCouchbaseConfigurations.USER- Returns:
- the user
Configurations.USERorCouchbaseConfigurations.USER
-
getPassword
Returns the passwordConfigurations.PASSWORDorCouchbaseConfigurations.PASSWORD- Returns:
- the password
Configurations.PASSWORDorCouchbaseConfigurations.PASSWORD
-
getScope
Returns the scopeCouchbaseConfigurations.SCOPE- Returns:
- the password
CouchbaseConfigurations.SCOPE
-
getCollection
Returns the scopeCouchbaseConfigurations.SCOPE- Returns:
- the password
CouchbaseConfigurations.SCOPE
-
getCollections
Returns the scopeCouchbaseConfigurations.COLLECTIONS- Returns:
- the password
CouchbaseConfigurations.COLLECTIONS
-
getIndex
Returns the scopeCouchbaseConfigurations.INDEX- Returns:
- the password
CouchbaseConfigurations.INDEX
-
getCluster
public com.couchbase.client.java.Cluster getCluster()- Returns:
- a
Clusterinstance
-
setUp
Given a database/bucket, it creates a basic setup to create a scope, collection, and index. It will read the properties from Settings if it does exist. It is for a development proposal. Don't use it on production.- Parameters:
database- the database- Throws:
NullPointerException- when parameter is null
-
equals
-
hashCode
public int hashCode() -
toString
-