Class OpenshiftMongoDB
- java.lang.Object
-
- software.tnb.db.mongodb.service.MongoDB
-
- software.tnb.db.mongodb.resource.openshift.OpenshiftMongoDB
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,Deployable,OpenshiftDeployable,ReusableOpenshiftDeployable,WithDockerImage,WithExternalHostname,WithInClusterHostname,WithName,Service
@AutoService(MongoDB.class) public class OpenshiftMongoDB extends MongoDB implements ReusableOpenshiftDeployable, WithName, WithInClusterHostname, WithExternalHostname
-
-
Constructor Summary
Constructors Constructor Description OpenshiftMongoDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()protected com.mongodb.client.MongoClientclient()voidcloseResources()voidcreate()StringexternalHostname()Stringhostname()booleanisDeployed()booleanisReady()Stringname()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.OpenshiftDeployable
deploy, waitTime
-
Methods inherited from interface software.tnb.common.deployment.ReusableOpenshiftDeployable
afterAll, beforeAll
-
Methods inherited from interface software.tnb.common.deployment.WithDockerImage
image
-
Methods inherited from interface software.tnb.common.deployment.WithInClusterHostname
inClusterHostname
-
-
-
-
Method Detail
-
create
public void create()
- Specified by:
createin interfaceOpenshiftDeployable
-
undeploy
public void undeploy()
- Specified by:
undeployin interfaceDeployable
-
openResources
public void openResources()
- Specified by:
openResourcesin interfaceDeployable
-
isReady
public boolean isReady()
- Specified by:
isReadyin interfaceOpenshiftDeployable
-
isDeployed
public boolean isDeployed()
- Specified by:
isDeployedin interfaceOpenshiftDeployable
-
replicaSetUrl
public String replicaSetUrl()
- Specified by:
replicaSetUrlin classMongoDB
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceReusableOpenshiftDeployable
-
closeResources
public void closeResources()
- Specified by:
closeResourcesin interfaceDeployable
-
externalHostname
public String externalHostname()
- Specified by:
externalHostnamein interfaceWithExternalHostname
-
-