Class FileListCap

java.lang.Object
com.cloudbees.jenkins.support.timer.FileListCap

public class FileListCap extends Object
Maintains most recent N files in a directory in cooperation with the writer. Useful to record incidents as files without bankrupting
Author:
stevenchristou
  • Constructor Details

    • FileListCap

      public FileListCap(File folder, int size)
    • FileListCap

      public FileListCap(File folder, FilenameFilter filter, int size)
  • Method Details

    • getFolder

      public File getFolder()
    • getSize

      public int getSize()
    • add

      public void add(File f)
    • touch

      public void touch(File f)
    • file

      public File file(String path)
      Creates a new file object in this directory without changing the relative path.
      Parameters:
      path - Relative path.
      Returns:
      the created file object.