Class SimpleBackupIdentity

java.lang.Object
net.solarnetwork.node.backup.SimpleBackupIdentity
All Implemented Interfaces:
BackupIdentity
Direct Known Subclasses:
SimpleBackupInfo

public class SimpleBackupIdentity extends Object implements BackupIdentity
Basic implementation of BackupIdentity.
Version:
1.0
Author:
matt
  • Constructor Details

    • SimpleBackupIdentity

      public SimpleBackupIdentity(String key, Date date, Long nodeId, String qualifier)
      Constructor.
      Parameters:
      key - the key
      date - the date
      nodeId - the node ID
      qualifier - the qualifier
  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: BackupIdentity
      Get a unique key for the backup.
      Specified by:
      getKey in interface BackupIdentity
      Returns:
      the backup key
    • getDate

      public Date getDate()
      Description copied from interface: BackupIdentity
      Get the date the backup was created.
      Specified by:
      getDate in interface BackupIdentity
      Returns:
      the backup date
    • getNodeId

      public Long getNodeId()
      Description copied from interface: BackupIdentity
      Get the node ID associated with the backup.
      Specified by:
      getNodeId in interface BackupIdentity
      Returns:
      the node ID
    • getQualifier

      public String getQualifier()
      Description copied from interface: BackupIdentity
      Get an optional qualifier.

      A qualifier can be used to provide a backup with a more descriptive name or tag.

      Specified by:
      getQualifier in interface BackupIdentity
      Returns:
      the qualifier, or null if not known