public class ReplicaSetManagedMongoDb
extends org.junit.rules.ExternalResource
| Modifier | Constructor and Description |
|---|---|
protected |
ReplicaSetManagedMongoDb(ReplicaSetGroup replicaSetGroup) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
protected ConfigurationDocument |
getConfigurationDocument() |
List<ManagedMongoDbLifecycleManager> |
getReplicaSetServers() |
ManagedMongoDbLifecycleManager |
getServerByPortAndState(int port,
boolean state) |
protected List<ManagedMongoDbLifecycleManager> |
getServers() |
String |
replicaSetName() |
void |
shutdownServer(int port) |
void |
startAllReplicaSet() |
void |
startupServer(int port) |
void |
stopAllReplicaSet() |
void |
waitUntilReplicaSetBecomesStable() |
protected ReplicaSetManagedMongoDb(ReplicaSetGroup replicaSetGroup)
public String replicaSetName()
public List<ManagedMongoDbLifecycleManager> getReplicaSetServers()
public void shutdownServer(int port)
public void waitUntilReplicaSetBecomesStable()
public ManagedMongoDbLifecycleManager getServerByPortAndState(int port, boolean state)
protected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourcepublic void stopAllReplicaSet()
protected List<ManagedMongoDbLifecycleManager> getServers()
protected ConfigurationDocument getConfigurationDocument()
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.