Class InternalSourceReaderMetricGroup

    • Method Detail

      • setPendingBytesGauge

        public void setPendingBytesGauge​(Gauge<Long> pendingBytesGauge)
        Description copied from interface: SourceReaderMetricGroup
        Sets an optional gauge for the number of bytes that have not been fetched by the source. e.g. the remaining bytes in a file after the file descriptor reading position.

        Note that not every source can report this metric in an plausible and efficient way.

        Specified by:
        setPendingBytesGauge in interface SourceReaderMetricGroup
      • setPendingRecordsGauge

        public void setPendingRecordsGauge​(Gauge<Long> pendingRecordsGauge)
        Description copied from interface: SourceReaderMetricGroup
        Sets an optional gauge for the number of records that have not been fetched by the source. e.g. the available records after the consumer offset in a Kafka partition.

        Note that not every source can report this metric in an plausible and efficient way.

        Specified by:
        setPendingRecordsGauge in interface SourceReaderMetricGroup
      • recordEmitted

        public void recordEmitted​(long timestamp)
        Called when a new record was emitted with the given timestamp. TimestampAssigner.NO_TIMESTAMP should be indicated that the record did not have a timestamp.

        Note this function should be called before the actual record is emitted such that chained processing does not influence the statistics.

      • idlingStarted

        public void idlingStarted()
      • watermarkEmitted

        public void watermarkEmitted​(long watermark)
        Called when a watermark was emitted.

        Note this function should be called before the actual watermark is emitted such that chained processing does not influence the statistics.

      • updateMaxDesiredWatermark

        public void updateMaxDesiredWatermark​(long currentMaxDesiredWatermark)