Show TOC

 Integer MonitorLocate this document in the navigation structure

A performance monitor that monitors an integer value. It can be for the number of threads, database connections, class loaders, and so on.

  • In the monitor-configuration.xml this monitor is specified in the following way:
    <integer-monitor name="UsedMemory" configuration-group="MEMORY.UsedMemory">
       <monitored-resource name="memory" type="SERVICE"/>
       <integer-attribute-mapping>
          <integer-attribute>
             <observed-resource-attribute name="UsedMemory"/>
          </integer-attribute>
       </integer-attribute-mapping>
    </integer-monitor>

 

  • The method returning the monitored integer value is:
    public int getUsedMemory();

In this example this is the currently used memory in MB.