Package com.bea.wli.reporting
Class ReportingDataManager
java.lang.Object
com.bea.wli.reporting.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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(ReportingDataHandler handler) Add a reporting data handler to receive reporting data.Get all handlers registered.static ReportingDataManager
Get server-local singleton reporting data managerstatic Object
Return the MessageContext associated with the handle call or null if none is set.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, InputStream is, Object mCtx) 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, Serializable data, Object mCtx) The handle operation takes reporting data stream in the form of Serializable object and processes and/or stores in appropriate data store.void
The handle operation takes reporting data in the form of String and processes and/or stores in appropriate data store.void
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
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
handle
(org.apache.xmlbeans.XmlObject metadata, org.apache.xmlbeans.XmlTokenSource data, Object mCtx) 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
-
Constructor Details
-
ReportingDataManager
public ReportingDataManager()
-
-
Method Details
-
getManager
Get server-local singleton reporting data manager- Returns:
- ReportingDataManager server-local singleton
-
getMessageContext
Return the MessageContext associated with the handle call or null if none is set.- Returns:
- The MessageContext associated with the handle call or null if none is set.
-
shutdown
public void shutdown()Shutdown removes and closes all Handlers -
addHandler
Add a reporting data handler to receive reporting data. If there are more than one handlers added, the reporting data would be sent to handlers in the same sequence in which handlers are registered. An implementation of ReportingDataHandler is typically called a provider.- Parameters:
handler
- reporting data handler to add- See Also:
-
removeHandler
Remove the specified reporting data handler. Returns silently if the given handler is not found or is null.- Parameters:
handler
- reporting data handler to remove- See Also:
-
getHandlers
Get all handlers registered. The handlers are returned in the same sequence in which they are registered using the addHandler method.- Returns:
- an array of reporting data handler
- See Also:
-
handle
The handle operation takes reporting data in the form of String and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
metadata
- meta-data for reporting data stream in the form of types defined in http://www.bea.com/wli/reporting.xsds
- reporting data- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
The handle operation takes reporting data in the form of String and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
metadata
- meta-data for reporting data stream in the form of types defined in http://www.bea.com/wli/reporting.xsds
- reporting data- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
The handle operation takes reporting data in the form of InputStream and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
metadata
- meta-data for reporting data stream in the form of types defined in http://www.bea.com/wli/reporting.xsdis
- reporting data stream- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
public void handle(org.apache.xmlbeans.XmlObject metadata, InputStream is, Object mCtx) throws Exception The handle operation takes reporting data in the form of InputStream and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
metadata
- meta-data for reporting data stream in the form of types defined in http://www.bea.com/wli/reporting.xsdis
- reporting data stream- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
public void handle(org.apache.xmlbeans.XmlObject metadata, org.apache.xmlbeans.XmlObject data) throws Exception The handle operation takes reporting data stream in the form of XmlObject and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
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- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
public void handle(org.apache.xmlbeans.XmlObject metadata, org.apache.xmlbeans.XmlObject data, Object mCtx) throws Exception The handle operation takes reporting data stream in the form of XmlObject and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
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- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
public void handle(org.apache.xmlbeans.XmlObject metadata, org.apache.xmlbeans.XmlTokenSource data) throws Exception The handle operation takes reporting data stream in the form of XmlTokenSource and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
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- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
public void handle(org.apache.xmlbeans.XmlObject metadata, org.apache.xmlbeans.XmlTokenSource data, Object mCtx) throws Exception The handle operation takes reporting data stream in the form of XmlTokenSource and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
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- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
The handle operation takes reporting data stream in the form of Serializable object and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
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- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-
handle
public void handle(org.apache.xmlbeans.XmlObject metadata, Serializable data, Object mCtx) throws Exception The handle operation takes reporting data stream in the form of Serializable object and processes and/or stores in appropriate data store. This is operation supports transaction semantics similar to SUPPORTS attribute of Enterprise Java Beans.- Parameters:
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- Throws:
Exception
- in case of failure to handle this reporting event- See Also:
-