org.apache.lucene.benchmark.byTask.stats

Class Points

public class Points extends Object

Test run data points collected as the test proceeds.
Constructor Summary
Points(Config config)
Create a Points statistics object.
Method Summary
voidclearData()
Clear all data, prepare for more tests.
voidmarkTaskEnd(TaskStats stats, int count)
mark the end of a task
TaskStatsmarkTaskStart(PerfTask task, int round)
Mark that a task is starting.
ListtaskStats()
Return the current task stats. the actual task stats are returned, so caller should not modify this task stats.

Constructor Detail

Points

public Points(Config config)
Create a Points statistics object.

Method Detail

clearData

public void clearData()
Clear all data, prepare for more tests.

markTaskEnd

public void markTaskEnd(TaskStats stats, int count)
mark the end of a task

markTaskStart

public TaskStats markTaskStart(PerfTask task, int round)
Mark that a task is starting. Create a task stats for it and store it as a point.

Parameters: task the starting task.

Returns: the new task stats created for the starting task.

taskStats

public List taskStats()
Return the current task stats. the actual task stats are returned, so caller should not modify this task stats.

Returns: current TaskStats.

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