Published on WSO2 Oxygen Tank (http://wso2.org)

What are Sandesha2 Reports and how can I use them?

By chamikara
Created 2006-08-15 22:01

Apache Sandesha2 reports can be used to get information from a running Sandesha2 system. Most of the times these reports will be requested through your client code. There are two kinds of Sandesha2 reports you can request for. First kind of reports are named SandeshaReport's. A SandeshaReport gives information on the RM status of the whole system. You can request for a SandeshaReport using following function of the Sandesha2 API.

SandeshaReport getSandeshaReport(ConfigurationContext ctx);

The information currently given from the SandeshaReport are following:

The second kind of reports are the SequenceReports. Unlike SandeshaReports, SequenceReport only gives information about a single sequence. But this information will be much broader. You can request for a SequenceReport using following functions of the Sandesha2 API.

SequenceReport getOutgoingSequenceReport(ServiceClient serviceClient);
SequenceReport getOutgoingSequenceReport(String to, String sequenceKey,
ConfigurationContext configurationContext);
SequenceReport getOutgoingSequenceReport(String internalSequenceID,
ConfigurationContext configurationContext);
ArrayList getIncomingSequenceReports(ConfigurationContext configCtx);
SequenceReport getIncomingSequenceReport(String sequenceID,
ConfigurationContext configCtx);

As you can see, there functions can be divided into two groups. The first three functions will give information about out going sequence which are the sequences where the current endpoint works as a RM source. The last two functions allows you to obtain reports on incoming sequences on which the current endpoint works as a RM destination. A sequence report gives following information about a sequence.

Applies To:

Apache Sandesha2/Java post 1.0 versions


Source URL:
http://wso2.org/library/241