Class BrsResponseMetricsFactory

java.lang.Object
oracle.communication.brm.charging.brs.BrsResponseMetricsFactory

public class BrsResponseMetricsFactory extends Object
This factory class provides a standardized metric for each type of source. Currently, retries can be provided by both Coherence and WebClient (for active-active). This factory attempts to keep things DRY.
  • Field Details

    • BRS_TASK_RETRIES_METRIC_NAME

      protected static final String BRS_TASK_RETRIES_METRIC_NAME
      The name of the metric for Re-trys.
      See Also:
    • BRS_TASK_RANGE_RETRIES_METRIC_NAME

      protected static final String BRS_TASK_RANGE_RETRIES_METRIC_NAME
      See Also:
    • SOURCE_MAP

      protected static final Map<String,io.micrometer.core.instrument.DistributionSummary> SOURCE_MAP
      Map to store the sources and their corresponding Distribution Summaries.
    • SOURCE_TAG_NAME

      protected static final String SOURCE_TAG_NAME
      Name of the tag to use that identifies the source.
      See Also:
    • THRESHOLD

      protected static final int THRESHOLD
      The threshold to use for the maximum of the ranged counter.
      See Also:
    • RANGE_METRIC_TAG_NAME

      protected static final String RANGE_METRIC_TAG_NAME
      The tag name used for the ranged counter.
      See Also:
  • Method Details

    • getResponseRetryDistribution

      public static io.micrometer.core.instrument.DistributionSummary getResponseRetryDistribution(String source)
      Factory method to provide a Distribution Summary.
      Parameters:
      source - the source where the retry occurred
      Returns:
      a Distribution summary for the metric
    • getRangedResponseCounter

      public static oracle.communication.brm.charging.util.misc.metrics.RangedCounterMetric getRangedResponseCounter(String source)
      Factory method to provide a Ranged Counter.
      Parameters:
      source - the source where the retry occurred
      Returns:
      a Ranged Counter for the metric