org.objectweb.jonas.work
Class WorkCleaner
java.lang.Object
java.lang.Thread
org.objectweb.jonas.work.WorkCleaner
- All Implemented Interfaces:
- Runnable
public class WorkCleaner
- extends Thread
JOnAS work deployment files and directories cleaner class. This class
provides a way for removing entries wich are unconsistent.
- Author:
- Florent Benoit, Ludovic Bert, Benoit PELLETIER
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
getLogger
protected static org.objectweb.util.monolog.api.Logger getLogger()
- Returns:
- the logger
getInstance
public static WorkCleaner getInstance()
- Get an instance of the Work Cleaner.
- Returns:
- the instance of the Work Cleaner.
registerTask
public void registerTask(AbsCleanTask absCleanTask)
throws CleanerException
- Register a new clean task
- Parameters:
absCleanTask
- the task to add
- Throws:
CleanerException
- if the task cannot be registred
executeTasks
public void executeTasks()
- Execute the registered tasks
run
public void run()
- Start the thread of this class It will clean all the work entries
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
Copyright © 2007 OW2 Consortium. All Rights Reserved.