01: /**
02: * $Id: UBTReportMBean.java,v 1.4 2005/12/13 07:46:18 sm140826 Exp $
03: */package com.sun.portal.ubt.admin.mbeans;
04:
05: import com.sun.portal.admin.common.PSMBeanException;
06:
07: import java.util.Locale;
08:
09: /**
10: * To get UBT Report for a host for a portal
11: * Aggregates ubt logs from all the instances of a portal in a host
12: * This is a basic deploy scenario.
13: * If one wants to aggregate the UBT Reports from the distributed portal instances,
14: * one must use UBTReportAggregator to do that.
15: */
16: public interface UBTReportMBean {
17:
18: /**
19: * Generate UBT Report. If no reportName is given,
20: * it generates all the UBT reports
21: *
22: * @param reportName
23: * @throws PSMBeanException
24: */
25: public Object generateUBTReport(String reportName, Locale locale)
26: throws PSMBeanException;
27:
28: /**
29: * Generate UBT Report. If no reportName is given,
30: * it generates all the UBT reports, else all the reports that are specified are generated
31: * @param reportNames Array of reports to be generated
32: * @return
33: * @throws PSMBeanException
34: */
35: public Object generateUBTReport(String[] reportNames, Locale locale)
36: throws PSMBeanException;
37:
38: /**
39: * Returns UBTReportI[] mined report data, which an aggregator can use to aggreagate
40: * to generate actual report.
41: * This is derived data per report for a host(all instances of that portal)
42: * @param reportNames
43: * @return UBTReportI[]
44: * @throws PSMBeanException
45: */
46: public Object getReportData(String[] reportNames)
47: throws PSMBeanException;
48: }
|