|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.jenkins.plugins.bfa.model.FailureReader
public abstract class FailureReader
Reader used to find indications of a failure cause.
Nested Class Summary | |
---|---|
static class |
FailureReader.InterruptibleCharSequence
CharSequence that notices thread interrupts -- as might be necessary to recover from a loose regex on unexpected challenging input. |
Field Summary | |
---|---|
protected Indication |
indication
The indication we are looking for. |
Constructor Summary | |
---|---|
FailureReader(Indication indication)
Standard constructor. |
Method Summary | |
---|---|
abstract FoundIndication |
scan(hudson.model.AbstractBuild build)
Scans a build log. |
abstract FoundIndication |
scan(hudson.model.AbstractBuild build,
PrintStream buildLog)
Scans for indications of a failure cause. |
protected FoundIndication |
scanMultiLineOneFile(hudson.model.AbstractBuild build,
BufferedReader reader,
String currentFile)
Scans one file for the required multi-line pattern. |
protected FoundIndication |
scanOneFile(hudson.model.AbstractBuild build,
BufferedReader reader,
String currentFile)
Scans one file for the required pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Indication indication
Constructor Detail |
---|
public FailureReader(Indication indication)
indication
- the indication to look for.Method Detail |
---|
public abstract FoundIndication scan(hudson.model.AbstractBuild build) throws IOException
build
- - the build whose log should be scanned.
IOException
- if so.public abstract FoundIndication scan(hudson.model.AbstractBuild build, PrintStream buildLog)
build
- the build to scan for indications.buildLog
- the log of the build.
protected FoundIndication scanOneFile(hudson.model.AbstractBuild build, BufferedReader reader, String currentFile) throws IOException
build
- the build we are processing.reader
- the reader to read from.currentFile
- the file path of the file we want to scan.
IOException
- if problems occur in the reader handling.protected FoundIndication scanMultiLineOneFile(hudson.model.AbstractBuild build, BufferedReader reader, String currentFile) throws IOException
build
- the build we are processing.reader
- the reader to read from.currentFile
- the file path of the file we want to scan.
IOException
- if problems occur in the reader handling.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |