summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/operation/backup
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/operation/backup')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/operation/backup/BackupMethod.java5
-rw-r--r--src/main/java/com/keuin/kbackupfabric/operation/backup/PrimitiveBackupMethod.java (renamed from src/main/java/com/keuin/kbackupfabric/operation/backup/PrimitiveBackupMehtod.java)2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/operation/backup/BackupMethod.java b/src/main/java/com/keuin/kbackupfabric/operation/backup/BackupMethod.java
index 97c609d..b0b77cb 100644
--- a/src/main/java/com/keuin/kbackupfabric/operation/backup/BackupMethod.java
+++ b/src/main/java/com/keuin/kbackupfabric/operation/backup/BackupMethod.java
@@ -10,10 +10,11 @@ public interface BackupMethod {
/**
* Perform a backup with given method. The backup will be saved as the given name.
- * Note: real file name is depended by the backup type.
+ * Note: real file name depends on the backup type.
* @param backupName the backup name.
+ * @return if the backup operation succeed.
*/
- void backup(@NotNull String backupName, @NotNull String levelPath, @NotNull String backupSaveDirectory) throws IOException;
+ boolean backup(@NotNull String backupName, @NotNull String levelPath, @NotNull String backupSaveDirectory) throws IOException;
BackupFileNameBuilder getBackupFileNameBuilder();
diff --git a/src/main/java/com/keuin/kbackupfabric/operation/backup/PrimitiveBackupMehtod.java b/src/main/java/com/keuin/kbackupfabric/operation/backup/PrimitiveBackupMethod.java
index 3c2a608..bb1c8cb 100644
--- a/src/main/java/com/keuin/kbackupfabric/operation/backup/PrimitiveBackupMehtod.java
+++ b/src/main/java/com/keuin/kbackupfabric/operation/backup/PrimitiveBackupMethod.java
@@ -12,7 +12,7 @@ import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;
-public class PrimitiveBackupMehtod implements BackupMethod {
+public class PrimitiveBackupMethod implements BackupMethod {
@Override
public boolean backup(String backupName, String levelPath, String backupSaveDirectory) throws IOException {
try {