Class LocalMongoDB
- java.lang.Object
-
- software.tnb.db.mongodb.service.MongoDB
-
- software.tnb.db.mongodb.resource.local.LocalMongoDB
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,Deployable,WithDockerImage,Service
@AutoService(MongoDB.class) public class LocalMongoDB extends MongoDB implements Deployable
-
-
Constructor Summary
Constructors Constructor Description LocalMongoDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.mongodb.client.MongoClientclient()voidcloseResources()voiddeploy()Stringhostname()voidopenResources()StringreplicaSetUrl()voidundeploy()-
Methods inherited from class software.tnb.db.mongodb.service.MongoDB
account, containerEnvironment, defaultImage, port, validation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.tnb.common.deployment.Deployable
afterAll, beforeAll
-
Methods inherited from interface software.tnb.common.deployment.WithDockerImage
image
-
-
-
-
Method Detail
-
deploy
public void deploy()
- Specified by:
deployin interfaceDeployable
-
undeploy
public void undeploy()
- Specified by:
undeployin interfaceDeployable
-
openResources
public void openResources()
- Specified by:
openResourcesin interfaceDeployable
-
closeResources
public void closeResources()
- Specified by:
closeResourcesin interfaceDeployable
-
replicaSetUrl
public String replicaSetUrl()
- Specified by:
replicaSetUrlin classMongoDB
-
-