This appendix provides a detailed reference of the report file deployment descriptor elements and includes a brief overview of the descriptor. See Appendix C, "Report Group Configuration Reference," for a detailed reference of the report group deployment descriptor elements.
The following sections are included in this appendix:
The report file deployment descriptor specifies a report for displaying management information that is based on Coherence MBeans. Coherence includes many predefined report files for most of the MBeans. The default files are located in the coherence.jar file in the /reports directory. The reports can be modified as required or new reports can be created. See Chapter 6, "Analyzing Reporter Content," for additional information about the default reports.
The report file deployment descriptor schema is defined in the coherence-report-config.xsd file which is located in the root of the coherence.jar library and at the following Web URL:
http://xmlns.oracle.com/coherence/coherence-report-config/1.0/coherence-report-config.xsd
The <report-config> element is the root element of the deployment descriptor and typically includes the XSD reference, the Coherence namespace reference, and the location of the coherence-report-config.xsd file. For example:
<?xml version='1.0'?> <report-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/coherence/coherence-report-config" xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-report-config coherence-report-config.xsd">
|
Notes:
|
Table B-1 lists all non-terminal report file deployment descriptor elements.
Used in: row
The column element contains information to generate a report column. The column element supports the use of an id attribute to uniquely identify the column. The ID is used within the column-ref element.
Table B-2 describes the subelements of the column element.
| Element | Required/ Optional |
Description |
|---|---|---|
|
|
Optional |
Specifies an
|
|
|
Optional |
Specifies an attribute or method name on the MBean. For composite data types, the name element can contain a slash ( |
|
|
Optional |
Specifies the column header. If this item is omitted, the value of the |
|
|
Optional |
Specifies a character that is used to separate column or array values. Valid values are: |
|
Optional |
Specifies information necessary to construct a JMX query to find all MBeans contributing to the report or column. |
|
|
|
Optional |
Specifies whether the column value should be hidden in the report. Valid values are |
|
|
Optional |
Specifies a reference to a column identifier. The reference is used to pass a column value as an argument to a filter or another column. |
|
|
Optional |
Specifies the name of the calculation to apply to the associated MBean attribute values. This element is only valid when the
|
|
Optional |
Specifies an argument column or a filter reference. |
|
|
|
Optional |
Specifies the data type of a constant column. Valid values are |
|
|
Optional |
Specifies the value of a constant column. |
|
|
Optional |
specifies whether the column should be included in the |
|
|
Optional |
Specifies whether the column is included as part of a subquery. Valid values are |
|
|
Optional |
Specifies if a negative value should be returned to the query. Negative values are considered |
Used in: filters
The filter element defines a set of filters that can be used in the report. The filter element supports the use of an id attribute to uniquely identify the filter. The ID is used within the filter-ref element.
Table B-3 describes the subelements of the filter element.
| Element | Required/ Optional |
Description |
|---|---|---|
|
|
Optional |
Specifies an
|
|
Optional |
Specifies an argument column or a filter reference. |
Used in: report
The filters element contains a group of filter elements.
Table B-4 describes the subelements of the filters element.
| Element | Required/ Optional |
Description |
|---|---|---|
|
Optional |
Specifies a set of filters that can be used in the report. |
The params element identifies an argument column or a filter reference.
Table B-5 describes the subelements of the params element.
| Element | Required/ Optional |
Description |
|---|---|---|
|
|
Required |
Specifies a reference to a filter id. The reference is used to pass a filter as an argument to a query or another filter. |
|
|
Required |
Specifies a reference to a column identifier. The reference is used to pass a column value as an argument to a filter or another column. |
The query element contains information necessary to construct a JMX query to find all MBeans contributing to the report or column. Queries are entered within a <pattern> element.
An example that includes all Node MBeans in the report or column:
<query> <pattern>Coherence:type=Node,*</pattern> </query>
An example that includes only the Cluster MBean in the report or column:
<query> <pattern>Coherence:type=Cluster</pattern> </query>
The pattern string allows macro substitutions with run-time values that come from report columns. For example, to provide a cache name into the query pattern, define a system property called reporter.cacheName and use the following construct:
<report>
...
<query>
<pattern>Coherence:type=Cache,name={CacheName},*</pattern>
</query>
<row>
<column id="CacheName">
<type>property</type>
<name>reporter.cacheName</name>
</column>
</row>
</report>
Sometimes a query pattern is known to result in a list of MBean names that have a well known key attribute. That key attribute could be used to retrieve an attribute from a related (joined) MBean. For example, since the Coherence:type=Service,* pattern is known to result in MBeans in the Coherence:type=Service,nodeId=NNN format, the configuration below is used to print the MemberName attribute from a corresponding NodeMBean along with the ServiceName attribute for the ServiceMBean.
<report>
...
<query>
<pattern>Coherence:type=Service,*</pattern>
<params>
<column-ref>MemberName</column-ref>
<column-ref>NodeId</column-ref>
<column-ref>ServiceName</column-ref>
</params>
</query>
<row>
<column id="MemberName">
<type>attribute</type>
<name>MemberName</name>
<query>
<pattern>Coherence:type=Node,nodeId={NodeId}</pattern>
</query>
</column>
<column id="NodeId">
<type>key</type>
<name>nodeId</name>
</column>
<column id="ServiceName">
<type>key</type>
<name>name</name>
</column>
</row>
</report>
Table B-6 describes the subelements of the query element.
| Element | Required/ Optional |
Description |
|---|---|---|
|
|
Required |
Specifies a JMX query or Object name to be included in the report. |
|
|
Optional |
Specifies a reference to a filter id. The reference is used to pass a filter as an argument to a query or another filter. |
|
Optional |
Specifies an argument column or a filter reference. |
Used in: report-config
The report element contains information necessary to generate a JMX based report. Any number of report elements can included; however, it is typical to have a single report definition for each report file.
Table B-7 describes the subelements of the report element.
| Element | Required/ Optional |
Description |
|---|---|---|
|
|
Optional |
Specifies a descriptive heading for the report. |
|
|
Required |
Specifies the file name for the generated report. The file name could be either absolute or relative to a directory specified in the corresponding report group deployment descriptor. If the specified file exists then the new report lines are appended to the file; otherwise, a new report file is created. The file name may contain any of the three special macros:
Note: a process running the reporter requires read, write, and create access to the location where the output files are created. |
|
|
Optional |
Specifies a character that is used to separate column or array values. Valid values are: |
|
|
Optional |
Specifies whether the description and the column headers should be included in the report. Valid values are |
|
Optional |
Specifies a group of filters for the report. |
|
|
Required |
Specifies information necessary to construct a JMX query to find all MBeans contributing to the report or column. |
|
|
Required |
Specifies information to generate a report column. |
Root Element
The report-config element is the root element of the report configuration deployment descriptor and contains the report definition.
Table B-8 describes the subelements of the report-config element.
Table B-8 report-config Subelements
| Element | Required/ Optional |
Description |
|---|---|---|
|
required |
Specifies the information necessary to generate a JMX based report. |
Used in: report-config
The row element contains a list of columns to be included in the report.
Table B-9 describes the subelements of the row element.
| Element | Required/ Optional |
Description |
|---|---|---|
|
Required |
Specifies information that the Reporter uses to generate a report column. |