de.flapdoodle.embed.mongo.tests
Class MongosSystemForTestFactory

java.lang.Object
  extended by de.flapdoodle.embed.mongo.tests.MongosSystemForTestFactory

public class MongosSystemForTestFactory
extends Object


Field Summary
static String ADMIN_DATABASE_NAME
           
static String LOCAL_DATABASE_NAME
           
static String OPLOG_COLLECTION
           
static String REPLICA_SET_NAME
           
 
Constructor Summary
MongosSystemForTestFactory(MongosConfig config, Map<String,List<MongodConfig>> replicaSets, List<MongodConfig> configServers, String shardDatabase, String shardCollection, String shardKey)
           
 
Method Summary
 com.mongodb.Mongo getMongo()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMIN_DATABASE_NAME

public static final String ADMIN_DATABASE_NAME
See Also:
Constant Field Values

LOCAL_DATABASE_NAME

public static final String LOCAL_DATABASE_NAME
See Also:
Constant Field Values

REPLICA_SET_NAME

public static final String REPLICA_SET_NAME
See Also:
Constant Field Values

OPLOG_COLLECTION

public static final String OPLOG_COLLECTION
See Also:
Constant Field Values
Constructor Detail

MongosSystemForTestFactory

public MongosSystemForTestFactory(MongosConfig config,
                                  Map<String,List<MongodConfig>> replicaSets,
                                  List<MongodConfig> configServers,
                                  String shardDatabase,
                                  String shardCollection,
                                  String shardKey)
Method Detail

start

public void start()
           throws Throwable
Throws:
Throwable

getMongo

public com.mongodb.Mongo getMongo()
                           throws UnknownHostException,
                                  com.mongodb.MongoException
Throws:
UnknownHostException
com.mongodb.MongoException

stop

public void stop()


Copyright © 2012. All Rights Reserved.