org.apache.storm.metric.api.rpc

## Class CountShellMetric

- java.lang.Object
- - org.apache.storm.metric.api.CountMetric
  - - org.apache.storm.metric.api.rpc.CountShellMetric

- All Implemented Interfaces:
    IMetric, IShellMetric

      public class CountShellMetric
      extends CountMetric
      implements IShellMetric

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CountShellMetric()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `updateMetricFromRPC(Object value)` Update metric from RPC.

    - ### Methods inherited from class org.apache.storm.metric.api.CountMetric

      `getValueAndReset, incr, incrBy`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.storm.metric.api.IMetric

      `getValueAndReset`

- - ### Constructor Detail

    - #### CountShellMetric

          public CountShellMetric()

  - ### Method Detail

    - #### updateMetricFromRPC

          public void updateMetricFromRPC(Object value)

      Update metric from RPC.

      Specified by:
        `updateMetricFromRPC` in interface `IShellMetric`
      Parameters:
        `value` - should be null or long if value is null, it will call incr() if value is long, it will call incrBy((long)params)

Copyright © 2021 The Apache Software Foundation. All rights reserved.