public class ReportingDataManager
extends java.lang.Object
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.
ReportingDataHandler| Modifier and Type | Method and Description |
|---|---|
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(XmlObject metadata, java.io.InputStream is)
The handle operation takes reporting data in the form of InputStream and processes and/or stores in appropriate data store.
|
void |
handle(XmlObject metadata, java.io.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(XmlObject metadata, java.lang.String s)
The handle operation takes reporting data in the form of String and processes and/or stores in appropriate data store.
|
void |
handle(XmlObject metadata, 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(XmlObject metadata, 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
|
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(XmlObject metadata,
java.lang.String s)
throws java.lang.Exception
metadata - meta-data for reporting data stream in the form of types defined in http://www.bea.com/wli/reporting.xsds - reporting datajava.lang.Exception - in case of failure to handle this reporting event
public void handle(XmlObject metadata,
java.io.InputStream is)
throws java.lang.Exception
metadata - meta-data for reporting data stream in the form of types defined in http://www.bea.com/wli/reporting.xsdis - reporting data streamjava.lang.Exception - in case of failure to handle this reporting event
public void handle(XmlObject metadata,
XmlObject data)
throws java.lang.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 XmlObjectjava.lang.Exception - in case of failure to handle this reporting event
public void handle(XmlObject metadata,
XmlTokenSource data)
throws java.lang.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 XmlTokenSourcejava.lang.Exception - in case of failure to handle this reporting event
public void handle(XmlObject metadata,
java.io.Serializable data)
throws java.lang.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 objectjava.lang.Exception - in case of failure to handle this reporting event