| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.wli.reporting.ReportingDataManager
public class ReportingDataManager
ReportingDataManager is a server-local singleton object that keeps registry of reporting providers (a reporting provider implements ReportingDataHandler). It provides operations to add and remove reporting data handlers in addition to operation to export/handle reporting data stream.
Example:
 Registering a reporting provider  ...
 
  
 
 import com.bea.wli.reporting.*;
 ...
 ReportingDataManager rmgr = ReportingDataManager.getManager();
 MyReportingDataHandler myH = new MyReportingDataHandler();
 rmgr.addHandler(myH);
 
 
 Unregistering a reporting provider...
 
 
 
 rmgr.removeHandler(myH);
 
 
 
If the provider is deployed in the form of a J2EE Application, addHandler and removeHandler methods could be called in postStart and preStop operations respectively of an implementation of weblogic.application.ApplicationLifeCycleListener in the application.
Deployment Order: If J2EE application is used to package the provider then such an application should be deployed after the WebLogic Integration Common components (wlicommon.ear) are deployed.
ReportingDataHandler| Method Summary | |
|---|---|
|  void | addHandler(ReportingDataHandler handler)Add a reporting data handler to receive reporting data. | 
|  ReportingDataHandler[] | getHandlers()Get all handlers registered. | 
| static ReportingDataManager | getManager()Get server-local singleton reporting data manager | 
|  void | handle(org.apache.xmlbeans.XmlObject metadata,
       InputStream is)The handle operation takes reporting data in the form of InputStream and processes and/or stores in appropriate data store. | 
|  void | handle(org.apache.xmlbeans.XmlObject metadata,
       Serializable data)The handle operation takes reporting data stream in the form of Serializable object and processes and/or stores in appropriate data store. | 
|  void | handle(org.apache.xmlbeans.XmlObject metadata,
       String s)The handle operation takes reporting data in the form of String and processes and/or stores in appropriate data store. | 
|  void | handle(org.apache.xmlbeans.XmlObject metadata,
       org.apache.xmlbeans.XmlObject data)The handle operation takes reporting data stream in the form of XmlObject and processes and/or stores in appropriate data store. | 
|  void | handle(org.apache.xmlbeans.XmlObject metadata,
       org.apache.xmlbeans.XmlTokenSource data)The handle operation takes reporting data stream in the form of XmlTokenSource and processes and/or stores in appropriate data store. | 
|  void | removeHandler(ReportingDataHandler handler)Remove the specified reporting data handler. | 
|  void | shutdown()Shutdown removes and closes all Handlers | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static ReportingDataManager getManager()
public void shutdown()
public void addHandler(ReportingDataHandler handler)
handler - reporting data handler to addReportingDataHandlerpublic void removeHandler(ReportingDataHandler handler)
handler - reporting data handler to removeReportingDataHandlerpublic ReportingDataHandler[] getHandlers()
ReportingDataHandler
public void handle(org.apache.xmlbeans.XmlObject metadata,
                   String s)
            throws Exception
metadata - meta-data for reporting data stream in the form of types defined
    in http://www.bea.com/wli/reporting.xsds - reporting data
Exception - in case of failure to handle this reporting event
public void handle(org.apache.xmlbeans.XmlObject metadata,
                   InputStream is)
            throws Exception
metadata - meta-data for reporting data stream in the form of types defined
    in http://www.bea.com/wli/reporting.xsdis - reporting data stream
Exception - in case of failure to handle this reporting event
public void handle(org.apache.xmlbeans.XmlObject metadata,
                   org.apache.xmlbeans.XmlObject data)
            throws Exception
metadata - meta-data for reporting data stream in the form of types defined
    in http://www.bea.com/wli/reporting.xsddata - reporting data stream in the form of XmlObject
Exception - in case of failure to handle this reporting event
public void handle(org.apache.xmlbeans.XmlObject metadata,
                   org.apache.xmlbeans.XmlTokenSource data)
            throws Exception
metadata - meta-data for reporting data stream in the form of types defined
    in http://www.bea.com/wli/reporting.xsddata - reporting data stream in the form of XmlTokenSource
Exception - in case of failure to handle this reporting event
public void handle(org.apache.xmlbeans.XmlObject metadata,
                   Serializable data)
            throws Exception
metadata - meta-data for reporting data stream in the form of types defined
    in http://www.bea.com/wli/reporting.xsddata - reporting data stream in the form of Java Serializable object
Exception - in case of failure to handle this reporting event| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||