@Singleton @Requires(classes=org.neo4j.harness.ServerControls.class) public class EmbeddedNeo4jServer extends Object implements BeanCreatedEventListener<Neo4jBoltConfiguration>, Closeable
| Constructor and Description | 
|---|
EmbeddedNeo4jServer()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
Neo4jBoltConfiguration | 
onCreated(BeanCreatedEvent<Neo4jBoltConfiguration> event)
Fired when a bean is created and all  
PostConstruct initialization hooks have been
 called. | 
static org.neo4j.harness.ServerControls | 
start(File dataLocation)
Start a server on a random free port. 
 | 
static org.neo4j.harness.ServerControls | 
start(File dataLocation,
     Map<String,Object> options)
Start a server on a random free port. 
 | 
static org.neo4j.harness.ServerControls | 
start(InetSocketAddress inetAddr)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(InetSocketAddress inetAddr,
     File dataLocation)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(InetSocketAddress inetAddr,
     File dataLocation,
     Map<String,Object> options)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(String address)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(String address,
     File dataLocation)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(String address,
     File dataLocation,
     Map<String,Object> options)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(String host,
     int port)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(String host,
     int port,
     File dataLocation)
Start a server on the given address. 
 | 
static org.neo4j.harness.ServerControls | 
start(String host,
     int port,
     File dataLocation,
     Map<String,Object> options)
Start a server on the given address. 
 | 
public Neo4jBoltConfiguration onCreated(BeanCreatedEvent<Neo4jBoltConfiguration> event)
BeanCreatedEventListenerPostConstruct initialization hooks have been
 called.onCreated in interface BeanCreatedEventListener<Neo4jBoltConfiguration>event - The bean created eventpublic static org.neo4j.harness.ServerControls start(File dataLocation) throws IOException
dataLocation - The data locationIOException - i/o exceptionpublic static org.neo4j.harness.ServerControls start(File dataLocation, Map<String,Object> options) throws IOException
dataLocation - The data locationoptions - options for neo4jIOException - i/o exceptionpublic static org.neo4j.harness.ServerControls start(InetSocketAddress inetAddr)
inetAddr - The inet addressServerControlspublic static org.neo4j.harness.ServerControls start(InetSocketAddress inetAddr, File dataLocation)
inetAddr - The inet addressdataLocation - dataLocation fileServerControlspublic static org.neo4j.harness.ServerControls start(InetSocketAddress inetAddr, File dataLocation, Map<String,Object> options)
inetAddr - The inet addressdataLocation - dataLocation fileoptions - options for neo4jServerControlspublic static org.neo4j.harness.ServerControls start(String address)
address - The addressServerControlspublic static org.neo4j.harness.ServerControls start(String address, File dataLocation)
address - The addressdataLocation - dataLocation fileServerControlspublic static org.neo4j.harness.ServerControls start(String address, File dataLocation, Map<String,Object> options)
address - The addressoptions - options for neo4jdataLocation - dataLocation fileServerControlspublic static org.neo4j.harness.ServerControls start(String host, int port)
host - The hostport - The portServerControlspublic static org.neo4j.harness.ServerControls start(String host, int port, File dataLocation)
host - The hostport - The portdataLocation - dataLocation fileServerControlspublic static org.neo4j.harness.ServerControls start(String host, int port, File dataLocation, Map<String,Object> options)
host - The hostport - The portdataLocation - dataLocation fileoptions - options for neo4jServerControlspublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOException