org.bibalex.daf.entities.phase
Class CheckStrategy
java.lang.Object
org.bibalex.daf.entities.phase.CheckStrategy
- Direct Known Subclasses:
- StepThroughCheckStrategy
public abstract class CheckStrategy
- extends java.lang.Object
An abstract base class the defines the functionality needed to be implemented by classes to
apply phase checks against a folder structure.
- Author:
- Shehab.Kamal
Method Summary |
abstract void |
applyChecks(PhysicalDef physicalDef,
java.lang.String jobFolder,
FileHandler fileHandler,
PhysicalDef alternateDef,
java.lang.String alternatePath,
FileHandler alternateHandler)
When overridden in a derived class, it compares the physical folder structure
againts the folder defined in the physical section of the phase Xml definition.
Note: The method receives 6 parameters 3 of them are alternate parameters.
The reason behind alternate parameters is to compare PrePhase files with PostPhase files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckStrategy
public CheckStrategy()
applyChecks
public abstract void applyChecks(PhysicalDef physicalDef,
java.lang.String jobFolder,
FileHandler fileHandler,
PhysicalDef alternateDef,
java.lang.String alternatePath,
FileHandler alternateHandler)
throws PhaseCheckException
- When overridden in a derived class, it compares the physical folder structure
againts the folder defined in the physical section of the phase Xml definition.
Note: The method receives 6 parameters 3 of them are alternate parameters.
The reason behind alternate parameters is to compare PrePhase files with PostPhase files.
- Parameters:
physicalDef
- The PhysicalDef insctance to check the folder physical structure against.jobFolder
- The path of the job folder.fileHandler
- The FileHandler used to collect information about the physical job folder.alternateDef
- The alternate PhysicalDef.
Alternate means that if the given physicalDef is pre-phase then this will be post-phase and vice versa.alternatePath
- The alternate job path.
Alternate means that if the given job path is local then this will be remote and vice versa.alternateHandler
- The alternate FileHandler.
Alternate means that if the given fileHandler is FTPImpl then this will be LocalImp and vice versa.
- Throws:
PhaseCheckException
- If the checks fails.