@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 |
getLogStartIndex(HtmlBlock.Block html,
String startStr)
Parse start index 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 ownerCopyright © 2022 Apache Software Foundation. All rights reserved.