Class LocalCryostat
java.lang.Object
software.tnb.common.service.Service<Account,CryostatClient,CryostatValidation>
software.tnb.cryostat.service.Cryostat
software.tnb.cryostat.resource.local.LocalCryostat
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,Deployable,WithDockerImage
@AutoService(Cryostat.class)
public class LocalCryostat
extends Cryostat
implements Deployable, WithDockerImage
-
Field Summary
Fields inherited from class software.tnb.common.service.Service
account, client, validationFields inherited from interface software.tnb.common.deployment.WithDockerImage
SYSTEM_PROPERTY_FORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclient()voidClose all resources used after before the service is undeployed.voiddeploy()intgetPortMapping(int port) voidOpen all resources needed after the service is deployed - initialize clients and stuff.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.Deployable
afterAll, beforeAll, restartMethods inherited from interface software.tnb.common.deployment.WithDockerImage
image
-
Constructor Details
-
LocalCryostat
public LocalCryostat()
-
-
Method Details
-
deploy
public void deploy()- Specified by:
deployin interfaceDeployable
-
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
-
connectionUrl
- Specified by:
connectionUrlin classCryostat
-
client
-
getPortMapping
public int getPortMapping(int port) - Specified by:
getPortMappingin classCryostat
-
containerEnvironment
-
defaultImage
- Specified by:
defaultImagein interfaceWithDockerImage
-