Posts

Showing posts with the label Java Tips and Tools

Configurable Recursive Purge and Retain Data Tool

In this article we'll discuss and demonstrate a very helpful tool for doing a recursive search through directories from a given root directory and all of its children. In this case, the application will decide whether a file should be deleted or retained. It can, through a property file, have different retention policies (i.e. number of days old for a given a path). At the end of this article, there is a link from which you can clone the repository and freely use and modify. C onfigurable H I erachrical R etention and P urge D ata Tool ( chirpd ) This tool consists of: A Bash script - This executes the java jar: chirp-data-tool.jar Three Java Classes - The java classes are the main part of this tool The three Java Classes include: ChirpData - This class is the main class and handles the major processing ChirpDataLogger - Handles logging messages ChirpDataException - The throwable Exception class Now will explain the flow of this tool: The chirpd comma...