Show TOC

 Long MonitorLocate this document in the navigation structure

A performance monitor that monitors a long value.

  • In the monitor-configuration.xml this monitor is specified in the following way:
    <long-monitor name="RequestsCount" configuration-group="P4.RequestsCount">
    <monitored-resource name="p4" type="SERVICE"/>
          <long-attribute-mapping>
             <long-attribute>
                <observed-resource-attribute name="RequestCount"/>
             </long-attribute>
          </long-attribute-mapping>
    </long-monitor>

 

  • The method returning the monitored long value is:
    public long getRequestCount();

In this example this is the number of P4 requests since server startup.