Class ReplicaSetManagedMongoDb

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class ReplicaSetManagedMongoDb
    extends org.junit.rules.ExternalResource
    • Constructor Detail

      • ReplicaSetManagedMongoDb

        protected ReplicaSetManagedMongoDb​(ReplicaSetGroup replicaSetGroup)
    • Method Detail

      • replicaSetName

        public java.lang.String replicaSetName()
      • shutdownServer

        public void shutdownServer​(int port)
      • waitUntilReplicaSetBecomesStable

        public void waitUntilReplicaSetBecomesStable()
      • startupServer

        public void startupServer​(int port)
                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • before

        protected void before()
                       throws java.lang.Throwable
        Overrides:
        before in class org.junit.rules.ExternalResource
        Throws:
        java.lang.Throwable
      • startAllReplicaSet

        public void startAllReplicaSet()
                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • after

        protected void after()
        Overrides:
        after in class org.junit.rules.ExternalResource
      • stopAllReplicaSet

        public void stopAllReplicaSet()