private IArtifactStore getArtifactStore() { IDownloadConfig downloadConfig = new DownloadConfigBuilder().defaultsForCommand(Command.MongoD).proxyFactory(getProxyFactory(settings)).downloadPath(downloadPath).build(); return new ExtractedArtifactStoreBuilder().defaults(Command.MongoD).download(downloadConfig).build(); }
private IArtifactStore getArtifactStore() { IDownloadConfig downloadConfig = new DownloadConfigBuilder().defaultsForCommand(Command.MongoD).proxyFactory(getProxyFactory(settings)).downloadPath(downloadPath).build(); return new ExtractedArtifactStoreBuilder().defaults(Command.MongoD).download(downloadConfig).build(); }
private static MongodExecutable configureMongoDb(final String bindIp, final int mongoDbPort, final IProxyFactory proxyFactory) throws IOException { final Command command = Command.MongoD; final MongodStarter mongodStarter = MongodStarter.getInstance(new RuntimeConfigBuilder() .defaults(command) .processOutput(ProcessOutput.getDefaultInstanceSilent()) .artifactStore(new ArtifactStoreBuilder() .defaults(command) .download(new DownloadConfigBuilder() .defaultsForCommand(command) .proxyFactory(proxyFactory) .progressListener(new StandardConsoleProgressListener()) ) ) .build()); return mongodStarter.prepare(new MongodConfigBuilder() .net(new Net(bindIp, mongoDbPort, false)) .version(Version.Main.PRODUCTION) .cmdOptions(new MongoCmdOptionsBuilder() .useStorageEngine("wiredTiger") .useNoJournal(false) .build()) .build()); }