|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.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. |
abstract DeployerLog |
getDeployerLog()
Returns the DeployerLog of the task. |
Vector<LogEntry> |
getLogEntries()
Gets the log entries. |
protected org.ow2.util.log.Log |
getLogger()
Get logger. |
protected abstract boolean |
isDeployedLogEntry(LogEntry logEntry)
Check if the package pointed by the log entry is currently deploy. |
boolean |
isValidLogEntry(LogEntry logEntry)
Return true if the work copy exists and is up to date. |
boolean |
removeLogEntry(LogEntry logEntry)
Remove the work copy specified in the log entry and the log entry. |
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 abstract boolean isDeployedLogEntry(LogEntry logEntry) throws WorkCleanerException
logEntry
- entry in a deploy log
WorkCleanerException
- If it failspublic abstract DeployerLog getDeployerLog()
DeployerLog
of the task.
public boolean isValidLogEntry(LogEntry logEntry) throws WorkCleanerException
logEntry
- entry in a deploy log
WorkCleanerException
- if it failspublic void execute() throws WorkCleanerException
execute
in interface CleanTask
WorkCleanerException
- if it failed.public boolean removeLogEntry(LogEntry logEntry) throws WorkCleanerException
logEntry
- entry in a deploy log
WorkCleanerException
- if it failspublic Vector<LogEntry> getLogEntries()
protected org.ow2.util.log.Log getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |