Class ArangoDBConfigurationBuilder

java.lang.Object
com.arangodb.tinkerpop.gremlin.utils.ArangoDBConfigurationBuilder

public class ArangoDBConfigurationBuilder extends Object
  • Constructor Details

    • ArangoDBConfigurationBuilder

      public ArangoDBConfigurationBuilder()
  • Method Details

    • setDriverProperty

      public ArangoDBConfigurationBuilder setDriverProperty(String key, Object value)
      Set driver property. Properties from ArangoConfigProperties can be set using this method.
      Parameters:
      key - property key
      value - property value
      Returns:
      this
    • addDriverProperty

      public ArangoDBConfigurationBuilder addDriverProperty(String key, Object value)
      Add driver property. If it already exists then the value stated here will be added to the configuration entry. Properties from ArangoConfigProperties can be set using this method.
      Parameters:
      key - property key
      value - 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

      public ArangoDBConfigurationBuilder graphClass(Class<? extends ArangoDBGraph> graphClass)
      Specify which graph to instantiate.
      Parameters:
      graphClass - the graph class
      Returns:
      this
    • orphanCollections

      public ArangoDBConfigurationBuilder orphanCollections(String... collections)
      Add orphan collections.
      Parameters:
      collections - the orphan collections names
      Returns:
      this
    • edgeDefinitions

      public ArangoDBConfigurationBuilder edgeDefinitions(ArangoDBGraphConfig.EdgeDef... configs)
      Add edge definitions.
      Parameters:
      configs - the edge definitions
      Returns:
      this
    • hosts

      public ArangoDBConfigurationBuilder hosts(String... 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

      public ArangoDBConfigurationBuilder password(String password)
      Set the db password.
      Parameters:
      password - the password
      Returns:
      this
    • protocol

      public ArangoDBConfigurationBuilder protocol(com.arangodb.Protocol protocol)
      Set the communication protocol.
      Parameters:
      protocol - the protocol
      Returns:
      this
    • useSsl

      public ArangoDBConfigurationBuilder useSsl(boolean useSsl)
      If set to true SSL will be used when connecting to an ArangoDB server.
      Parameters:
      useSsl - whether or not use SSL (default: false)
      Returns:
      this
    • sslCertValue

      public ArangoDBConfigurationBuilder sslCertValue(String certValue)
      Set the SSL certificate value as Base64 encoded String
      Parameters:
      certValue - the SSL certificate value as Base64 encoded String
      Returns:
      this
    • verifyHost

      public ArangoDBConfigurationBuilder verifyHost(Boolean verifyHost)
      Set whether hostname verification is enabled
      Parameters:
      verifyHost - true if enabled
      Returns:
      this
    • enableDataDefinition

      public ArangoDBConfigurationBuilder enableDataDefinition(boolean 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: