]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.maintenance/src/org/argeo/maintenance/backup/vfs/BackupPurge.java
Use stable maven-argeo-osgi-plugin v1.2.0
[lgpl/argeo-commons.git] / org.argeo.maintenance / src / org / argeo / maintenance / backup / vfs / BackupPurge.java
1 /*
2 * Copyright (C) 2007-2012 Argeo GmbH
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.argeo.maintenance.backup.vfs;
17
18 import java.text.DateFormat;
19
20 import org.apache.commons.vfs2.FileSystemManager;
21 import org.apache.commons.vfs2.FileSystemOptions;
22
23 /** Purges previous backups */
24 public interface BackupPurge {
25 /**
26 * Purge the backups identified by these arguments. Although these are the
27 * same fields as a {@link BackupContext} we don't pass it as argument since
28 * we want to use this interface to purge remote backups as well (that is,
29 * with a different base), or outside the scope of a running backup.
30 */
31 public void purge(FileSystemManager fileSystemManager, String base,
32 String name, DateFormat dateFormat, FileSystemOptions opts);
33 }