Class HadoopMetricsContext

    • Constructor Detail

      • HadoopMetricsContext

        public HadoopMetricsContext​(java.lang.String scheme)
    • Method Detail

      • initialize

        public void initialize​(java.util.Map<java.lang.String,​java.lang.String> properties)
        Specified by:
        initialize in interface MetricsContext
      • counter

        public <T extends java.lang.Number> MetricsContext.Counter<T> counter​(java.lang.String name,
                                                                              java.lang.Class<T> type,
                                                                              MetricsContext.Unit unit)
        The Hadoop implementation delegates to the Hadoop delegates to the FileSystem.Statistics implementation and therefore does not require support for operations like unit() and count() as the counter values are not directly consumed.
        Specified by:
        counter in interface MetricsContext
        Type Parameters:
        T - Counter numeric type
        Parameters:
        name - name of the metric
        type - numeric type of the counter value
        unit - ignored
        Returns:
        counter