Package org.apache.hadoop.hdfs.util
Class IOUtilsClient
java.lang.Object
org.apache.hadoop.hdfs.util.IOUtilsClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanupWithLogger(org.slf4j.Logger log, Closeable... closeables) Close the Closeable objects and ignore anyIOExceptionor null pointers.static voidupdateReadStatistics(ReadStatistics readStatistics, int nRead, boolean isShortCircuit, int networkDistance) static voidupdateReadStatistics(ReadStatistics readStatistics, int nRead, BlockReader blockReader)
-
Constructor Details
-
IOUtilsClient
public IOUtilsClient()
-
-
Method Details
-
cleanupWithLogger
Close the Closeable objects and ignore anyIOExceptionor 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)
-