org.ow2.jonas.ear.internal
Class EarCleanTask

java.lang.Object
  extended by org.ow2.jonas.lib.work.AbsCleanTask
      extended by org.ow2.jonas.ear.internal.EarCleanTask
All Implemented Interfaces:
CleanTask

public class EarCleanTask
extends AbsCleanTask

JOnAS EAR unused directory clean task class. This class provides a way for removing directories which are inconsistent directories for ear files.

Author:
Florent BENOIT, Benoit PELLETIER

Constructor Summary
EarCleanTask(EarService earService, DeployerLog deployerLog)
          Construct a new EAR clean task.
 
Method Summary
 DeployerLog getDeployerLog()
          Returns the DeployerLog of the task.
protected  boolean isDeployedLogEntry(LogEntry logEntry)
          Check if the package pointed by the log entry is currently deploy.
 
Methods inherited from class org.ow2.jonas.lib.work.AbsCleanTask
execute, getLogEntries, getLogger, isValidLogEntry, removeLogEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EarCleanTask

public EarCleanTask(EarService earService,
                    DeployerLog deployerLog)
Construct a new EAR clean task.

Parameters:
earService - EarService reference
deployerLog - DeployerLog of the task
Method Detail

isDeployedLogEntry

protected boolean isDeployedLogEntry(LogEntry logEntry)
                              throws WorkCleanerException
Check if the package pointed by the log entry is currently deploy.

Specified by:
isDeployedLogEntry in class AbsCleanTask
Parameters:
logEntry - entry in a deploy log
Returns:
true if the package pointed by the log entry is currently deployed
Throws:
WorkCleanerException - if it fails

getDeployerLog

public DeployerLog getDeployerLog()
Returns the DeployerLog of the task.

Specified by:
getDeployerLog in class AbsCleanTask
Returns:
The DeployerLog of the task
See Also:
AbsCleanTask.getDeployerLog()


Copyright © 2010 OW2 Consortium. All Rights Reserved.