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.dao;
22
23 import com.ebay.carad.os.vitalsigns.DataPoint;
24 import com.ebay.carad.os.vitalsigns.IDashboardReport;
25 import com.ebay.carad.os.vitalsigns.IReportingListenerContainer;
26 import com.ebay.carad.os.vitalsigns.ReportingException;
27
28 /***
29 * Interface for dealing with the standard-type "data in timeline" type reports.
30 *
31 * @author Jeremy Thomerson
32 * @version $Id$
33 */
34 public interface IDataDAO {
35
36 public static final DataPoint[] EMPTY_DATA_POINT_ARRAY = new DataPoint[0];
37
38 public static final IDataDAO NO_OP_INSTANCE = new IDataDAO() {
39 public void storeReportData(float data, IReportingListenerContainer agent, IDashboardReport report) {
40
41 }
42
43 public DataPoint[] getData(IDashboardReport report) {
44 return EMPTY_DATA_POINT_ARRAY;
45 }
46 };
47
48 void storeReportData(float data, IReportingListenerContainer agent, IDashboardReport report) throws ReportingException;
49
50 DataPoint[] getData(IDashboardReport report) throws ReportingException;
51 }
52