Package io.ebean.docker.commands
Class NuoDBContainer
- java.lang.Object
-
- io.ebean.docker.commands.JdbcBaseDbContainer
-
- io.ebean.docker.commands.NuoDBContainer
-
- All Implemented Interfaces:
Container
public class NuoDBContainer extends JdbcBaseDbContainer
-
-
Constructor Summary
Constructors Constructor Description NuoDBContainer(NuoDBConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerConfigconfig()Returns the container configuration.static NuoDBContainercreate(String version, Properties properties)Create NuoDB container with configuration from properties.ConnectioncreateConnection()Create a connection to this database container.booleanisDatabaseReady()booleanisRunning()Return true if the container is running.StringjdbcUrl()Return the JDBC url to connect to this container.voidregisterShutdownHook()Register a JVM Shutdown hook to stop the container with the given mode.booleanstart()Start the container.booleanstartContainerOnly()Start the container only without creating database, user, extensions etc.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.-
Methods inherited from class io.ebean.docker.commands.JdbcBaseDbContainer
startWithCreate, startWithDropCreate, waitForDatabaseReady
-
-
-
-
Constructor Detail
-
NuoDBContainer
public NuoDBContainer(NuoDBConfig config)
-
-
Method Detail
-
create
public static NuoDBContainer create(String version, Properties properties)
Create NuoDB container with configuration from properties.
-
stopRemove
public void stopRemove()
Stop and remove the container effectively deleting the database.
-
stopOnly
public void stopOnly()
Stop the container only (no remove).
-
isDatabaseReady
public boolean isDatabaseReady()
-
jdbcUrl
public String jdbcUrl()
Return the JDBC url to connect to this container.
-
createConnection
public Connection createConnection() throws SQLException
Create a connection to this database container.- Throws:
SQLException
-
start
public boolean start()
Description copied from interface:ContainerStart the container.
-
startContainerOnly
public boolean startContainerOnly()
Start the container only without creating database, user, extensions etc.
-
config
public ContainerConfig config()
Description copied from interface:ContainerReturns the container configuration.
-
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.
-
-