Class IOUtilsClient

java.lang.Object
org.apache.hadoop.hdfs.util.IOUtilsClient

public class IOUtilsClient extends Object
  • Constructor Details

    • IOUtilsClient

      public IOUtilsClient()
  • Method Details

    • cleanupWithLogger

      public static void cleanupWithLogger(org.slf4j.Logger log, Closeable... closeables)
      Close the Closeable objects and ignore any IOException or null pointers. Must only be used for cleanup in exception handlers.
      Parameters:
      log - the log to record problems to at debug level. Can be null.
      closeables - the objects to close
    • updateReadStatistics

      public static void updateReadStatistics(ReadStatistics readStatistics, int nRead, BlockReader blockReader)
    • updateReadStatistics

      public static void updateReadStatistics(ReadStatistics readStatistics, int nRead, boolean isShortCircuit, int networkDistance)