Interface OverviewHistoryDao

  • All Known Implementing Classes:
    FileHistoryDao, JobConfigHistoryStrategy

    public interface OverviewHistoryDao
    HistoryDao which returns all jobs, system configurations or deleted jobs.
    Author:
    Mirko Friedenhagen
    • Method Detail

      • getDeletedJobs

        File[] getDeletedJobs​(String folderName)
        Returns a list of deleted jobs with a history.
        Parameters:
        folderName - name of folder.
        Returns:
        list of deleted jobs with a history, emtpy when no history exists.
      • getSystemRevisionAmount

        int getSystemRevisionAmount()
        Returns:
        the total number of system configuration revision entries.
      • getJobRevisionAmount

        int getJobRevisionAmount()
        Returns:
        the total number of job configuration revision entries.
      • getSystemRevisionAmount

        int getSystemRevisionAmount​(String jobName)
        Returns:
        the number of configuration revision entries for a certain system config.
      • getDeletedJobAmount

        int getDeletedJobAmount()
        Returns:
        the total number of deleted Jobs.
      • getJobRevisionAmount

        int getJobRevisionAmount​(String jobName)
        Returns:
        the number of configuration revision entries for a certain system config.
      • getTotalRevisionAmount

        int getTotalRevisionAmount()
        Returns:
        the total number of configuration revision entries, excluding agent config entries - TODO future work.
      • getDeletedJobs

        File[] getDeletedJobs()
        Returns a list of deleted jobs with a history, including all those contained in folders.
        Returns:
        list of deleted jobs with a history, emtpy when no history exists.
      • getJobs

        File[] getJobs​(String folderName)
        Returns a list of jobs with a history.
        Parameters:
        folderName - name of folder
        Returns:
        list of jobs with a history, empty when no history exists.
      • getJobs

        File[] getJobs()
        Returns a list of jobs with a history, including all those contained in folders.
        Returns:
        list of all jobs with a history, empty when no history exists.
      • getSystemConfigs

        File[] getSystemConfigs()
        Returns a list of all system configuration files with a history.
        Returns:
        list of all system configuration files with a history, empty when no history exists.
      • getSystemConfigsMap

        SortedMap<String,​HistoryDescr> getSystemConfigsMap()
        Returns:
        a map mapping timestamps to historydescrs. Contains all system config revision entries.
      • getJobHistory

        SortedMap<String,​HistoryDescr> getJobHistory​(String jobName)
        Returns a sorted map of all HistoryDescr for a given job.
        Parameters:
        jobName - of the job
        Returns:
        sorted map.
      • getSystemHistory

        SortedMap<String,​HistoryDescr> getSystemHistory​(String name)
        Returns a sorted map of all HistoryDescr for a given system configuration.
        Parameters:
        name - of the configuration
        Returns:
        sorted map.