Class AbstractFileProcessCheck
- java.lang.Object
-
- org.silverpeas.core.process.check.AbstractProcessCheck
-
- org.silverpeas.core.process.management.AbstractFileProcessCheck
-
- All Implemented Interfaces:
Initialization
,ProcessCheck
- Direct Known Subclasses:
ComponentFileFilterProcessCheck
,DataStorageQuotaProcessCheck
public abstract class AbstractFileProcessCheck extends AbstractProcessCheck
Abstract extension ofAbstractProcessCheck
oriented on file system verifications.- Author:
- Yohann Chastagnier
- See Also:
AbstractProcessCheck
-
-
Constructor Summary
Constructors Constructor Description AbstractFileProcessCheck()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
check(ProcessExecutionContext processExecutionContext)
Contains the treatment of the verification.abstract void
checkFiles(ProcessExecutionContext processExecutionContext, FileHandler fileHandler)
Contains the treatment of the verification.ProcessCheckType
getType()
Gets the type of the checkprotected Set<String>
identifyComponentInstances(ProcessExecutionContext processExecutionProcess, FileHandler fileHandler)
Identifying all component instances aimed by the process chained execution-
Methods inherited from class org.silverpeas.core.process.check.AbstractProcessCheck
init, release
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.initialization.Initialization
getPriority
-
-
-
-
Method Detail
-
getType
public ProcessCheckType getType()
Description copied from interface:ProcessCheck
Gets the type of the check- Returns:
- the type of check.
-
check
public final void check(ProcessExecutionContext processExecutionContext) throws Exception
Description copied from interface:ProcessCheck
Contains the treatment of the verification.- Parameters:
processExecutionContext
- the context of the chained list of checks execution.- Throws:
Exception
-
checkFiles
public abstract void checkFiles(ProcessExecutionContext processExecutionContext, FileHandler fileHandler)
Contains the treatment of the verification. The file handler (@seeFileHandler
) associated to the current execution of chained Silverpeas processes is passed.- Parameters:
processExecutionContext
- the context of chained list of checks execution.fileHandler
- the instance of the file handler.- Throws:
Exception
-
identifyComponentInstances
protected final Set<String> identifyComponentInstances(ProcessExecutionContext processExecutionProcess, FileHandler fileHandler)
Identifying all component instances aimed by the process chained execution- Parameters:
processExecutionProcess
-fileHandler
-- Returns:
-
-