Class CbusNodeBackupFile

    • Method Detail

      • getDefaultFileName

        @Nonnull
        public java.lang.String getDefaultFileName​(int nodeNum)
        Get Backup FileName for a given Node Number. Includes full directory path and filename.
        Parameters:
        nodeNum - Node Number
        Returns:
        the Backup File location within user directory.
      • getFile

        @CheckForNull
        public java.io.File getFile​(int nodeNum,
                                    boolean store)
        Get Backup File for a given Node Number.
        Parameters:
        nodeNum - Node Number
        store - True to make a new file if does not exist
        Returns:
        the Backup File
      • getFileName

        public java.lang.String getFileName​(int nodeNum)
        Get Backup FileName for a given Node Number.
        Parameters:
        nodeNum - Node Number
        Returns:
        the Backup FileName
      • getFileLocation

        public java.lang.String getFileLocation()
        Path to location of files.
        Returns:
        path to location
      • deleteFile

        public boolean deleteFile​(int nodeNum)
        Delete Backup File for a given Node Number.
        Parameters:
        nodeNum - Node Number
        Returns:
        true if no file to delete, or delete success. Else false.