Package io.ebean.docker.container
Interface Container
-
- All Known Implementing Classes:
BaseDbContainer,ClickHouseContainer,CockroachContainer,ElasticContainer,HanaContainer,JdbcBaseDbContainer,MariaDBContainer,MySqlContainer,NuoDBContainer,OracleContainer,PostgresContainer,RedisContainer,SqlServerContainer
public interface Container
Commands for starting and stopping a DB container.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerConfigconfig()Returns the container configuration.booleanisRunning()Return true if the container is running.booleanstart()Start the container.voidstop()Stop the container using stopMode which defaults to stop and remove.voidstopOnly()Stop the container only (no remove).
-
-
-
Method Detail
-
config
ContainerConfig config()
Returns the container configuration.
-
start
boolean start()
Start the container.
-
stop
void stop()
Stop the container using stopMode which defaults to stop and remove.
-
stopOnly
void stopOnly()
Stop the container only (no remove).
-
isRunning
boolean isRunning()
Return true if the container is running.
-
-