Neo4j Enterprise

org.neo4j.kernel
Class DatabaseAvailability

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

public class DatabaseAvailability
extends Object
implements Lifecycle

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
 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

Neo4j Enterprise

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