Package io.micronaut.neo4j.bolt.embedded
Class EmbeddedNeo4jServer
java.lang.Object
io.micronaut.neo4j.bolt.embedded.EmbeddedNeo4jServer
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<Neo4jBoltConfiguration>
,Closeable
,AutoCloseable
,EventListener
@Deprecated(since="6.0.2",
forRemoval=true)
@Singleton
@Requires(classes=org.neo4j.harness.Neo4j.class)
public class EmbeddedNeo4jServer
extends Object
implements io.micronaut.context.event.BeanCreatedEventListener<Neo4jBoltConfiguration>, Closeable
Deprecated, for removal: This API element is subject to removal in a future version.
Use testcontainers instead. See Testcontainers Neo4j
Starts an embedded Neo4j server if no server is running for the configured settings.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated, for removal: This API element is subject to removal in a future version.onCreated
(io.micronaut.context.event.BeanCreatedEvent<Neo4jBoltConfiguration> event) Deprecated, for removal: This API element is subject to removal in a future version.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on a random free port.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on a random free port.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
start
(InetSocketAddress inetAddr) Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
start
(InetSocketAddress inetAddr, File dataLocation) Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.static org.neo4j.harness.Neo4j
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.
-
Constructor Details
-
EmbeddedNeo4jServer
public EmbeddedNeo4jServer()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
onCreated
public Neo4jBoltConfiguration onCreated(io.micronaut.context.event.BeanCreatedEvent<Neo4jBoltConfiguration> event) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<Neo4jBoltConfiguration>
-
start
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on a random free port.- Parameters:
dataLocation
- The data location- Returns:
- The server controls
- Throws:
IOException
- i/o exception
-
start
public static org.neo4j.harness.Neo4j start(File dataLocation, Map<String, Object> options) throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.Start a server on a random free port.- Parameters:
dataLocation
- The data locationoptions
- options for neo4j- Returns:
- The server controls
- Throws:
IOException
- i/o exception
-
start
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
inetAddr
- The inet address- Returns:
- The
Neo4j
-
start
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
inetAddr
- The inet addressdataLocation
- dataLocation file- Returns:
- The
Neo4j
-
start
public static org.neo4j.harness.Neo4j start(InetSocketAddress inetAddr, File dataLocation, Map<String, Object> options) Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
inetAddr
- The inet addressdataLocation
- dataLocation fileoptions
- options for neo4j- Returns:
- The
Neo4j
-
start
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
address
- The address- Returns:
- The
Neo4j
-
start
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
address
- The addressdataLocation
- dataLocation file- Returns:
- The
Neo4j
-
start
public static org.neo4j.harness.Neo4j start(String address, File dataLocation, Map<String, Object> options) Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
address
- The addressoptions
- options for neo4jdataLocation
- dataLocation file- Returns:
- The
Neo4j
-
start
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
host
- The hostport
- The port- Returns:
- The
Neo4j
-
start
Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
host
- The hostport
- The portdataLocation
- dataLocation file- Returns:
- The
Neo4j
-
start
public static org.neo4j.harness.Neo4j start(String host, int port, File dataLocation, Map<String, Object> options) Deprecated, for removal: This API element is subject to removal in a future version.Start a server on the given address.- Parameters:
host
- The hostport
- The portdataLocation
- dataLocation fileoptions
- options for neo4j- Returns:
- The
Neo4j
-
close
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-