KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdo > VersantBackgroundTask


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdo;
13
14 /**
15  * Classes that perform tasks in the background on the server implement this.
16  * @see LogDownloader
17  */

18 public interface VersantBackgroundTask extends Runnable JavaDoc {
19
20     /**
21      * Get ready to work with pmf. This is called before run is invoked.
22      */

23     public void setPmf(VersantPersistenceManagerFactory pmf) throws Exception JavaDoc;
24
25     /**
26      * Stop running. This will be called during the server shutdown
27      * process. The event log and performance metric snapshot buffers are
28      * still accessable. This should set a flag so that the run method will
29      * return when interrupted.
30      */

31     public void shutdown();
32
33 }
34
35
Popular Tags