|
||||||||||
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
ConnectionTarget
s and for testing purposes.
Constructor Summary | |
---|---|
LocalGraphDatabase(GraphDatabaseService neo)
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 neo)
ConnectionTarget
.
neo
- The GraphDatabaseService
to connect to with this site.public LocalGraphDatabase(String path)
ConnectionTarget
.
path
- The path to the Neo graph database store.Method Detail |
---|
protected GraphDatabaseService connectGraphDatabase()
BasicGraphDatabaseServer
connectGraphDatabase
in class BasicGraphDatabaseServer
GraphDatabaseService
implementation to use for the connection.protected GraphDatabaseService connectGraphDatabase(String username, String password)
BasicGraphDatabaseServer
connectGraphDatabase
in class BasicGraphDatabaseServer
username
- 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 BasicGraphDatabaseServer
name
- 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 |