Class LogAggregationHtmlBlock
java.lang.Object
org.apache.hadoop.yarn.webapp.View
org.apache.hadoop.yarn.webapp.view.TextView
org.apache.hadoop.yarn.webapp.view.HtmlBlock
org.apache.hadoop.yarn.logaggregation.filecontroller.LogAggregationHtmlBlock
- Direct Known Subclasses:
IndexedFileAggregatedLogsBlock,TFileAggregatedLogsBlock
@LimitedPrivate({"YARN","MapReduce"})
public abstract class LogAggregationHtmlBlock
extends HtmlBlock
Base class to implement Aggregated Logs Block.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock
HtmlBlock.BlockNested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.View
View.ViewContext -
Field Summary
Fields inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock
BYTES_IN_MB, DATE_PATTERN, UNAVAILABLEFields inherited from interface org.apache.hadoop.yarn.webapp.Params
ERROR_DETAILS, TITLE, TITLE_LINK, USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckAcls(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.api.records.ApplicationId appId, String owner, Map<org.apache.hadoop.yarn.api.records.ApplicationAccessType, String> appAcls, String remoteUser) protected long[]checkParseRange(HtmlBlock.Block html, long startIndex, long endIndex, long startTime, long endTime, long logLength, String logType) protected voidprocessContainerLog(HtmlBlock.Block html, long[] range, InputStream in, int bufferSize, byte[] cbuf) protected LogAggregationHtmlBlock.BlockParametersMethods inherited from class org.apache.hadoop.yarn.webapp.view.HtmlBlock
getCallerUGI, initUserHelpInformationDiv, render, render, renderPartialMethods inherited from class org.apache.hadoop.yarn.webapp.view.TextView
echo, echoWithoutEscapeHtml, puts, putWithoutEscapeHtml, writer
-
Constructor Details
-
LogAggregationHtmlBlock
-
-
Method Details
-
verifyAndParseParameters
-
checkAcls
-
checkParseRange
protected long[] checkParseRange(HtmlBlock.Block html, long startIndex, long endIndex, long startTime, long endTime, long logLength, String logType) -
processContainerLog
protected void processContainerLog(HtmlBlock.Block html, long[] range, InputStream in, int bufferSize, byte[] cbuf) throws IOException - Throws:
IOException
-