Class ArangoDBConfigurationBuilder
java.lang.Object
com.arangodb.tinkerpop.gremlin.utils.ArangoDBConfigurationBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDriverProperty
(String key, Object value) Add driver property.org.apache.commons.configuration2.Configuration
build()
Build the configuration.Name of the database to use.edgeDefinitions
(ArangoDBGraphConfig.EdgeDef... configs) Add edge definitions.enableDataDefinition
(boolean enableDataDefinition) Enable data definition changes (DDL operations).org.apache.commons.configuration2.BaseConfiguration
Retrieves the current BaseConfiguration instance.graphClass
(Class<? extends ArangoDBGraph> graphClass) Specify which graph to instantiate.graphType
(ArangoDBGraphConfig.GraphType graphType) Set the graph type.Add hosts.Name of the graph to use.orphanCollections
(String... collections) Add orphan collections.Set the db password.protocol
(com.arangodb.Protocol protocol) Set the communication protocol.setDriverProperty
(String key, Object value) Set driver property.sslCertValue
(String certValue) Set the SSL certificate value as Base64 encoded StringSet the db user.useSsl
(boolean useSsl) If set totrue
SSL will be used when connecting to an ArangoDB server.verifyHost
(Boolean verifyHost) Set whether hostname verification is enabled
-
Constructor Details
-
ArangoDBConfigurationBuilder
public ArangoDBConfigurationBuilder()
-
-
Method Details
-
setDriverProperty
Set driver property. Properties fromArangoConfigProperties
can be set using this method.- Parameters:
key
- property keyvalue
- property value- Returns:
- this
-
addDriverProperty
Add driver property. If it already exists then the value stated here will be added to the configuration entry. Properties fromArangoConfigProperties
can be set using this method.- Parameters:
key
- property keyvalue
- property value- Returns:
- this
-
db
Name of the database to use.- Parameters:
name
- the db name- Returns:
- this
-
name
Name of the graph to use.- Parameters:
name
- the graph name- Returns:
- this
-
graphType
Set the graph type.- Parameters:
graphType
- the graph type- Returns:
- this
-
graphClass
Specify which graph to instantiate.- Parameters:
graphClass
- the graph class- Returns:
- this
-
orphanCollections
Add orphan collections.- Parameters:
collections
- the orphan collections names- Returns:
- this
-
edgeDefinitions
Add edge definitions.- Parameters:
configs
- the edge definitions- Returns:
- this
-
hosts
Add hosts.- Parameters:
hosts
- the hosts in the form of host:port- Returns:
- this
-
user
Set the db user.- Parameters:
user
- the user- Returns:
- this
-
password
Set the db password.- Parameters:
password
- the password- Returns:
- this
-
protocol
Set the communication protocol.- Parameters:
protocol
- the protocol- Returns:
- this
-
useSsl
If set totrue
SSL will be used when connecting to an ArangoDB server.- Parameters:
useSsl
- whether or not use SSL (default:false
)- Returns:
- this
-
sslCertValue
Set the SSL certificate value as Base64 encoded String- Parameters:
certValue
- the SSL certificate value as Base64 encoded String- Returns:
- this
-
verifyHost
Set whether hostname verification is enabled- Parameters:
verifyHost
-true
if enabled- Returns:
- this
-
enableDataDefinition
Enable data definition changes (DDL operations). Default:false
- Parameters:
enableDataDefinition
- true to allow data definition changes, false otherwise- Returns:
- this
-
getConfig
public org.apache.commons.configuration2.BaseConfiguration getConfig()Retrieves the current BaseConfiguration instance.- Returns:
- the current BaseConfiguration instance being used.
-
build
public org.apache.commons.configuration2.Configuration build()Build the configuration.- Returns:
- a configuration that can be used to instantiate a new
ArangoDBGraph
. - See Also:
-