Return-Path: Delivered-To: apmail-avalon-cvs-archive@www.apache.org Received: (qmail 67808 invoked from network); 5 May 2004 15:20:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 May 2004 15:20:03 -0000 Received: (qmail 43506 invoked by uid 500); 5 May 2004 15:19:57 -0000 Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org Received: (qmail 43434 invoked by uid 500); 5 May 2004 15:19:57 -0000 Mailing-List: contact cvs-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list cvs@avalon.apache.org Received: (qmail 43421 invoked by uid 500); 5 May 2004 15:19:57 -0000 Received: (qmail 43418 invoked from network); 5 May 2004 15:19:56 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 5 May 2004 15:19:56 -0000 Received: (qmail 67732 invoked by uid 1828); 5 May 2004 15:20:02 -0000 Date: 5 May 2004 15:20:02 -0000 Message-ID: <20040505152002.67731.qmail@minotaur.apache.org> From: tbennett@apache.org To: avalon-components-cvs@apache.org Subject: cvs commit: avalon-components/facilities/db/api/src/java/org/apache/avalon/db DatabaseService.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N tbennett 2004/05/05 08:20:02 Modified: facilities/db/api/src/java/org/apache/avalon/db DatabaseService.java Log: Revision Changes Path 1.2 +18 -4 avalon-components/facilities/db/api/src/java/org/apache/avalon/db/DatabaseService.java Index: DatabaseService.java =================================================================== RCS file: /home/cvs/avalon-components/facilities/db/api/src/java/org/apache/avalon/db/DatabaseService.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DatabaseService.java 4 Apr 2004 15:00:54 -0000 1.1 +++ DatabaseService.java 5 May 2004 15:20:02 -0000 1.2 @@ -18,10 +18,24 @@ /** * Defintion of the DatabaseService service contract. + * + * @avalon.service version="1.0" + * + * @author Avalon Development Team + * @version $Revision$ $Date$ */ public interface DatabaseService { - // TODO What services might database service provide? - // Pooled JDBC connections will be provided by another service... - // Dynamic starting/stopping? - // Monitoring hooks? + /** + * Starts the database service. + * + * @throws Exception if an error occurs while starting the service + */ + void start() throws Exception; + + /** + * Shuts down the database service. + * + * @throws Exception if an error occurs while shutting down the service + */ + void stop() throws Exception; } --------------------------------------------------------------------- To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org For additional commands, e-mail: cvs-help@avalon.apache.org