org.apache.lucene.benchmark.byTask.tasks

Class ReportTask

public abstract class ReportTask extends PerfTask

Report (abstract) task - all report tasks extend this task.
Field Summary
protected static String[]COLS
protected static StringELAPSED
protected static Stringnewline
protected static StringOP
Get a textual summary of the benchmark results, average from all test runs.
protected static StringRECCNT
protected static StringRECSEC
protected static StringROUND
protected static StringRUNCNT
protected static StringTOTMEM
protected static StringUSEDMEM
Constructor Summary
ReportTask(PerfRunData runData)
Method Summary
protected ReportgenPartialReport(int reported, LinkedHashMap partOfTasks, int totalSize)
protected StringlongestOp(Iterator taskStats)
find the longest op name out of completed tasks.
protected booleanshouldNeverLogAtStart()
protected booleanshouldNotRecordStats()
protected StringtableTitle(String longestOp)
Compute a title line for a report table
protected StringtaskReportLine(String longestOp, TaskStats stat)
Compute a report line for the given task stat.

Field Detail

COLS

protected static final String[] COLS

ELAPSED

protected static final String ELAPSED

newline

protected static final String newline

OP

protected static final String OP
Get a textual summary of the benchmark results, average from all test runs.

RECCNT

protected static final String RECCNT

RECSEC

protected static final String RECSEC

ROUND

protected static final String ROUND

RUNCNT

protected static final String RUNCNT

TOTMEM

protected static final String TOTMEM

USEDMEM

protected static final String USEDMEM

Constructor Detail

ReportTask

public ReportTask(PerfRunData runData)

Method Detail

genPartialReport

protected Report genPartialReport(int reported, LinkedHashMap partOfTasks, int totalSize)

longestOp

protected String longestOp(Iterator taskStats)
find the longest op name out of completed tasks.

Parameters: taskStats completed tasks to be considered.

Returns: the longest op name out of completed tasks.

shouldNeverLogAtStart

protected boolean shouldNeverLogAtStart()

shouldNotRecordStats

protected boolean shouldNotRecordStats()

tableTitle

protected String tableTitle(String longestOp)
Compute a title line for a report table

Parameters: longestOp size of longest op name in the table

Returns: the table title line.

taskReportLine

protected String taskReportLine(String longestOp, TaskStats stat)
Compute a report line for the given task stat.

Parameters: longestOp size of longest op name in the table. stat task stat to be printed.

Returns: the report line.

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.