org.neo4j.server
Class AbstractNeoServer

java.lang.Object
  extended by org.neo4j.server.AbstractNeoServer
All Implemented Interfaces:
NeoServer
Direct Known Subclasses:
CommunityNeoServer

public abstract class AbstractNeoServer
extends Object
implements NeoServer


Field Summary
protected  Configurator configurator
           
protected  CypherExecutor cypherExecutor
           
protected  Database database
           
static Logger log
           
protected  StatisticCollector statisticsCollector
           
protected  WebServer webServer
           
 
Constructor Summary
AbstractNeoServer()
           
 
Method Summary
 URI baseUri()
           
protected abstract  Database createDatabase()
           
protected  DatabaseActions createDatabaseActions()
           
protected  Collection<InjectableProvider<?>> createDefaultInjectables()
           
protected  InterruptThreadTimer createInterruptStartupTimer()
           
protected abstract  PreFlightTasks createPreflightTasks()
           
protected abstract  Iterable<ServerModule> createServerModules()
           
protected abstract  WebServer createWebServer()
           
 org.apache.commons.configuration.Configuration getConfiguration()
           
 Configurator getConfigurator()
           
 Database getDatabase()
           
 org.neo4j.graphdb.DependencyResolver getDependencyResolver()
           
 PluginManager getExtensionManager()
           
protected  boolean getHttpsEnabled()
           
protected  int getHttpsPort()
           
protected  org.neo4j.kernel.logging.Logging getLogging()
           
 WebServer getWebServer()
           
protected  String getWebServerAddress()
           
protected  int getWebServerPort()
           
 URI httpsUri()
           
 void init()
           
protected  KeyStoreInformation initHttpsKeyStore()
          Jetty wants certificates stored in a key store, which is nice, but to make it easier for non-java savvy users, we let them put their certificates directly on the file system (advising appropriate permissions etc), like you do with Apache Web Server.
protected  void registerModule(ServerModule module)
          Use this method to register server modules from subclasses
 void start()
           
 void stop()
           
 void stopServerOnly()
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.neo4j.server.NeoServer
getServices
 

Field Detail

log

public static final Logger log

database

protected Database database

cypherExecutor

protected CypherExecutor cypherExecutor

configurator

protected Configurator configurator

webServer

protected WebServer webServer

statisticsCollector

protected final StatisticCollector statisticsCollector
Constructor Detail

AbstractNeoServer

public AbstractNeoServer()
Method Detail

createPreflightTasks

protected abstract PreFlightTasks createPreflightTasks()

createServerModules

protected abstract Iterable<ServerModule> createServerModules()

createDatabase

protected abstract Database createDatabase()

createWebServer

protected abstract WebServer createWebServer()

createDatabaseActions

protected DatabaseActions createDatabaseActions()

init

public void init()
Specified by:
init in interface NeoServer

getLogging

protected org.neo4j.kernel.logging.Logging getLogging()

start

public void start()
           throws ServerStartupException
Specified by:
start in interface NeoServer
Throws:
ServerStartupException

getDependencyResolver

public org.neo4j.graphdb.DependencyResolver getDependencyResolver()

createInterruptStartupTimer

protected InterruptThreadTimer createInterruptStartupTimer()

registerModule

protected final void registerModule(ServerModule module)
Use this method to register server modules from subclasses

Parameters:
module -

getConfiguration

public org.apache.commons.configuration.Configuration getConfiguration()
Specified by:
getConfiguration in interface NeoServer

getWebServerPort

protected int getWebServerPort()

getHttpsEnabled

protected boolean getHttpsEnabled()

getHttpsPort

protected int getHttpsPort()

getWebServerAddress

protected String getWebServerAddress()

initHttpsKeyStore

protected KeyStoreInformation initHttpsKeyStore()
Jetty wants certificates stored in a key store, which is nice, but to make it easier for non-java savvy users, we let them put their certificates directly on the file system (advising appropriate permissions etc), like you do with Apache Web Server. On each startup we set up a key store for them with their certificate in it.


stop

public void stop()
Specified by:
stop in interface NeoServer

stopServerOnly

@Deprecated
public void stopServerOnly()
Deprecated. 

Stops everything but the database.

This is deprecated. If you would like to disconnect the database life cycle from server control, then use WrappingNeoServer.

To stop the server, please use stop().

This will be removed in 1.10


getDatabase

public Database getDatabase()
Specified by:
getDatabase in interface NeoServer

baseUri

public URI baseUri()
Specified by:
baseUri in interface NeoServer

httpsUri

public URI httpsUri()

getWebServer

public WebServer getWebServer()

getConfigurator

public Configurator getConfigurator()
Specified by:
getConfigurator in interface NeoServer

getExtensionManager

public PluginManager getExtensionManager()
Specified by:
getExtensionManager in interface NeoServer

createDefaultInjectables

protected Collection<InjectableProvider<?>> createDefaultInjectables()


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