Package net.solarnetwork.node.backup
Class SimpleBackupServiceInfo
java.lang.Object
net.solarnetwork.node.backup.SimpleBackupServiceInfo
- All Implemented Interfaces:
BackupServiceInfo
Simple implementation of
BackupServiceInfo.- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBackupServiceInfo(Date mostRecentBackupDate, BackupStatus status) Construct with values. -
Method Summary
Modifier and TypeMethodDescriptionGet the date of the most recent successful backup.Get the overall backup service status.
-
Constructor Details
-
SimpleBackupServiceInfo
Construct with values.- Parameters:
mostRecentBackupDate- the backup datestatus- the status
-
-
Method Details
-
getMostRecentBackupDate
Description copied from interface:BackupServiceInfoGet the date of the most recent successful backup.- Specified by:
getMostRecentBackupDatein interfaceBackupServiceInfo- Returns:
- the backup date, or null if none available
-
getStatus
Description copied from interface:BackupServiceInfoGet the overall backup service status.- Specified by:
getStatusin interfaceBackupServiceInfo- Returns:
- the current status
-