org.neo4j.server.database
Class Database

java.lang.Object
  extended by org.neo4j.server.database.Database
All Implemented Interfaces:
org.neo4j.kernel.lifecycle.Lifecycle
Direct Known Subclasses:
CommunityDatabase, WrappedDatabase, WrappingDatabase

public class Database
extends Object
implements org.neo4j.kernel.lifecycle.Lifecycle

NOTICE: This class to be replaced by a corresponding interface in 1.10, please use available subclasses instead of directly instantiating this.


Field Summary
 org.neo4j.kernel.AbstractGraphDatabase graph
          Deprecated. 
static Logger log
           
 
Constructor Summary
Database()
          Deprecated. 
Database(org.neo4j.kernel.AbstractGraphDatabase db)
          Deprecated. 
Database(GraphDatabaseFactory factory, String databaseStoreDirectory)
          Deprecated. 
Database(GraphDatabaseFactory factory, String databaseStoreDirectory, Map<String,String> databaseTuningProperties)
          Deprecated. 
 
Method Summary
 org.neo4j.kernel.GraphDatabaseAPI getGraph()
           
 org.neo4j.graphdb.index.IndexManager getIndexManager()
           
 String getLocation()
           
 org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> getNodeIndex(String name)
           
 org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Relationship> getRelationshipIndex(String name)
           
 void init()
           
 org.rrd4j.core.RrdDb rrdDb()
          Deprecated. 
 void setRrdDb(org.rrd4j.core.RrdDb rrdDb)
          Deprecated. 
 void shutdown()
           
 void start()
           
 void startup()
          Deprecated. 
 StatisticCollector statisticCollector()
          Deprecated. 
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static Logger log

graph

@Deprecated
public org.neo4j.kernel.AbstractGraphDatabase graph
Deprecated. 
Please use getGraph() instead. This will be removed in version 1.10

Constructor Detail

Database

@Deprecated
public Database()
Deprecated. 

This constructor should not be used, please use a subclass of this class instead.


Database

@Deprecated
public Database(org.neo4j.kernel.AbstractGraphDatabase db)
Deprecated. 

This constructor should not be used, please use WrappingDatabase instead.

Parameters:
db -

Database

@Deprecated
public Database(GraphDatabaseFactory factory,
                           String databaseStoreDirectory)
Deprecated. 

This constructor should not be used, please use CommunityDatabase instead.


Database

@Deprecated
public Database(GraphDatabaseFactory factory,
                           String databaseStoreDirectory,
                           Map<String,String> databaseTuningProperties)
Deprecated. 

This constructor should not be used, please use CommunityDatabase instead.

Method Detail

getLocation

public String getLocation()

getRelationshipIndex

public org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Relationship> getRelationshipIndex(String name)

getNodeIndex

public org.neo4j.graphdb.index.Index<org.neo4j.graphdb.Node> getNodeIndex(String name)

getIndexManager

public org.neo4j.graphdb.index.IndexManager getIndexManager()

getGraph

public org.neo4j.kernel.GraphDatabaseAPI getGraph()

rrdDb

@Deprecated
public org.rrd4j.core.RrdDb rrdDb()
Deprecated. 

This should be assigned to you via your constructor, or via a DependencyResolver.

Returns:

setRrdDb

@Deprecated
public void setRrdDb(org.rrd4j.core.RrdDb rrdDb)
Deprecated. 

This should be assigned to you via your constructor, or via a DependencyResolver.


statisticCollector

@Deprecated
public StatisticCollector statisticCollector()
Deprecated. 

This should be assigned to you via your constructor, or via a DependencyResolver.

Returns:

init

public void init()
          throws Throwable
Specified by:
init in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable

start

public void start()
           throws Throwable
Specified by:
start in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable

stop

public void stop()
          throws Throwable
Specified by:
stop in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable

shutdown

public void shutdown()
              throws Throwable
Specified by:
shutdown in interface org.neo4j.kernel.lifecycle.Lifecycle
Throws:
Throwable

startup

@Deprecated
public void startup()
Deprecated. 

Will be removed in 1.10



Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.