Neo4j

org.neo4j.kernel
Class DatabaseAvailability

java.lang.Object
  extended by org.neo4j.kernel.DatabaseAvailability
All Implemented Interfaces:
AvailabilityGuard.AvailabilityRequirement, Lifecycle

public class DatabaseAvailability
extends Object
implements Lifecycle, AvailabilityGuard.AvailabilityRequirement

This class handles whether the database as a whole is available to use at all. As it runs as the last service in the lifecycle list, the stop() is called first on stop, shutdown or restart, and thus blocks access to everything else for outsiders.


Constructor Summary
DatabaseAvailability(TransactionManager txManager, AvailabilityGuard availabilityGuard)
           
 
Method Summary
 String description()
           
 void init()
           
 void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseAvailability

public DatabaseAvailability(TransactionManager txManager,
                            AvailabilityGuard availabilityGuard)
Method Detail

init

public void init()
          throws Throwable
Specified by:
init in interface Lifecycle
Throws:
Throwable

start

public void start()
           throws Throwable
Specified by:
start in interface Lifecycle
Throws:
Throwable

stop

public void stop()
          throws Throwable
Specified by:
stop in interface Lifecycle
Throws:
Throwable

shutdown

public void shutdown()
              throws Throwable
Specified by:
shutdown in interface Lifecycle
Throws:
Throwable

description

public String description()
Specified by:
description in interface AvailabilityGuard.AvailabilityRequirement

Neo4j

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