private void doShutdown() { if ( server != null ) { server.stop(); } if ( userLogFileStream != null ) { closeUserLogFileStream(); } }
private void installSignalHandlers() { installSignalHandler( SIGTERM, false ); // SIGTERM is invoked when system service is stopped installSignalHandler( SIGINT, true ); // SIGINT is invoked when user hits ctrl-c when running `neo4j console` }
@Override public Configuration config() { return server.getConfig(); }
private GraphDatabaseAPI db() { return bootstrapper.getServer().getDatabase().getGraph(); } }
/** * Used by the windows service wrapper */ @SuppressWarnings( "unused" ) public static void start( String[] args ) { bootstrapper = new BlockingBootstrapper( new CommunityBootstrapper() ); System.exit( ServerBootstrapper.start( bootstrapper, args ) ); }
public static void main( String[] args ) { int status = ServerBootstrapper.start( new CommunityBootstrapper(), args ); if ( status != 0 ) { System.exit( status ); } }
@Override protected NeoServer createNeoServer( GraphFactory graphFactory, Config config, GraphDatabaseDependencies dependencies ) { return new CommunityNeoServer( config, graphFactory, dependencies ); } }
private NeoServer createNeoServer( Config config, GraphDatabaseDependencies dependencies ) { GraphFactory graphFactory = createGraphFactory( config ); boolean httpAndHttpsDisabled = config.enabledHttpConnectors().isEmpty(); if ( httpAndHttpsDisabled ) { return new DisabledNeoServer( graphFactory, dependencies, config ); } return createNeoServer( graphFactory, config, dependencies ); }
private void startServer( String hstsValue ) throws Exception { server = buildServer( hstsValue ); server.start(); }
/** * Used by the windows service wrapper */ @SuppressWarnings( "unused" ) public static void stop( @SuppressWarnings( "UnusedParameters" ) String[] args ) { if ( bootstrapper != null ) { bootstrapper.stop(); } } }
private ServerCommandLineArgs parse( String... args ) { return ServerCommandLineArgs.parse( args ); } }
@Override protected ServerBootstrapper newBootstrapper() { return new CommunityBootstrapper(); }
public URI baseUri() { return server.baseUri(); }
private PluginManager getExtensionManager() { return injectorProvider == null ? null : injectorProvider.getExtensionManager(); }
private void startServer() throws Exception { startServer( null ); }
private void startServerWithBoltEnabled() throws IOException { startServerWithBoltEnabled( "localhost", 7687, "localhost", 7687 ); }
private URI httpUri() { return server.baseUri(); }
private void startServer() throws Exception { startServer( true, true ); }
@Override protected AbstractNeoServer createNeoServer( GraphFactory graphFactory, Config config, Dependencies dependencies ) { return new CommunityNeoServer( config, graphFactory, dependencies ); } }