de.flapdoodle.embedmongo.runtime
Class Mongod

java.lang.Object
  extended by de.flapdoodle.embedmongo.runtime.Mongod

public class Mongod
extends Object


Field Summary
static int BYTE_BUFFER_LENGTH
           
static int CONNECT_TIMEOUT
           
static int SOCKET_TIMEOUT
           
static int WAITING_TIME_SHUTDOWN_IN_MS
           
 
Constructor Summary
Mongod()
           
 
Method Summary
static List<String> enhanceCommandLinePlattformSpecific(Distribution distribution, List<String> commands)
           
static List<String> getCommandLine(MongodConfig config, File mongodExecutable, File dbDir)
           
static int getMongodProcessId(String output, int defaultValue)
           
static boolean sendShutdown(InetAddress hostname, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOCKET_TIMEOUT

public static final int SOCKET_TIMEOUT
See Also:
Constant Field Values

CONNECT_TIMEOUT

public static final int CONNECT_TIMEOUT
See Also:
Constant Field Values

BYTE_BUFFER_LENGTH

public static final int BYTE_BUFFER_LENGTH
See Also:
Constant Field Values

WAITING_TIME_SHUTDOWN_IN_MS

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

Mongod

public Mongod()
Method Detail

sendShutdown

public static boolean sendShutdown(InetAddress hostname,
                                   int port)

getMongodProcessId

public static int getMongodProcessId(String output,
                                     int defaultValue)

getCommandLine

public static List<String> getCommandLine(MongodConfig config,
                                          File mongodExecutable,
                                          File dbDir)
                                   throws UnknownHostException
Throws:
UnknownHostException

enhanceCommandLinePlattformSpecific

public static List<String> enhanceCommandLinePlattformSpecific(Distribution distribution,
                                                               List<String> commands)


Copyright © 2012. All Rights Reserved.