org.objectweb.jonas_lib.deployment.work.EarCleanTask Class Reference

Inherits org.objectweb.jonas_lib.deployment.work.AbsCleanTask.

Inheritance diagram for org.objectweb.jonas_lib.deployment.work.EarCleanTask:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_lib.deployment.work.EarCleanTask:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EarCleanTask (URL earApps, DeployerLog earDeployerLog)

Protected Member Functions

boolean isValidLogEntry (LogEntry logEntry) throws CleanerException
void removeLogEntry (LogEntry logEntry) throws CleanerException
Vector getLogEntries ()
boolean isDeployLogEntry (LogEntry logEntry) throws CleanerException

Detailed Description

JOnAS Ear unused directory clean task class. This class provides a way for removing directories wich are unconsistent directories for ear files.
Author:
Florent BENOIT

Benoit PELLETIER

Definition at line 44 of file EarCleanTask.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.deployment.work.EarCleanTask.EarCleanTask URL  earApps,
DeployerLog  earDeployerLog
 

Default constructor : Construct a new cleaner.

Parameters:
earApps the jonasroot apps directory
earDeployerLog the deployer logger

Definition at line 61 of file EarCleanTask.java.


Member Function Documentation

Vector org.objectweb.jonas_lib.deployment.work.EarCleanTask.getLogEntries  )  [protected, virtual]
 

Gets the log entries

Returns:
the log entries

Implements org.objectweb.jonas_lib.deployment.work.AbsCleanTask.

Definition at line 130 of file EarCleanTask.java.

References org.objectweb.jonas_lib.deployment.work.DeployerLog.getEntries().

Here is the call graph for this function:

boolean org.objectweb.jonas_lib.deployment.work.EarCleanTask.isDeployLogEntry LogEntry  logEntry  )  throws CleanerException [protected, virtual]
 

Check if the package pointed by the log entry is currently deploy

Parameters:
logEntry entry in a deploy log
Returns:
true if the package pointed by the log entry is currently deployed
Exceptions:
CleanerException if it fails

Implements org.objectweb.jonas_lib.deployment.work.AbsCleanTask.

Definition at line 140 of file EarCleanTask.java.

References org.objectweb.jonas.service.ServiceManager.getEarService(), org.objectweb.jonas.service.ServiceManager.getInstance(), and org.objectweb.jonas.ear.EarService.isEarDeployedByUnpackName().

Here is the call graph for this function:

boolean org.objectweb.jonas_lib.deployment.work.EarCleanTask.isValidLogEntry LogEntry  logEntry  )  throws CleanerException [protected, virtual]
 

Return true if the work copy exists and is up to date

Parameters:
logEntry entry in a deploy log
Returns:
true if the work copy exists and is up to date
Exceptions:
CleanerException if it fails

Implements org.objectweb.jonas_lib.deployment.work.AbsCleanTask.

Definition at line 73 of file EarCleanTask.java.

References org.objectweb.jonas_lib.deployment.work.AbsCleanTask.getLogger().

Here is the call graph for this function:

void org.objectweb.jonas_lib.deployment.work.EarCleanTask.removeLogEntry LogEntry  logEntry  )  throws CleanerException [protected, virtual]
 

Remove the work copy specified in the log entry and the log entry

Parameters:
logEntry entry in a deploy log
Exceptions:
CleanerException if it fails

Implements org.objectweb.jonas_lib.deployment.work.AbsCleanTask.

Definition at line 111 of file EarCleanTask.java.

References org.objectweb.jonas_lib.deployment.work.DeployerLog.removeEntry(), and org.objectweb.jonas_lib.deployment.work.AbsCleanTask.removeRecursiveDirectory().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:12:26 2005 for JOnAS by  doxygen 1.3.9.1