de.flapdoodle.embed.mongo
Class MongodProcess

java.lang.Object
  extended by de.flapdoodle.embed.process.runtime.AbstractProcess<MongodConfig,MongodExecutable,MongodProcess>
      extended by de.flapdoodle.embed.mongo.MongodProcess

public class MongodProcess
extends de.flapdoodle.embed.process.runtime.AbstractProcess<MongodConfig,MongodExecutable,MongodProcess>


Field Summary
static int TIMEOUT
           
 
Constructor Summary
MongodProcess(de.flapdoodle.embed.process.distribution.Distribution distribution, MongodConfig config, de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig, MongodExecutable mongodExecutable)
           
 
Method Summary
protected  List<String> getCommandLine(de.flapdoodle.embed.process.distribution.Distribution distribution, MongodConfig config, File exe)
           
protected  void onAfterProcessStart(de.flapdoodle.embed.process.runtime.ProcessControl process, de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
           
protected  void onBeforeProcess(de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
           
 void stop()
           
protected  de.flapdoodle.embed.process.config.ISupportConfig supportConfig()
           
 
Methods inherited from class de.flapdoodle.embed.process.runtime.AbstractProcess
getConfig, onBeforeProcessStart, sendKillToProcess, setProcessId, stopProcess, tryKillToProcess, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMEOUT

public static final int TIMEOUT
See Also:
Constant Field Values
Constructor Detail

MongodProcess

public MongodProcess(de.flapdoodle.embed.process.distribution.Distribution distribution,
                     MongodConfig config,
                     de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig,
                     MongodExecutable mongodExecutable)
              throws IOException
Throws:
IOException
Method Detail

onBeforeProcess

protected void onBeforeProcess(de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
                        throws IOException
Overrides:
onBeforeProcess in class de.flapdoodle.embed.process.runtime.AbstractProcess<MongodConfig,MongodExecutable,MongodProcess>
Throws:
IOException

onAfterProcessStart

protected void onAfterProcessStart(de.flapdoodle.embed.process.runtime.ProcessControl process,
                                   de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
                            throws IOException
Overrides:
onAfterProcessStart in class de.flapdoodle.embed.process.runtime.AbstractProcess<MongodConfig,MongodExecutable,MongodProcess>
Throws:
IOException

supportConfig

protected de.flapdoodle.embed.process.config.ISupportConfig supportConfig()
Specified by:
supportConfig in class de.flapdoodle.embed.process.runtime.AbstractProcess<MongodConfig,MongodExecutable,MongodProcess>

getCommandLine

protected List<String> getCommandLine(de.flapdoodle.embed.process.distribution.Distribution distribution,
                                      MongodConfig config,
                                      File exe)
                               throws IOException
Specified by:
getCommandLine in class de.flapdoodle.embed.process.runtime.AbstractProcess<MongodConfig,MongodExecutable,MongodProcess>
Throws:
IOException

stop

public void stop()
Specified by:
stop in class de.flapdoodle.embed.process.runtime.AbstractProcess<MongodConfig,MongodExecutable,MongodProcess>


Copyright © 2012. All Rights Reserved.