Package de.flapdoodle.embed.process.config.io

Examples of de.flapdoodle.embed.process.config.io.ProcessOutput


    }

    public static ProcessOutput file(String logFile, String encoding) {
        FileOutputStreamProcessor file = new FileOutputStreamProcessor(logFile, encoding);

        return new ProcessOutput(
                new NamedOutputStreamProcessor("[mongod output]", file),
                new NamedOutputStreamProcessor("[mongod error]", file),
                new NamedOutputStreamProcessor("[mongod commands]", file));
    }
View Full Code Here


        return MongodProcessOutputConfig.getDefaultInstance(Command.MongoD);
    }

    public static ProcessOutput none() {
        NoopStreamProcessor noop = new NoopStreamProcessor();
        return new ProcessOutput(noop, noop, noop);
    }
View Full Code Here

                int port = RandomPortNumberGenerator.pickAvailableRandomEphemeralPortNumber();
                IStreamProcessor output = new NullProcessor();

                IRuntimeConfig runtimeConfig = new RuntimeConfigBuilder()
                        .defaults(Command.MongoD)
                        .processOutput(new ProcessOutput(output, output, output))
                        .build();
                IMongodConfig mongodConfig = new MongodConfigBuilder()
                        .version(Version.Main.PRODUCTION)
                        .net(new Net(port, Network.localhostIsIPv6()))
                        .build();
View Full Code Here

TOP

Related Classes of de.flapdoodle.embed.process.config.io.ProcessOutput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.