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: * PMFs with remote access enabled will create these to handle requests from
15: * remote clients. These can also be added to an existing PMF (see
16: * {@link VersantPMFInternal#addPMFServer(PMFServer)}.
17: */
18: public interface PMFServer {
19:
20: /**
21: * Initialize to accept connections for the pmf. This is not called on
22: * PMFServer's added to an existing PMF.
23: */
24: public void init(VersantPMFInternal pmf);
25:
26: /**
27: * Start accepting connections. This is not called on
28: * PMFServer's added to an existing PMF.
29: */
30: public void start() throws Exception;
31:
32: /**
33: * Close this server releasing all resources.
34: */
35: public void close();
36:
37: }
|