public interface RiskExtractor
The risk analysis framework calls the init() function once for each registered RiskExtractor. The isAtRisk functions should be thread-safe. Currently the RiskExtractorResult class holds only atRisk boolean attributes.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameter(java.lang.String paramKey)
This function is usually called by the isAtRisk method.
|
void |
init(java.util.Map<java.lang.String,java.lang.String> initParameters)
Initialization function - called once, should implement specific initialization tasks.
|
boolean |
isAtRisk(DnxDocument dnxDocument,
java.lang.String pathToFile)
Check if a given file is at risk.
|
void init(java.util.Map<java.lang.String,java.lang.String> initParameters) throws java.lang.Exception
initParameters
- Initialization parameters for the risk extraction tool.java.lang.Exception
java.lang.String getParameter(java.lang.String paramKey)
paramKey
- boolean isAtRisk(DnxDocument dnxDocument, java.lang.String pathToFile) throws java.lang.Exception
dnxDocument
- The DNX document of the file that should be checked.pathToFile
- - The absolute path to the file that needs to be checked.java.lang.Exception