Package io.ebean.docker.commands
Class ElasticContainer
- java.lang.Object
-
- io.ebean.docker.commands.ElasticContainer
-
- All Implemented Interfaces:
Container
public class ElasticContainer extends Object
-
-
Constructor Summary
Constructors Constructor Description ElasticContainer(ElasticConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerConfigconfig()Returns the container configuration.static ElasticContainercreate(String elasticVersion, Properties properties)Create the ElasticContainer with configuration via properties.booleanisRunning()Return true if the container is running.voidregisterShutdownHook()Register a JVM Shutdown hook to stop the container with the given mode.booleanstart()Start the container.voidstop()Stop using the configured stopMode of 'stop' or 'remove'.voidstopOnly()Stop the container only (no remove).voidstopRemove()Stop and remove the container effectively deleting the database.
-
-
-
Constructor Detail
-
ElasticContainer
public ElasticContainer(ElasticConfig config)
-
-
Method Detail
-
create
public static ElasticContainer create(String elasticVersion, Properties properties)
Create the ElasticContainer with configuration via properties.
-
config
public ContainerConfig config()
Description copied from interface:ContainerReturns the container configuration.
-
start
public boolean start()
Description copied from interface:ContainerStart the container.
-
isRunning
public boolean isRunning()
Description copied from interface:ContainerReturn true if the container is running.
-
registerShutdownHook
public void registerShutdownHook()
Register a JVM Shutdown hook to stop the container with the given mode.
-
stop
public void stop()
Stop using the configured stopMode of 'stop' or 'remove'.Remove additionally removes the container (expected use in build agents).
-
stopRemove
public void stopRemove()
Stop and remove the container effectively deleting the database.
-
-