de.flapdoodle.embedmongo
Class Downloader

java.lang.Object
  extended by de.flapdoodle.embedmongo.Downloader

public class Downloader
extends Object

Class for downloading mongodb runtime


Field Summary
static int BUFFER_LENGTH
           
static int CONNECTION_TIMEOUT
           
static int DEFAULT_CONTENT_LENGTH
           
static int READ_COUNT_MULTIPLIER
           
static int READ_TIMEOUT
           
 
Method Summary
static File download(RuntimeConfig runtime, Distribution distribution)
           
static String getDownloadUrl(RuntimeConfig runtime, Distribution distribution)
          http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.6.5.tgz http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.7.6.tgz http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-1.6.5.zip http://fastdl.mongodb.org/win32/mongodb-win32-i386-1.7.6.zip

http://fastdl.mongodb.org/osx/mongodb-osx-i386-1.6.5.tgz http://fastdl.mongodb.org/osx/mongodb-osx-i386-tiger-1.7.6.tgz

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_TIMEOUT

public static final int CONNECTION_TIMEOUT
See Also:
Constant Field Values

READ_TIMEOUT

public static final int READ_TIMEOUT
See Also:
Constant Field Values

DEFAULT_CONTENT_LENGTH

public static final int DEFAULT_CONTENT_LENGTH
See Also:
Constant Field Values

BUFFER_LENGTH

public static final int BUFFER_LENGTH
See Also:
Constant Field Values

READ_COUNT_MULTIPLIER

public static final int READ_COUNT_MULTIPLIER
See Also:
Constant Field Values
Method Detail

getDownloadUrl

public static String getDownloadUrl(RuntimeConfig runtime,
                                    Distribution distribution)
http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.6.5.tgz http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.7.6.tgz http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-1.6.5.zip http://fastdl.mongodb.org/win32/mongodb-win32-i386-1.7.6.zip

http://fastdl.mongodb.org/osx/mongodb-osx-i386-1.6.5.tgz http://fastdl.mongodb.org/osx/mongodb-osx-i386-tiger-1.7.6.tgz


download

public static File download(RuntimeConfig runtime,
                            Distribution distribution)
                     throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.