blob: f57302c59a5c5cf4a95911026742a393d74b4242 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.keuin.kbackupfabric.util.backup.builder;
import java.time.LocalDateTime;
public interface BackupFileNameBuilder {
static BackupFileNameBuilder primitiveZipBackup() {
return PrimitiveZipBackupFileNameBuilder.getInstance();
}
static BackupFileNameBuilder objectTreeBackup() {
return ObjectTreeBackupFileNameBuilder.getInstance();
}
/**
* Build a backup file name based on given information.
* @param time when the backup was created.
* @param backupName the custom name of this backup. Note that this should be a valid file name in current file system.
* @return the backup file name string.
*/
String build(LocalDateTime time, String backupName);
}
|