Class EmbeddedMongoConfiguration
java.lang.Object
org.ikasan.component.endpoint.mongo.test.EmbeddedMongoConfiguration
Used to keep the configuration in one place for EmbeddedMongo
- Author:
- Kieron Edwards
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPort()voidsetArchiveStorageDirectory(String archiveStorageDirectory) Set the directory where the distribution zip is downloaded tovoidsetDatabaseDirectory(String databaseDirectory) Set the directory for the database filesvoidsetDistributionDirectory(String distributionDirectory) Set the directory where embedded mongo will look for a mongo .zip distribution to download Use this if you are behind a firewall and cant easily access the mongo distribution sitevoidsetHttpProxyHost(String httpProxyHost) voidsetHttpProxyPort(String httpProxyPort) voidvoidsetVersion(String version) Set mongo version ensuring you are using a sufficient version of the mongo-java-driver for this and that you can access the distribution zip associated with this versiontoString()
-
Field Details
-
LOCAL_MONGO_DIST_DIR_PROP
- See Also:
-
CUSTOM_MONGO_DATABASE_DIRECTORY
- See Also:
-
CUSTOM_MONGO_ARCHIVE_STORAGE_DIRECTORY
- See Also:
-
CUSTOM_MONGO_VERSION
- See Also:
-
CUSTOM_MONGO_PORT
- See Also:
-
HTTP_PROXY_HOST
- See Also:
-
HTTP_PROXY_PORT
- See Also:
-
-
Constructor Details
-
EmbeddedMongoConfiguration
public EmbeddedMongoConfiguration()
-
-
Method Details
-
getDistributionDirectory
-
setDistributionDirectory
Set the directory where embedded mongo will look for a mongo .zip distribution to download Use this if you are behind a firewall and cant easily access the mongo distribution site -
getDatabaseDirectory
-
setDatabaseDirectory
Set the directory for the database files -
getArchiveStorageDirectory
-
setArchiveStorageDirectory
Set the directory where the distribution zip is downloaded to -
getVersion
-
setVersion
Set mongo version ensuring you are using a sufficient version of the mongo-java-driver for this and that you can access the distribution zip associated with this version -
getPort
-
setPort
-
getHttpProxyHost
-
setHttpProxyHost
-
getHttpProxyPort
-
setHttpProxyPort
-
toString
-