@InterfaceAudience.Private public final class LogAggregationWebUtils extends Object
Modifier and Type | Method and Description |
---|---|
static long |
getLogEndIndex(HtmlBlock.Block html,
String endStr)
Parse end index from html.
|
static long |
getLogEndTime(String endStr)
Parse log end time from html.
|
static long |
getLogStartIndex(HtmlBlock.Block html,
String startStr)
Parse start index from html.
|
static long |
getLogStartTime(String startStr)
Parse log start time from html.
|
static String |
verifyAndGetAppOwner(HtmlBlock.Block html,
String appOwner)
Verify and parse the application owner.
|
static org.apache.hadoop.yarn.api.records.ContainerId |
verifyAndGetContainerId(HtmlBlock.Block html,
String containerIdStr)
Verify and parse containerId.
|
static org.apache.hadoop.yarn.api.records.NodeId |
verifyAndGetNodeId(HtmlBlock.Block html,
String nodeIdStr)
Verify and parse NodeId.
|
public static long getLogStartIndex(HtmlBlock.Block html, String startStr) throws NumberFormatException
html
- the htmlstartStr
- the start index stringNumberFormatException
public static long getLogEndIndex(HtmlBlock.Block html, String endStr) throws NumberFormatException
html
- the htmlendStr
- the end index stringNumberFormatException
public static org.apache.hadoop.yarn.api.records.ContainerId verifyAndGetContainerId(HtmlBlock.Block html, String containerIdStr)
html
- the htmlcontainerIdStr
- the containerId stringContainerId
public static org.apache.hadoop.yarn.api.records.NodeId verifyAndGetNodeId(HtmlBlock.Block html, String nodeIdStr)
html
- the htmlnodeIdStr
- the nodeId stringNodeId
public static String verifyAndGetAppOwner(HtmlBlock.Block html, String appOwner)
html
- the htmlappOwner
- the Application ownerpublic static long getLogStartTime(String startStr) throws NumberFormatException
startStr
- the start time stringNumberFormatException
public static long getLogEndTime(String endStr) throws NumberFormatException
endStr
- the end time stringNumberFormatException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.