org.openpipeline.server.pages
Class ServerStatsPage

java.lang.Object
  extended by org.openpipeline.server.pages.AdminPage
      extended by org.openpipeline.server.pages.ServerStatsPage

public class ServerStatsPage
extends AdminPage

Code behind server_stats.jsp, which reports server statistics.


Constructor Summary
ServerStatsPage()
           
 
Method Summary
 String getAvailProcessors()
           
 String getClassPath()
          Return the current classpath (formatted for display).
 String getJavaVersion()
           
 String getMaxMemory()
          Returns the maximum memory that will be used by the JVM.
 String getMemUsage()
          Calls gc() and returns the JVM's memory usage in bytes.
 String getServerHomeDir()
           
 String getUptime()
           
 void processPage(javax.servlet.jsp.PageContext pageContext)
          Process a request for the server_properties page in the admin interface.
 
Methods inherited from class org.openpipeline.server.pages.AdminPage
addMessage, addMessages, checkbox, checkbox, convertParamsToXMLConfig, convertXMLConfigToParams, getBooleanParam, getMessages, getParam, getParam, getParamMap, getParams, handleError, passwordField, populateParams, radioButton, selectField, selectField, setParam, textArea, textField, textField, textField
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStatsPage

public ServerStatsPage()
Method Detail

processPage

public void processPage(javax.servlet.jsp.PageContext pageContext)
Process a request for the server_properties page in the admin interface.

Overrides:
processPage in class AdminPage
Parameters:
pageContext - the pageContext variable from the jsp page

getJavaVersion

public String getJavaVersion()

getAvailProcessors

public String getAvailProcessors()

getServerHomeDir

public String getServerHomeDir()

getUptime

public String getUptime()

getMemUsage

public String getMemUsage()
Calls gc() and returns the JVM's memory usage in bytes.


getMaxMemory

public String getMaxMemory()
Returns the maximum memory that will be used by the JVM.


getClassPath

public String getClassPath()
Return the current classpath (formatted for display).

Returns:
the classpath