Package io.ebean.test.containers
Interface ContainerConfig
public interface ContainerConfig
Configuration details associated with a container.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the container name.Return a DB connection using the admin user.Return a DB connection using the admin user with the given jdbc url.Return a DB connection.Return a DB connection without schema (as it maybe is not created yet).Return a DB connection url for the admin database user.Return a DB connection url or null for the extra database.jdbcUrl()Return a DB connection url or null if not a database container.platform()Return the type of container.intport()Return the port this container is using.Return a good description for starting the container typically for logging.Return a good description for stopping the container typically for logging.version()Return the image version.
-
Method Details
-
platform
String platform()Return the type of container. postgres, mysql, elastic etc. -
containerName
String containerName()Return the container name. -
version
String version()Return the image version. -
port
int port()Return the port this container is using.This is typically useful if the container was started with a random port and, we need to know what that port was.
-
jdbcUrl
String jdbcUrl()Return a DB connection url or null if not a database container. -
jdbcExtraUrl
String jdbcExtraUrl()Return a DB connection url or null for the extra database. -
jdbcAdminUrl
String jdbcAdminUrl()Return a DB connection url for the admin database user. -
createConnection
Return a DB connection.- Throws:
SQLException
-
createConnectionNoSchema
Return a DB connection without schema (as it maybe is not created yet).- Throws:
SQLException
-
createAdminConnection
Return a DB connection using the admin user.- Throws:
SQLException
-
createAdminConnection
Return a DB connection using the admin user with the given jdbc url.- Throws:
SQLException
-
startDescription
String startDescription()Return a good description for starting the container typically for logging. -
stopDescription
String stopDescription()Return a good description for stopping the container typically for logging.
-