|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.remote.BasicGraphDatabaseServer
org.neo4j.remote.transports.LocalGraphDatabase
public final class LocalGraphDatabase
An implementation of ConnectionTarget that isn't really remote. This
implementation is useful for implementing servers for other
ConnectionTargets and for testing purposes.
| Constructor Summary | |
|---|---|
LocalGraphDatabase(GraphDatabaseService graphDb)
Create a new local ConnectionTarget. |
|
LocalGraphDatabase(String path)
Create a new local ConnectionTarget. |
|
| Method Summary | |
|---|---|
protected GraphDatabaseService |
connectGraphDatabase()
Create an unauthenticated connection. |
protected GraphDatabaseService |
connectGraphDatabase(String username,
String password)
Create an authenticated connection. |
void |
registerIndexService(String name,
IndexService index)
Register a server side index service implementation. |
| Methods inherited from class org.neo4j.remote.BasicGraphDatabaseServer |
|---|
connect, connect, getKeysBatchSize, getNodesBatchSize, getRelationshipsBatchSize, getTotalNumberOfNodes, getTypesBatchSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalGraphDatabase(GraphDatabaseService graphDb)
ConnectionTarget.
graphDb - The GraphDatabaseService to connect to with this site.public LocalGraphDatabase(String path)
ConnectionTarget.
path - The path to the Neo4j graph database store.| Method Detail |
|---|
protected GraphDatabaseService connectGraphDatabase()
BasicGraphDatabaseServer
connectGraphDatabase in class BasicGraphDatabaseServerGraphDatabaseService implementation to use for the connection.
protected GraphDatabaseService connectGraphDatabase(String username,
String password)
BasicGraphDatabaseServer
connectGraphDatabase in class BasicGraphDatabaseServerusername - The name of the authenticating user.password - The password for the authenticating user.
GraphDatabaseService implementation to use for the connection.
public void registerIndexService(String name,
IndexService index)
BasicGraphDatabaseServer
registerIndexService in class BasicGraphDatabaseServername - A name that identifies the index service implementation.index - The index service implementation to register.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||