01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.jdo;
12:
13: /**
14: * Classes that perform tasks in the background on the server implement this.
15: * @see LogDownloader
16: */
17: public interface VersantBackgroundTask extends Runnable {
18:
19: /**
20: * Get ready to work with pmf. This is called before run is invoked.
21: */
22: public void setPmf(VersantPersistenceManagerFactory pmf)
23: throws Exception;
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: }
|