1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package com.ebay.carad.os.vitalsigns;
22
23 /***
24 * @author Jeremy Thomerson
25 * @version $Id$
26 */
27 public interface IDataRetriever extends Cloneable {
28
29 public static final Float ZERO = new Float(0);
30
31 public static final IDataRetriever NO_OP_DATA_RETRIEVER = new IDataRetriever() {
32 /***
33 * @return This implementation returns <tt>null</tt> so that nothing is recorded.
34 * It may be used for reports that do not need to log data with each
35 * run. For instance, a BasePerReportTemplatingReporter that gets it's data
36 * from another data source, not this logged data.
37 */
38 public Float getData(IDashboardAgent agent) { return null; }
39 public Object clone() throws CloneNotSupportedException {
40 return NO_OP_DATA_RETRIEVER;
41 }
42 };
43
44 Float getData(IDashboardAgent agent);
45 Object clone() throws CloneNotSupportedException;
46
47 }
48