de.flapdoodle.embed.mongo.tests
Class MongosSystemForTestFactory
java.lang.Object
de.flapdoodle.embed.mongo.tests.MongosSystemForTestFactory
public class MongosSystemForTestFactory
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MongosSystemForTestFactory
public MongosSystemForTestFactory(MongosConfig config,
Map<String,List<MongodConfig>> replicaSets,
List<MongodConfig> configServers,
String shardDatabase,
String shardCollection,
String shardKey)
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.