com.ebay.carad.os.vitalsigns.dataretrievers
Class TesterLogger

java.lang.Object
  extended by com.ebay.carad.os.vitalsigns.dataretrievers.TesterLogger
All Implemented Interfaces:
IDataRetriever, ITemplatizable, java.lang.Cloneable

public class TesterLogger
extends java.lang.Object
implements IDataRetriever, ITemplatizable, java.lang.Cloneable

Wraps an instance of ITester, and logs its output.

Version:
$Id$
Author:
Jeremy Kraybill, Jeremy Thomerson

Field Summary
private  ITester mTester
           
 
Fields inherited from interface com.ebay.carad.os.vitalsigns.IDataRetriever
NO_OP_DATA_RETRIEVER, ZERO
 
Constructor Summary
TesterLogger()
          Basic constructor.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Float getData()
           
 java.lang.Float getData(IDashboardAgent agent)
           
 ITester getTester()
          Returns the tester we are running.
 void setTester(ITester tester)
          IoC method, sets the tester we are wrapping.
 void templatize(java.lang.Object[] params)
          Template-formats the given object with a set of parameters.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mTester

private ITester mTester
Constructor Detail

TesterLogger

public TesterLogger()
Basic constructor.

Method Detail

setTester

public void setTester(ITester tester)
IoC method, sets the tester we are wrapping.

Parameters:
tester - the tester to run

getTester

public ITester getTester()
Returns the tester we are running.

Returns:
the tester to run

getData

public java.lang.Float getData()

templatize

public void templatize(java.lang.Object[] params)
Description copied from interface: ITemplatizable
Template-formats the given object with a set of parameters.

Specified by:
templatize in interface ITemplatizable
Parameters:
params - an array of objects (usually strings) to use for templatization

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface IDataRetriever
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getData

public java.lang.Float getData(IDashboardAgent agent)
Specified by:
getData in interface IDataRetriever


Copyright © 2004-2009. All Rights Reserved.