Class ETLogReport
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractTestReport
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractArchiveFileReport
-
- de.tracetronic.jenkins.plugins.ecutest.report.log.ETLogReport
-
- All Implemented Interfaces:
ModelObject
public class ETLogReport extends AbstractArchiveFileReport
Holds a link to the ecu.test log report. The build that holds the artifact is resolved byStaplerRequest.findAncestorObject(Class)
at runtime.
-
-
Constructor Summary
Constructors Constructor Description ETLogReport(String id, String title, String fileName, long fileSize, List<ETLogAnnotation> logs, int warningLogCount, int errorLogCount)
Instantiates a newETLogReport
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArchiveDir()
Gets the archive directory containing the stored files.int
getErrorLogCount()
Gets the total count of error logs.List<ETLogAnnotation>
getErrorLogs()
Gets the error logs.List<ETLogAnnotation>
getLogs()
int
getTotalErrorCount()
Gets the total count of warning logs including all sub reports.int
getTotalWarningCount()
Gets the total count of warning logs including all sub reports.int
getWarningLogCount()
Gets the total count of warning logs.List<ETLogAnnotation>
getWarningLogs()
Gets the warning logs.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractArchiveFileReport
doDynamic, getArchiveTargetDir, getFileName, getFileSize
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractTestReport
addSubReport, addSubReports, getBuild, getDisplayName, getId, getSubReports, getTitle, getUrl
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
doZipDownload, getAnchestorBuild, getAnchestorProject, getBuildAction, getOwner
-
-
-
-
Constructor Detail
-
ETLogReport
public ETLogReport(String id, String title, String fileName, long fileSize, List<ETLogAnnotation> logs, int warningLogCount, int errorLogCount)
Instantiates a newETLogReport
.- Parameters:
id
- the id used in the report URLtitle
- the report titlefileName
- the log file namefileSize
- the log file sizelogs
- the list of annotated logswarningLogCount
- the total count of warning logserrorLogCount
- the total count of error logs
-
-
Method Detail
-
getLogs
public List<ETLogAnnotation> getLogs()
-
getWarningLogs
public List<ETLogAnnotation> getWarningLogs()
Gets the warning logs.- Returns:
- the warning logs
-
getErrorLogs
public List<ETLogAnnotation> getErrorLogs()
Gets the error logs.- Returns:
- the error logs
-
getWarningLogCount
public int getWarningLogCount()
Gets the total count of warning logs.- Returns:
- the warningLogCount
-
getErrorLogCount
public int getErrorLogCount()
Gets the total count of error logs.- Returns:
- the errorLogCount
-
getTotalWarningCount
public int getTotalWarningCount()
Gets the total count of warning logs including all sub reports.- Returns:
- the total warning log count
-
getTotalErrorCount
public int getTotalErrorCount()
Gets the total count of warning logs including all sub reports.- Returns:
- the total error log count
-
getArchiveDir
public String getArchiveDir()
Description copied from class:AbstractArchiveFileReport
Gets the archive directory containing the stored files.- Specified by:
getArchiveDir
in classAbstractArchiveFileReport
- Returns:
- the archive directory
-
-