public interface

DatabaseService

uk.ac.imperial.presage2.core.db.DatabaseService

Class Overview

This is a generic description of a Database service in presage. Anything we want to use as a database should implement this so the platform can start and stop it.

Summary

Public Methods
abstract boolean isStarted()
abstract void start()
Start the database service.
abstract void stop()
Stop this database service.

Public Methods

public abstract boolean isStarted ()

Returns
  • true if start() has be successfully called, false otherwise.

public abstract void start ()

Start the database service. This generally will create a connection to a database.

Throws
Exception

public abstract void stop ()

Stop this database service.