String localDir = request.getOutputLocalDir(); String nodeId = request.getNodeId(); PrintStream out = LogToolUtils.createPrintStream(localDir, nodeId, containerIdStr); try {
WebApplicationException { try { LogToolUtils.outputContainerLogThroughZeroCopy( containerId.toString(), nmContext.getNodeId().toString(), outputFileName, fileLength, bytes, lastModifiedTime, fis, os,
if (getAllContainers || (key.toString().equals(containerIdStr))) { if (createPrintStream) { os = LogToolUtils.createPrintStream( logRequest.getOutputLocalDir(), thisNodeFile.getPath().getName(), key.toString()); if (logTypes == null || logTypes.isEmpty() || logTypes.contains(fileType)) { LogToolUtils.outputContainerLog(key.toString(), nodeName, fileType, fileLength, size, Times.format(thisNodeFile.getModificationTime()),
if (createPrintStream) { closePrintStream(os); os = LogToolUtils.createPrintStream( logRequest.getOutputLocalDir(), thisNodeFile.getPath().getName(), candidate.getFileCompressedSize()), decompressor, getFSInputBufferSize(conf)); LogToolUtils.outputContainerLog(candidate.getContainerId(), nodeName, candidate.getFileName(), candidate.getFileSize(), size, Times.format(candidate.getLastModifiedTime()),