com.h3c.util.perf.api

## Interface PerfMetricsProvider

- All Known Implementing Classes:
    MetricsCache

      public interface PerfMetricsProvider

  An interface for providing performance metrics.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Perf` | `addPerfIfAbsent(String perfName)` Add a new performance monitor if one has not existed, else return the existing one.
    `void` | `clearMetrics(String perfName)` Clear all metrics for the given `Perf`'s name.
    `void` | `clearPerfs()` Clear all performance measurements.
    `Collection<Perf>` | `getAllPerfs()` Get all `Perf`'s.
    `Perf` | `getPerf(String perfName)` Retrieve the `Perf` instance for the given name.

- - ### Method Detail

    - #### getAllPerfs

          Collection<Perf> getAllPerfs()

      Get all `Perf`'s.
      Returns:
        all Perf's

    - #### getPerf

          Perf getPerf(String perfName)

      Retrieve the `Perf` instance for the given name.
      Parameters:
        `perfName` - name of Perf structure
      Returns:
        Perf instance

    - #### addPerfIfAbsent

          Perf addPerfIfAbsent(String perfName)

      Add a new performance monitor if one has not existed, else return the existing one.
      Parameters:
        `perfName` - performance monitor name
      Returns:
        Perf instance

    - #### clearPerfs

          void clearPerfs()

      Clear all performance measurements. Use with caution!

    - #### clearMetrics

          void clearMetrics(String perfName)

      Clear all metrics for the given `Perf`'s name.
      Parameters:
        `perfName` - name of Perf

Copyright © 2014. All Rights Reserved.