Class UpgradeCleaner

java.lang.Object
org.ka2ddo.yaac.upgrade.cleanup.UpgradeCleaner
Direct Known Subclasses:
CleanObsoletedUnversionedJSSCJar, CleanOldApacheLibraryVersions, CleanOldOptionalSslAprsIsDriver

public abstract class UpgradeCleaner extends Object
This class defines the basic framework of an upgrade cleaner. Subclasses should extend this for the specifics of any given cleaner.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Date
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UpgradeCleaner(String thresholdDate)
    Instantiate a UpgradeCleaner instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Perform the cleaning action for this UpgradeCleaner instance.
    static void
    main(String[] args)
    Run the UpgradeCleaner.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • thresholdDate

      protected final Date thresholdDate
  • Constructor Details

    • UpgradeCleaner

      protected UpgradeCleaner(String thresholdDate)
      Instantiate a UpgradeCleaner instance.
      Parameters:
      thresholdDate - String in format "yyyy-MM-dd" for purging items older than this build
  • Method Details

    • main

      public static void main(String[] args)
      Run the UpgradeCleaner.
      Parameters:
      args - ignored
    • clean

      public abstract void clean()
      Perform the cleaning action for this UpgradeCleaner instance.