|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnalyze
Some analysers will be required simply to do analysis of a dump and produce output in the form of name=value pairs or more complex forms such as XML. Such analysers would implement this interface (and also IAnalyzerBase). The analyser would also implement the method analyzeResponse(String[] response, String ruleName) which would analyse the response values and give the ability to answer some set of simple (typically yes/no) answers about the results. Those answers would then guide further analysis.
Field Summary | |
---|---|
static int |
STATE_ERROR
Error detected and needs handling but not fatal |
static int |
STATE_FALSE
No error - analyzer answer is 'false' or 'no' |
static int |
STATE_FATAL
Fatal error detected which needs handling |
static int |
STATE_OK
Nothing obviously wrong |
static int |
STATE_TRUE
No error - analyzer answer is 'true' or 'yes' |
Method Summary | |
---|---|
int |
analyzeResponse(java.lang.String[] response,
java.lang.String ruleName)
When the analysis has been done and produced some strings we need to decide what to do next. |
java.lang.String[] |
doAnalysis()
Run the analysis which the analyser is designed to do on the image. |
java.lang.String[] |
listRules()
An analyzer may be capable of evaluating a number of separate rules which typically operate on a single set of data obtained by the analyzer. |
IAnalysisReport |
produceReport(java.lang.String[] response,
java.lang.String rule,
int state)
When the response has been analysed we have produced some state value. |
Field Detail |
---|
static final int STATE_OK
static final int STATE_ERROR
static final int STATE_FATAL
static final int STATE_TRUE
static final int STATE_FALSE
Method Detail |
---|
java.lang.String[] doAnalysis()
int analyzeResponse(java.lang.String[] response, java.lang.String ruleName)
response
- - the set of strings which was produced by running this analyzerruleName
- - the rule which we were analysing in the analyzer
IAnalysisReport produceReport(java.lang.String[] response, java.lang.String rule, int state)
response
- - the set of strings which was produced by running this analyzerrule
- - the rule which we were analysing in the analyzerstate
- - the value returned from analyzeResponse.
java.lang.String[] listRules()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |