Class OpenshiftMongoDB
- java.lang.Object
-
- software.tnb.common.service.Service<MongoDBAccount,com.mongodb.client.MongoClient,MongoDBValidation>
-
- 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
@AutoService(MongoDB.class) public class OpenshiftMongoDB extends MongoDB implements ReusableOpenshiftDeployable, WithName, WithInClusterHostname, WithExternalHostname
-
-
Field Summary
-
Fields inherited from class software.tnb.db.mongodb.service.MongoDB
DEFAULT_PORT
-
Fields inherited from class software.tnb.common.service.Service
account, client, validation
-
Fields inherited from interface software.tnb.common.deployment.WithDockerImage
SYSTEM_PROPERTY_FORMAT
-
-
Constructor Summary
Constructors Constructor Description OpenshiftMongoDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()voidcloseResources()voidcreate()StringexternalHostname()Stringhostname()booleanisDeployed()booleanisReady()Stringname()voidopenResources()Predicate<io.fabric8.kubernetes.api.model.Pod>podSelector()StringreplicaSetUrl()voidundeploy()-
Methods inherited from class software.tnb.db.mongodb.service.MongoDB
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, restart, servicePod, servicePods, 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
-
podSelector
public Predicate<io.fabric8.kubernetes.api.model.Pod> podSelector()
- Specified by:
podSelectorin interfaceOpenshiftDeployable- Specified by:
podSelectorin interfaceWithName
-
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
-
-