org.neo4j.kernel
Class AbstractGraphDatabase

java.lang.Object
  extended by 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.


Constructor Summary
AbstractGraphDatabase()
           
 
Method Summary
 boolean enableRemoteShell()
          Enables remote shell access (with default configuration) to this Neo4j instance, if the Neo4j shell component is available on the classpath.
 boolean enableRemoteShell(Map<String,Serializable> initialProperties)
          Enables remote shell access to this Neo4j instance, if the Neo4j Shell component is available on the classpath.
abstract  Config getConfig()
           
abstract
<T> T
getManagementBean(Class<T> type)
           
abstract  String getStoreDir()
           
abstract  boolean isReadOnly()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.neo4j.graphdb.GraphDatabaseService
beginTx, createNode, getAllNodes, getNodeById, getReferenceNode, getRelationshipById, getRelationshipTypes, index, registerKernelEventHandler, registerTransactionEventHandler, shutdown, unregisterKernelEventHandler, unregisterTransactionEventHandler
 

Constructor Detail

AbstractGraphDatabase

public AbstractGraphDatabase()
Method Detail

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:

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.