public class PostgresInfrastructure extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
protected org.testcontainers.containers.Network |
network |
protected static String |
POSTGRES_DEFAULT_DEBEZIUM_IMAGE |
protected static String |
POSTGRES_DEFAULT_IMAGE |
private org.testcontainers.containers.PostgreSQLContainer<?> |
postgresContainer |
protected String |
postgresImageName |
protected static Map<String,PostgresInfrastructure> |
postgresInfrastructures |
| Modifier | Constructor and Description |
|---|---|
private |
PostgresInfrastructure(String postgresImageName) |
| Modifier and Type | Method and Description |
|---|---|
static PostgresInfrastructure |
getDebeziumPostgresInfrastructure() |
static PostgresInfrastructure |
getInfrastructure(String postgresImage) |
ConnectorConfiguration |
getPostgresConnectorConfiguration(int id,
String... options) |
org.testcontainers.containers.PostgreSQLContainer<?> |
getPostgresContainer() |
String |
getPostgresImageName() |
static PostgresInfrastructure |
getPostgresInfrastructure() |
void |
startContainer() |
protected static final String POSTGRES_DEFAULT_IMAGE
protected static final String POSTGRES_DEFAULT_DEBEZIUM_IMAGE
protected static final Map<String,PostgresInfrastructure> postgresInfrastructures
private static final org.slf4j.Logger LOGGER
protected final String postgresImageName
protected final org.testcontainers.containers.Network network
private final org.testcontainers.containers.PostgreSQLContainer<?> postgresContainer
private PostgresInfrastructure(String postgresImageName)
public static PostgresInfrastructure getDebeziumPostgresInfrastructure()
public static PostgresInfrastructure getPostgresInfrastructure()
public static PostgresInfrastructure getInfrastructure(String postgresImage)
public String getPostgresImageName()
public org.testcontainers.containers.PostgreSQLContainer<?> getPostgresContainer()
public void startContainer()
public ConnectorConfiguration getPostgresConnectorConfiguration(int id, String... options)
Copyright © 2020 JBoss by Red Hat. All rights reserved.