Class OpenshiftCryostat
java.lang.Object
software.tnb.common.service.Service<Account,CryostatClient,CryostatValidation>
software.tnb.cryostat.service.Cryostat
software.tnb.cryostat.resource.openshift.OpenshiftCryostat
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,Deployable,OpenshiftDeployable,ReusableOpenshiftDeployable,WithOperatorHub
@AutoService(Cryostat.class)
public class OpenshiftCryostat
extends Cryostat
implements ReusableOpenshiftDeployable, WithOperatorHub
-
Field Summary
Fields inherited from class software.tnb.common.service.Service
account, client, validation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()client()voidClose all resources used after before the service is undeployed.voidcreate()intgetPortMapping(int port) booleanbooleanisReady()voidOpen all resources needed after the service is deployed - initialize clients and stuff.Predicate<io.fabric8.kubernetes.api.model.Pod>voidundeploy()Methods inherited from class software.tnb.cryostat.service.Cryostat
validationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.tnb.common.deployment.OpenshiftDeployable
deploy, restart, servicePod, servicePods, waitTimeMethods inherited from interface software.tnb.common.deployment.ReusableOpenshiftDeployable
afterAll, beforeAllMethods inherited from interface software.tnb.common.deployment.WithOperatorHub
clusterWide, createSubscription, deleteSubscription, getOperatorCatalog, getOperatorCatalogNamespace, getOperatorChannel, getOperatorEnvVariables, getOperatorName, operatorCatalog, operatorCatalogNamespace, operatorChannel, subscriptionName, targetNamespace
-
Constructor Details
-
OpenshiftCryostat
public OpenshiftCryostat()
-
-
Method Details
-
undeploy
public void undeploy()- Specified by:
undeployin interfaceDeployable
-
openResources
public void openResources()Open all resources needed after the service is deployed - initialize clients and stuff.- Specified by:
openResourcesin interfaceDeployable
-
closeResources
public void closeResources()Close all resources used after before the service is undeployed.- Specified by:
closeResourcesin interfaceDeployable
-
create
public void create()- Specified by:
createin interfaceOpenshiftDeployable
-
isReady
public boolean isReady()- Specified by:
isReadyin interfaceOpenshiftDeployable
-
isDeployed
public boolean isDeployed()- Specified by:
isDeployedin interfaceOpenshiftDeployable
-
podSelector
- Specified by:
podSelectorin interfaceOpenshiftDeployable
-
connectionUrl
- Specified by:
connectionUrlin classCryostat
-
client
-
getPortMapping
public int getPortMapping(int port) - Specified by:
getPortMappingin classCryostat
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceReusableOpenshiftDeployable
-
operatorName
- Specified by:
operatorNamein interfaceWithOperatorHub
-