Package hudson.plugins.jobConfigHistory
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 Summary
Modifier and TypeMethodDescriptionintFile[]Returns a list of deleted jobs with a history, including all those contained in folders.File[]getDeletedJobs(String folderName) Returns a list of deleted jobs with a history.getJobHistory(String jobName) Returns a sorted map of all HistoryDescr for a given job.intintgetJobRevisionAmount(String jobName) File[]getJobs()Returns a list of jobs with a history, including all those contained in folders.File[]Returns a list of jobs with a history.File[]Returns a list of all system configuration files with a history.getSystemHistory(String name) Returns a sorted map of all HistoryDescr for a given system configuration.intintgetSystemRevisionAmount(String jobName) int
-
Method Details
-
getDeletedJobs
Returns a list of deleted jobs with a history.- Parameters:
folderName- name of folder.- Returns:
- array of deleted jobs with a history, empty 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
- Returns:
- the number of configuration revision entries for a certain system config.
-
getDeletedJobAmount
int getDeletedJobAmount()- Returns:
- the total number of deleted Jobs.
-
getJobRevisionAmount
- 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:
- array of deleted jobs with a history, empty when no history exists.
-
getJobs
Returns a list of jobs with a history.- Parameters:
folderName- name of folder- Returns:
- array 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:
- array 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:
- array 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
Returns a sorted map of all HistoryDescr for a given job.- Parameters:
jobName- of the job- Returns:
- sorted map.
-
getSystemHistory
Returns a sorted map of all HistoryDescr for a given system configuration.- Parameters:
name- of the configuration- Returns:
- sorted map.
-