public class IOUtilsClient extends Object
| Constructor and Description |
|---|
IOUtilsClient() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupWithLogger(org.slf4j.Logger log,
Closeable... closeables)
Close the Closeable objects and ignore any
IOException or
null pointers. |
static void |
updateReadStatistics(ReadStatistics readStatistics,
int nRead,
org.apache.hadoop.hdfs.BlockReader blockReader) |
static void |
updateReadStatistics(ReadStatistics readStatistics,
int nRead,
boolean isShortCircuit,
int networkDistance) |
public static void cleanupWithLogger(org.slf4j.Logger log,
Closeable... closeables)
IOException or
null pointers. Must only be used for cleanup in exception handlers.log - the log to record problems to at debug level. Can be null.closeables - the objects to closepublic static void updateReadStatistics(ReadStatistics readStatistics, int nRead, org.apache.hadoop.hdfs.BlockReader blockReader)
public static void updateReadStatistics(ReadStatistics readStatistics, int nRead, boolean isShortCircuit, int networkDistance)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.