Package edu.sc.seis.sod
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()
-
Constructor Details
-
TotalLoserEventCleaner
public TotalLoserEventCleaner(java.time.Duration duration)
-
-
Method Details
-
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
- Specified by:
run
in classjava.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)
-