|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_lib.deployment.work.AbsCleanTask
public abstract class AbsCleanTask
Abstract Clean Task class which define a generic job executed by the cleaner thread
Constructor Summary | |
---|---|
protected |
AbsCleanTask()
Default constructor : Construct a new cleaner. |
Method Summary | |
---|---|
void |
execute()
Run the clean task |
protected abstract java.util.Vector |
getLogEntries()
Abstract method defined in the derived classes get the log entries |
protected static org.objectweb.util.monolog.api.Logger |
getLogger()
|
protected abstract boolean |
isDeployLogEntry(LogEntry logEntry)
Check if the package pointed by the log entry is currently deploy |
protected abstract boolean |
isValidLogEntry(LogEntry logEntry)
Abstract method defined in the derived classes return true if the work copy exist and is up to date |
protected abstract void |
removeLogEntry(LogEntry logEntry)
Abstract method defined in the derived classes remove the work copy specified in the log entry and the log entry |
protected void |
removeRecursiveDirectory(java.io.File file)
Remove a directory with all its child (recursive) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbsCleanTask()
Method Detail |
---|
protected static org.objectweb.util.monolog.api.Logger getLogger()
protected abstract boolean isValidLogEntry(LogEntry logEntry) throws CleanerException
logEntry
- entry in a deploy log
CleanerException
- if it failsprotected abstract void removeLogEntry(LogEntry logEntry) throws CleanerException
logEntry
- entry in a deploy log
CleanerException
- if it failsprotected abstract java.util.Vector getLogEntries()
protected abstract boolean isDeployLogEntry(LogEntry logEntry) throws CleanerException
logEntry
- entry in a deploy log
CleanerException
- if it failspublic void execute() throws CleanerException
CleanerException
- if it failed.protected void removeRecursiveDirectory(java.io.File file)
file
- the file or directory which must be deleted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |