public final class ConfigurationBuilder
extends java.lang.Object
Configuration builder.
It also validates configuration parameters.| Constructor and Description |
|---|
ConfigurationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
build()
Builds a
Configuration instance after validating the specified
parameters. |
ConfigurationBuilder |
withClassLoader(java.lang.ClassLoader classLoader)
Sets ClassLoader to use when reading Liquigraph changelogs.
|
ConfigurationBuilder |
withDryRunMode(java.nio.file.Path outputDirectory)
Sets Liquigraph to write changesets in a
output.cypher
in the specified outputDirectory. |
ConfigurationBuilder |
withExecutionContexts(java.util.Collection<java.lang.String> executionContexts)
Specifies one or more execution contexts.
|
ConfigurationBuilder |
withExecutionContexts(java.lang.String... executionContexts) |
ConfigurationBuilder |
withMasterChangelogLocation(java.lang.String masterChangelog)
Specifies the location of the master changelog file.
|
ConfigurationBuilder |
withPassword(java.lang.String password)
Specifies the password allowed to connect to the remote graph database instance.
|
ConfigurationBuilder |
withRunMode()
Sets Liquigraph to execute changesets against the configured graph database.
|
ConfigurationBuilder |
withUri(java.lang.String uri)
Specifies the JDBC connection URI of the graph database instance.
|
ConfigurationBuilder |
withUsername(java.lang.String username)
Specifies the username allowed to connect to the remote graph database instance.
|
public ConfigurationBuilder withMasterChangelogLocation(java.lang.String masterChangelog)
masterChangelog - Liquigraph changelogpublic ConfigurationBuilder withUri(java.lang.String uri)
uri - connection URIpublic ConfigurationBuilder withUsername(java.lang.String username)
username - usernamepublic ConfigurationBuilder withPassword(java.lang.String password)
password - passwordpublic ConfigurationBuilder withExecutionContexts(java.lang.String... executionContexts)
public ConfigurationBuilder withExecutionContexts(java.util.Collection<java.lang.String> executionContexts)
executionContexts - non-nullable execution contextspublic ConfigurationBuilder withRunMode()
public ConfigurationBuilder withDryRunMode(java.nio.file.Path outputDirectory)
output.cypher
in the specified outputDirectory.
Note that it won't write to the graph database.outputDirectory - writable directory where the file is writtenpublic ConfigurationBuilder withClassLoader(java.lang.ClassLoader classLoader)
Thread.currentThread().getContextClassLoader().
Don't call this unless you REALLY know what you're doing.classLoader - class loaderpublic Configuration build()
Configuration instance after validating the specified
parameters.Copyright © 2014. All Rights Reserved.