org.neo4j.kernel
Class AbstractGraphDatabase
java.lang.Object
org.neo4j.kernel.AbstractGraphDatabase
- All Implemented Interfaces:
- GraphDatabaseService
- Direct Known Subclasses:
- EmbeddedGraphDatabase, EmbeddedReadOnlyGraphDatabase
public abstract class AbstractGraphDatabase
- extends Object
- implements GraphDatabaseService
Exposes the methods getConfig() and getManagementBean() a.s.o.
Methods inherited from interface org.neo4j.graphdb.GraphDatabaseService |
beginTx, createNode, getAllNodes, getNodeById, getReferenceNode, getRelationshipById, getRelationshipTypes, index, registerKernelEventHandler, registerTransactionEventHandler, shutdown, unregisterKernelEventHandler, unregisterTransactionEventHandler |
AbstractGraphDatabase
public AbstractGraphDatabase()
getStoreDir
public abstract String getStoreDir()
getConfig
public abstract Config getConfig()
getManagementBean
public abstract <T> T getManagementBean(Class<T> type)
isReadOnly
public abstract boolean isReadOnly()
toString
public String toString()
- Overrides:
toString
in class Object
enableRemoteShell
public boolean enableRemoteShell()
- Description copied from interface:
GraphDatabaseService
- Enables remote shell access (with default configuration) to this Neo4j
instance, if the Neo4j shell component is
available on the classpath. This method is identical to invoking
enableRemoteShell( null )
.
- Specified by:
enableRemoteShell
in interface GraphDatabaseService
- Returns:
true
if the shell has been enabled,
false
otherwise (false
usually
indicates that the shell
jar dependency is not on
the classpath)
enableRemoteShell
public boolean enableRemoteShell(Map<String,Serializable> initialProperties)
- Description copied from interface:
GraphDatabaseService
- Enables remote shell access to this Neo4j instance, if the Neo4j Shell component is
available on the classpath. This will publish a shell access interface on
an RMI registry on localhost (with configurable port and RMI binding
name). It can be accessed by a client that implements
org.neo4j.shell.ShellClient
from the Neo4j Shell project.
Typically, the neo4j-shell
binary package is used (see neo4j.org/download).
The shell is parameterized by a map of properties passed in to this
method. Currently, two properties are used:
port
, an Integer
describing the port of the RMI
registry where the Neo4j shell will be bound, defaults to
1337
name
, the String
under which the Neo4j shell
will be bound in the RMI registry, defaults to shell
- Specified by:
enableRemoteShell
in interface GraphDatabaseService
- Parameters:
initialProperties
- a set of properties that will be used to
configure the remote shell, or null
if the
default properties should be used
- Returns:
true
if the shell has been enabled,
false
otherwise (false
usually
indicates that the shell
jar dependency is not on
the classpath)
Copyright © 2010 The Neo4j Graph Database Project. All Rights Reserved.