org.apache.hadoop.dfs
Class JspHelper

java.lang.Object
  extended by org.apache.hadoop.dfs.JspHelper

public class JspHelper
extends Object


Field Summary
static Configuration conf
           
static String WEB_UGI_PROPERTY_NAME
           
static UnixUserGroupInformation webUGI
           
 
Constructor Summary
JspHelper()
           
 
Method Summary
 void addTableFooter(javax.servlet.jsp.JspWriter out)
           
 void addTableHeader(javax.servlet.jsp.JspWriter out)
           
 void addTableRow(javax.servlet.jsp.JspWriter out, String[] columns)
           
 void addTableRow(javax.servlet.jsp.JspWriter out, String[] columns, int row)
           
 DatanodeInfo bestNode(org.apache.hadoop.dfs.LocatedBlock blk)
           
static void createTitle(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest req, String file)
           
 void DFSNodesStatus(ArrayList<DatanodeDescriptor> live, ArrayList<DatanodeDescriptor> dead)
           
 String getInodeLimitText()
           
 String getSafeModeText()
           
 String getUpgradeStatusText()
           
static String percentageGraph(float perc, int width)
           
static String percentageGraph(int perc, int width)
           
static void printGotoForm(javax.servlet.jsp.JspWriter out, int namenodeInfoPort, String file)
           
static void printPathWithLinks(String dir, javax.servlet.jsp.JspWriter out, int namenodeInfoPort)
           
 DatanodeID randomNode()
           
 void sortNodeList(ArrayList<DatanodeDescriptor> nodes, String field, String order)
           
 void streamBlockInAscii(InetSocketAddress addr, long blockId, long genStamp, long blockSize, long offsetIntoBlock, long chunkSizeToView, javax.servlet.jsp.JspWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_UGI_PROPERTY_NAME

public static final String WEB_UGI_PROPERTY_NAME
See Also:
Constant Field Values

conf

public static Configuration conf

webUGI

public static final UnixUserGroupInformation webUGI
Constructor Detail

JspHelper

public JspHelper()
Method Detail

randomNode

public DatanodeID randomNode()
                      throws IOException
Throws:
IOException

bestNode

public DatanodeInfo bestNode(org.apache.hadoop.dfs.LocatedBlock blk)
                      throws IOException
Throws:
IOException

streamBlockInAscii

public void streamBlockInAscii(InetSocketAddress addr,
                               long blockId,
                               long genStamp,
                               long blockSize,
                               long offsetIntoBlock,
                               long chunkSizeToView,
                               javax.servlet.jsp.JspWriter out)
                        throws IOException
Throws:
IOException

DFSNodesStatus

public void DFSNodesStatus(ArrayList<DatanodeDescriptor> live,
                           ArrayList<DatanodeDescriptor> dead)

addTableHeader

public void addTableHeader(javax.servlet.jsp.JspWriter out)
                    throws IOException
Throws:
IOException

addTableRow

public void addTableRow(javax.servlet.jsp.JspWriter out,
                        String[] columns)
                 throws IOException
Throws:
IOException

addTableRow

public void addTableRow(javax.servlet.jsp.JspWriter out,
                        String[] columns,
                        int row)
                 throws IOException
Throws:
IOException

addTableFooter

public void addTableFooter(javax.servlet.jsp.JspWriter out)
                    throws IOException
Throws:
IOException

getSafeModeText

public String getSafeModeText()

getInodeLimitText

public String getInodeLimitText()

getUpgradeStatusText

public String getUpgradeStatusText()

sortNodeList

public void sortNodeList(ArrayList<DatanodeDescriptor> nodes,
                         String field,
                         String order)

printPathWithLinks

public static void printPathWithLinks(String dir,
                                      javax.servlet.jsp.JspWriter out,
                                      int namenodeInfoPort)
                               throws IOException
Throws:
IOException

printGotoForm

public static void printGotoForm(javax.servlet.jsp.JspWriter out,
                                 int namenodeInfoPort,
                                 String file)
                          throws IOException
Throws:
IOException

createTitle

public static void createTitle(javax.servlet.jsp.JspWriter out,
                               javax.servlet.http.HttpServletRequest req,
                               String file)
                        throws IOException
Throws:
IOException

percentageGraph

public static String percentageGraph(int perc,
                                     int width)
                              throws IOException
Throws:
IOException

percentageGraph

public static String percentageGraph(float perc,
                                     int width)
                              throws IOException
Throws:
IOException


Copyright © 2008 The Apache Software Foundation