Class TotalLoserEventCleaner

java.lang.Object
java.util.TimerTask
edu.sc.seis.sod.TotalLoserEventCleaner
All Implemented Interfaces:
java.lang.Runnable

public class TotalLoserEventCleaner
extends java.util.TimerTask
This task runs immediately on instantiation and then once a week after that. It removes all events that were failed in the eventArm by a subsetter from the database on each run.
  • Constructor Summary

    Constructors 
    Constructor Description
    TotalLoserEventCleaner​(java.time.Duration duration)  
  • Method Summary

    Modifier and Type Method Description
    static void clean​(java.lang.Class eventPairClass, java.time.Instant ageAgo)  
    static void cleanECP​(java.time.Instant ageAgo)  
    static void cleanENP​(java.time.Instant ageAgo)  
    static void cleanESP​(java.time.Instant ageAgo)  
    static void cleanEvents​(java.time.Instant ageAgo)  
    static void cleanEVP​(java.time.Instant ageAgo)  
    void run()  

    Methods inherited from class java.util.TimerTask

    cancel, scheduledExecutionTime

    Methods inherited from class java.lang.Object

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

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface java.lang.Runnable
      Specified by:
      run in class java.util.TimerTask
    • cleanEvents

      public static void cleanEvents​(java.time.Instant ageAgo)
    • cleanESP

      public static void cleanESP​(java.time.Instant ageAgo)
    • cleanENP

      public static void cleanENP​(java.time.Instant ageAgo)
    • cleanECP

      public static void cleanECP​(java.time.Instant ageAgo)
    • cleanEVP

      public static void cleanEVP​(java.time.Instant ageAgo)
    • clean

      public static void clean​(java.lang.Class eventPairClass, java.time.Instant ageAgo)