Class SpamAssassinManager.RazorLogTrimmer
java.lang.Object
com.aoindustries.aoserv.daemon.email.SpamAssassinManager.RazorLogTrimmer
- All Implemented Interfaces:
CronJob
- Enclosing class:
SpamAssassinManager
TODO: Make this be a standard Unix-based cron job, outside aoserv-daemon
package, so that functionality remains when aoserv-daemon disabled or
uninstalled.
TODO: Check for compatibility with CentOS 7
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.aoapps.cron.CronJob
CronJob.Executor, CronJob.ScheduleMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
run
(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year) Once a day, all of the razor-agent.log files are cleaned to only include the last 1000 lines.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoapps.cron.CronJob
getExecutor, getName, getScheduleMode
-
Constructor Details
-
RazorLogTrimmer
public RazorLogTrimmer()
-
-
Method Details
-
getSchedule
- Specified by:
getSchedule
in interfaceCronJob
-
run
public void run(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year) Once a day, all of the razor-agent.log files are cleaned to only include the last 1000 lines. -
getThreadPriority
public int getThreadPriority()- Specified by:
getThreadPriority
in interfaceCronJob
-