java.lang.Object
org.apache.hadoop.yarn.server.sharedcachemanager.metrics.CleanerMetrics

@Private @Evolving @Metrics(name="CleanerActivity", about="Cleaner service metrics", context="yarn") public class CleanerMetrics extends Object
This class is for maintaining the various Cleaner activity statistics and publishing them through the metrics interfaces.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Method Details

    • getInstance

      public static CleanerMetrics getInstance()
    • getTotalDeletedFiles

      public long getTotalDeletedFiles()
    • getDeletedFiles

      public long getDeletedFiles()
    • getTotalProcessedFiles

      public long getTotalProcessedFiles()
    • getProcessedFiles

      public long getProcessedFiles()
    • getTotalFileErrors

      public long getTotalFileErrors()
    • getFileErrors

      public long getFileErrors()
    • reportAFileDelete

      public void reportAFileDelete()
      Report a delete operation at the current system time
    • reportAFileProcess

      public void reportAFileProcess()
      Report a process operation at the current system time
    • reportAFileError

      public void reportAFileError()
      Report a process operation error at the current system time
    • reportCleaningStart

      public void reportCleaningStart()
      Report the start a new run of the cleaner.