Package backupmanager.settings
Class ActionSettings
java.lang.Object
backupmanager.settings.ActionSettings
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
CopySettings
Base class for action settings. Every action has to return action settings, even if it has
no settings of it's own, since they are needed for some bookkeeping and more importantly to
identify actions when settingss are reloaded.
- Author:
- dg50
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionActionSettings
(Class actionClass) constructor for the base ActinSettings.ActionSettings
(String className) classname must be the full name of the class that uses these settings. -
Method Summary
Modifier and TypeMethodDescriptionlong
long
Time of the last backup in millisecondsvoid
setBackupFilterParams
(BackupFilterParams backupFilterParams) void
setLastBackupDuration
(long lastBackupDuration) void
setLastBackupTime
(long lastBackupTime) Time of the last backup in milliseconds
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ActionSettings
constructor for the base ActinSettings. A class is needed since this is used when config is reloaded to recreate the actions.- Parameters:
actionClass
-
-
ActionSettings
classname must be the full name of the class that uses these settings.- Parameters:
className
-
-
-
Method Details
-
getActionClass
- Returns:
- a class name for an action.
-
getLastBackupTime
public long getLastBackupTime()Time of the last backup in milliseconds- Returns:
- the lastBackupTime
-
setLastBackupTime
public void setLastBackupTime(long lastBackupTime) Time of the last backup in milliseconds- Parameters:
lastBackupTime
- the lastBackupTime to set
-
getLastBackupDuration
public long getLastBackupDuration()- Returns:
- the lastBackupDuration
-
setLastBackupDuration
public void setLastBackupDuration(long lastBackupDuration) - Parameters:
lastBackupDuration
- the lastBackupDuration to set
-
getBackupFilterParams
-
setBackupFilterParams
-