net.sourceforge.basher.impl
Class CSVFileCollector

java.lang.Object
  extended by net.sourceforge.basher.impl.AbstractCollector
      extended by net.sourceforge.basher.impl.AbstractFileCollector
          extended by net.sourceforge.basher.impl.CSVFileCollector
All Implemented Interfaces:
EventListener, Collector, BasherEventListener, org.ops4j.gaderian.events.RegistryShutdownListener

public class CSVFileCollector
extends AbstractFileCollector
implements org.ops4j.gaderian.events.RegistryShutdownListener

Version:
1.0
Author:
Johan Lindquist

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.basher.impl.AbstractFileCollector
AbstractFileCollector.Classifier, AbstractFileCollector.FileEntry, AbstractFileCollector.Type
 
Field Summary
 
Fields inherited from class net.sourceforge.basher.impl.AbstractFileCollector
_collectionDirectory, _openFiles, _parent
 
Fields inherited from class net.sourceforge.basher.impl.AbstractCollector
_log, _timeSource
 
Constructor Summary
CSVFileCollector()
           
 
Method Summary
protected  String formatAverage(Average average)
           
protected  String formatExecution(String taskName, long elapsedTime, long elapsedTimeNanos)
          Writes the time the specified task took to execute.
 
Methods inherited from class net.sourceforge.basher.impl.AbstractFileCollector
closeOpenResources, dumpAverage, fail, getWriter, initializeCollector, initializeService, markAverage, notRun, setAverageFilenamePrefix, setAverageFooter, setAverageHeader, setExecutionFooter, setExecutionHeader, setExtension, setNumThreads, setQueueCapacity, setTimeOut, success, writeToFile
 
Methods inherited from class net.sourceforge.basher.impl.AbstractCollector
basherEvent, getAverages, getFailures, getNotRun, getSuccesses, getTotal, isCollecting, registryDidShutdown, setLog, setTimeSource, startCollecting, stopCollecting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ops4j.gaderian.events.RegistryShutdownListener
registryDidShutdown
 

Constructor Detail

CSVFileCollector

public CSVFileCollector()
Method Detail

formatAverage

protected String formatAverage(Average average)
Specified by:
formatAverage in class AbstractFileCollector

formatExecution

protected String formatExecution(String taskName,
                                 long elapsedTime,
                                 long elapsedTimeNanos)
Writes the time the specified task took to execute.

Specified by:
formatExecution in class AbstractFileCollector
Parameters:
taskName - The name of the task (used for the filename as well)
elapsedTime - Time the task took to execute
elapsedTimeNanos -


Copyright © 2006-2010 Basher Team. All Rights Reserved.