|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects that provide information about their internal status, environment, and operation statistics. This interface is implemented by some key internal CB2 objects that represent various subsystems, such as the BL Manager, the Application Context and others, so important information about their operation can be retrieved at runtime by some internal monitoring subsystem.
Field Summary | |
static java.text.DateFormat |
TIMESTAMP_FORMAT
Date format, which should be used by status provider implementators for formating timestamps in the generated by the getStats
method XMLs. |
Method Summary | |
EventStatistics |
getEventStats(java.lang.String eventName)
Gets statistics for the specified event. |
byte[] |
getStats()
Gets status/statistics report as an XML text. |
Field Detail |
public static final java.text.DateFormat TIMESTAMP_FORMAT
getStats
method XMLs.
Method Detail |
public byte[] getStats() throws java.lang.Exception
<?xml ...?>
descriptor.
The idea is that it can be used by the caller as a fragment of a bigger
XML document, and the caller is responsible for such "finishing touches"
as adding an appropriate <?xml ...?>
descriptor
including document encoding.
This method returns XML as a byte array. The characters in the byte array must be in UTF-8 encoding.
java.lang.Exception
- if an unexpected error happens.public EventStatistics getEventStats(java.lang.String eventName)
null
.
eventName
- implementation specific event name, for which current
statistics are requested.
null
if the event is unknown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |