!--a11y-->
Text Monitor - "Bank Name" 
...
1. BankMBean
public String getBankName(); |
2. Bank
public String getBankName() { return BankProperties.getBankName(); } |
3. monitor-configuration.xml
a. monitor-semantics
<text-configuration-group name="Name"> <description ID="Bank name">Bank's name</description> <data-collection> <polled-by-monitor period="1" unit="MINUTE"/> </data-collection> </text-configuration-group> |
b. monitor-tree
<text-monitor name="Bank name" configuration-group="Name"> <monitored-resource name="BankMBean" type="APPLICATION"/> <text-attribute-mapping> <text-attribute> <observed-resource-attribute name="BankName"/> </text-attribute> </text-attribute-mapping> </text-monitor> |
The monitoring framework expects a String value for text monitors, that is why the return value of the getBankName() method is String. In the BankMBean interface this method is declared and is implemented in the class Bank. In the monitor-semantics part of the monitor-configuration.xml a text-configuration-group is declared with name ‘Name’, which is used to create the node in the monitor tree (monitor-tree part in XML). The ID in the ‘Bank Name’ description is the name of the monitor shown in the tree.
Representation in the monitoring tree (Visual Administrator):

The next step is to create a configuration monitor named “Bank Information”
