Class LogAggregationWebUtils

java.lang.Object
org.apache.hadoop.yarn.logaggregation.LogAggregationWebUtils

@Private public final class LogAggregationWebUtils extends Object
Utils for rendering aggregated logs block.
  • Method Details

    • getLogStartIndex

      public static long getLogStartIndex(HtmlBlock.Block html, String startStr) throws NumberFormatException
      Parse start index from html.
      Parameters:
      html - the html
      startStr - the start index string
      Returns:
      the startIndex
      Throws:
      NumberFormatException
    • getLogEndIndex

      public static long getLogEndIndex(HtmlBlock.Block html, String endStr) throws NumberFormatException
      Parse end index from html.
      Parameters:
      html - the html
      endStr - the end index string
      Returns:
      the endIndex
      Throws:
      NumberFormatException
    • verifyAndGetContainerId

      public static org.apache.hadoop.yarn.api.records.ContainerId verifyAndGetContainerId(HtmlBlock.Block html, String containerIdStr)
      Verify and parse containerId.
      Parameters:
      html - the html
      containerIdStr - the containerId string
      Returns:
      the ContainerId
    • verifyAndGetNodeId

      public static org.apache.hadoop.yarn.api.records.NodeId verifyAndGetNodeId(HtmlBlock.Block html, String nodeIdStr)
      Verify and parse NodeId.
      Parameters:
      html - the html
      nodeIdStr - the nodeId string
      Returns:
      the NodeId
    • verifyAndGetAppOwner

      public static String verifyAndGetAppOwner(HtmlBlock.Block html, String appOwner)
      Verify and parse the application owner.
      Parameters:
      html - the html
      appOwner - the Application owner
      Returns:
      the appOwner
    • getLogStartTime

      public static long getLogStartTime(String startStr) throws NumberFormatException
      Parse log start time from html.
      Parameters:
      startStr - the start time string
      Returns:
      the startIndex
      Throws:
      NumberFormatException
    • getLogEndTime

      public static long getLogEndTime(String endStr) throws NumberFormatException
      Parse log end time from html.
      Parameters:
      endStr - the end time string
      Returns:
      the endIndex
      Throws:
      NumberFormatException