Class NeptuneConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<NeptuneConfig.Builder,NeptuneConfig>
io.floci.testcontainers.config.services.NeptuneConfig.Builder
- Enclosing class:
- NeptuneConfig
public static class NeptuneConfig.Builder
extends AbstractServiceConfigBuilder<NeptuneConfig.Builder,NeptuneConfig>
Builder for
NeptuneConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableNeptuneConfigfrom this builder.Sets the backend graph engine and query language for Neptune:gremlin(Apache TinkerPop, Gremlin over WebSocket) orneo4j(Neo4j, openCypher over Bolt).defaultImage(String defaultImage) Sets the default Docker image for Neptune (Gremlin Server) instances, used whendb-type=gremlin.defaultNeo4jImage(String defaultNeo4jImage) Sets the default Docker image for Neptune (Neo4j / openCypher) instances, used whendb-type=neo4j.dockerNetwork(String dockerNetwork) Sets the Docker network that Neptune containers should join.proxyPortRange(int basePort, int amount) Sets the port range for the Neptune proxy.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
proxyPortRange
Sets the port range for the Neptune proxy.- Parameters:
basePort- the base port (default 8182)amount- the amount of ports (default 10)- Returns:
- this builder
-
dbType
Sets the backend graph engine and query language for Neptune:gremlin(Apache TinkerPop, Gremlin over WebSocket) orneo4j(Neo4j, openCypher over Bolt). Mirrors LocalStack'sNEPTUNE_DB_TYPE.- Parameters:
dbType- the database type (default "gremlin")- Returns:
- this builder
-
defaultImage
Sets the default Docker image for Neptune (Gremlin Server) instances, used whendb-type=gremlin.- Parameters:
defaultImage- the image name (default "tinkerpop/gremlin-server:3.7.3")- Returns:
- this builder
-
defaultNeo4jImage
Sets the default Docker image for Neptune (Neo4j / openCypher) instances, used whendb-type=neo4j.- Parameters:
defaultNeo4jImage- the image name (default "neo4j:5-community")- Returns:
- this builder
-
dockerNetwork
Sets the Docker network that Neptune containers should join.- Parameters:
dockerNetwork- the network name, ornullto use the default bridge- Returns:
- this builder
-
build
Creates an immutableNeptuneConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<NeptuneConfig.Builder,NeptuneConfig> - Returns:
- the Neptune configuration
-