Class VerifierList


  • public class VerifierList
    extends Object
    Implements a class for getting the list of keyfiles and the associated logfiles to be used when verifying archives of logs.
    • Constructor Detail

      • VerifierList

        public VerifierList()
    • Method Detail

      • getKeysAndFiles

        public TreeMap getKeysAndFiles​(File dir,
                                       String filter)
        Returns the list of keyfiles and associated logfiles in a treemap structure.
        Parameters:
        dir - path to the location of the files.
        filter - the filter to be used in searching.
        Returns:
        a treemap of the keyfiles and associates logfiles.
      • getSortedKeyFileNames

        public String[] getSortedKeyFileNames​(File dir,
                                              String basestring)
        Sort the files and return.
        Parameters:
        dir - path to the files.
        basestring - the filter to be used for selecting files.
        Returns:
        String array of the sorted results.
      • getLogFilesForKey

        public Vector getLogFilesForKey​(File dir,
                                        String log,
                                        String key1,
                                        String key2)
        Returns the logfiles associated with the given keyfile with reference to the next keyfile.
        Parameters:
        dir - path to the location of the log files.
        log - The filter on which the search is to be applied.
        key1 - The key on which the search is conducted and assocaited.
        key2 - The key against which the search is conducted.
        Returns:
        a Vector of the results of the search in sorted order.