blob: 16c598bd376901ca28c976f1454ca3e56b92663e (
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
25
|
package com.keuin.kbackupfabric.util.backup.builder;
import com.sun.istack.internal.NotNull;
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(@NotNull LocalDateTime time, @NotNull String backupName);
}
|