public class Neo4jResourceManager extends TestContainerResourceManager<Neo4jContainer<?>> implements org.apache.beam.it.common.ResourceManager
The database name is formed using testId. The database name will be "{testId}-{ISO8601 time, microsecond precision}", with additional formatting.
The class is thread-safe.
Modifier and Type | Class and Description |
---|---|
static class |
Neo4jResourceManager.Builder
Builder for
Neo4jResourceManager . |
HOST_IP, port
Modifier and Type | Method and Description |
---|---|
static Neo4jResourceManager.Builder |
builder(java.lang.String testId) |
void |
cleanupAll()
Deletes all created resources (VM's, etc.) and stops the container, making the manager object
unusable.
|
java.lang.String |
getAdminPassword() |
java.lang.String |
getDatabaseName()
Returns the name of the Database that this Neo4j manager will operate in.
|
java.lang.String |
getUri()
Returns the URI connection string to the Neo4j Database.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
run(java.lang.String query) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
run(java.lang.String query,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
getDockerImageName, getHost, getPort
public static Neo4jResourceManager.Builder builder(java.lang.String testId)
public java.lang.String getUri()
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> run(java.lang.String query)
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> run(java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> parameters)
public java.lang.String getDatabaseName()
public void cleanupAll()
TestContainerResourceManager
cleanupAll
in interface org.apache.beam.it.common.ResourceManager
cleanupAll
in class TestContainerResourceManager<Neo4jContainer<?>>
public java.lang.String getAdminPassword()