Show TOC Start of Content Area

Procedure documentation Creating the Bank Information Configuration Monitor  Locate the document in its SAP Library structure

Procedure

...

       1.      BankMBean:

public ConfigurationList getBankAddress();

 

       2.      Bank:

public ConfigurationList getBankAddress() {

      return BankProperties.getBankAddress();

}

 

       3.      Modify the monitor-configuration.xml:

                            a.      Define the monitor-semantics:

<config-configuration-group name="BankInformation">

     <description ID="Bank Information">Bank's address, phones, faxes, telex, swift code, web cite, etc.</description>

     <data-collection>

        <polled-by-monitor period="1" unit="MINUTE"/>

    </data-collection>

</config-configuration-group>

 

                            b.      Define the monitor-tree:

<configuration-monitor name="Bank information" configuration-group="BankInformation">

    <monitored-resource name="BankMBean" type="APPLICATION"/>

    <configuration-attribute-mapping>

        <configuration-attribute>

   <observed-resource-attribute name="BankAddress"/>

        </configuration-attribute>

    </configuration-attribute-mapping>

</configuration-monitor>

The monitoring framework expects a ConfigurationList value for configuration monitors, that is why the return value of the getBankAddress () method is ConfigurationList. This method is declared in the BankMBean interface and is implemented in the class Bank. In the monitor-semantics part of the monitor-configuration.xml, a config-configuration-group is declared with the name BankInformation, which is used for creating the node in the monitor tree (monitor-tree part in the XML). The ID in the Bank Information description is the name of the monitor shown in the tree.

Result

The Bank Information monitor appears in the monitoring tree under Applications Bank Information General Information.

 

 

End of Content Area