public class ServerTestDriverSupport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_USER_NAME
A test admin user name.
|
static int |
DEFAULT_PORT
The default MongoDB port.
|
protected static ClusterTestSupport |
ourClusterTestSupport
Support for spinning up clusters.
|
static char[] |
PASSWORD
A test password.
|
static String |
USER_DB
A test admin user name.
|
static String |
USER_NAME
A test user name.
|
Constructor and Description |
---|
ServerTestDriverSupport() |
Modifier and Type | Method and Description |
---|---|
protected static void |
repairReplicaSet()
Repairs a MongoDB instance running in a replica set mode.
|
protected static void |
startAuthenticated()
Starts a MongoDB instance running in a standalone mode.
|
protected static void |
startReplicaSet()
Starts a MongoDB instance running in a replica set mode.
|
protected static void |
startSharded()
Starts a MongoDB instance running in a sharded mode.
|
protected static void |
startShardedReplicaSets()
Starts a MongoDB instance running in a sharded cluster of replica sets.
|
protected static void |
startStandAlone()
Starts a MongoDB instance running in a standalone mode.
|
static void |
stopReplicaSet()
Stops the servers running in a replica set mode.
|
static void |
stopSharded()
Stops the servers running in a sharded mode.
|
static void |
stopShardedReplicaSets()
Stops the servers running in a sharded cluster of replica sets.
|
static void |
stopStandAlone()
Stops the servers running in a standalone mode.
|
public static final String ADMIN_USER_NAME
public static final int DEFAULT_PORT
public static final char[] PASSWORD
public static final String USER_DB
public static final String USER_NAME
protected static final ClusterTestSupport ourClusterTestSupport
public static void stopReplicaSet()
public static void stopSharded()
public static void stopShardedReplicaSets()
public static void stopStandAlone()
protected static void repairReplicaSet()
ClusterTestSupport.startReplicaSet()
protected static void startAuthenticated()
protected static void startReplicaSet()
ClusterTestSupport.startReplicaSet()
protected static void startSharded()
ClusterTestSupport.startSharded()
protected static void startShardedReplicaSets()
protected static void startStandAlone()
ClusterTestSupport.startStandAlone()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.