Class FileListCap
java.lang.Object
com.cloudbees.jenkins.support.timer.FileListCap
Maintains most recent N files in a directory in cooperation with the writer.
Useful to record incidents as files without bankrupting
- Author:
- stevenchristou
-
Constructor Summary
ConstructorDescriptionFileListCap
(File folder, int size) FileListCap
(File folder, FilenameFilter filter, int size) -
Method Summary
-
Constructor Details
-
FileListCap
-
FileListCap
-
-
Method Details
-
getFolder
-
getSize
public int getSize() -
add
-
touch
-
file
Creates a new file object in this directory without changing the relative path.- Parameters:
path
- Relative path.- Returns:
- the created file object.
-