Package org.kendar.sync.lib.protocol
Enum BackupType
- All Implemented Interfaces:
Serializable,Comparable<BackupType>,java.lang.constant.Constable
Defines the types of backup operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBackup/Restore without deleting old files with "date separated structure" on the backup.Backup/Restore deleting the files not present on the source.No backup/restore operation.Backup/Restore without deleting old files.Two-way synchronization. -
Method Summary
Modifier and TypeMethodDescriptionstatic BackupTypeReturns the enum constant of this type with the specified name.static BackupType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No backup/restore operation. This is the default type, indicating no action is taken. -
PRESERVE
Backup/Restore without deleting old files. Files on the target that don't exist on the source are preserved. -
MIRROR
Backup/Restore deleting the files not present on the source. Files on the target that don't exist on the source are deleted. -
DATE_SEPARATED
Backup/Restore without deleting old files with "date separated structure" on the backup. Files are organized in directories based on their modification date. During restore, the date structure is ignored and files are placed directly in the target directory. -
TWO_WAY_SYNC
Two-way synchronization. Files are synchronized in both directions, ensuring both source and target have the latest versions.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-