Package software.tnb.db.common.openshift
Class OpenshiftDB
- java.lang.Object
-
- software.tnb.db.common.openshift.OpenshiftDB
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,Deployable,OpenshiftDeployable,WithName
public class OpenshiftDB extends Object implements OpenshiftDeployable, WithName
-
-
Constructor Summary
Constructors Constructor Description OpenshiftDB(SQL sqlService, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseResources()voidcreate()booleanisDeployed()intlocalPort()Stringname()voidopenResources()Predicate<io.fabric8.kubernetes.api.model.Pod>podSelector()voidundeploy()-
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
beforeAll
-
Methods inherited from interface software.tnb.common.deployment.OpenshiftDeployable
afterAll, deploy, isReady, restart, servicePod, servicePods, waitTime
-
-
-
-
Constructor Detail
-
OpenshiftDB
public OpenshiftDB(SQL sqlService, int port)
-
-
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
-
closeResources
public void closeResources()
- Specified by:
closeResourcesin interfaceDeployable
-
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
-
localPort
public int localPort()
-
-