geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: incubator-geronimo/applications/jmxdebug/src/webapp/WEB-INF web.xml
Date Wed, 18 Feb 2004 15:31:08 GMT
geirm       2004/02/18 07:31:08

  Added:       applications/jmxdebug/src/webapp index.vm mbeaninfo.vm
                        mbeanstack.vm nobean.vm
               applications/jmxdebug/src/webapp/WEB-INF web.xml
  Log:
  initial commit
  
  Revision  Changes    Path
  1.1                  incubator-geronimo/applications/jmxdebug/src/webapp/index.vm
  
  Index: index.vm
  ===================================================================
  <html>
  <head>
      <title>Geronimo Debug Console</title>
  </head>
  
  <body>
  
  <img src="images/geronimo_logo_console.gif" border="0" alt="geronimo debug console"/>
  
  
  <table border="1" width="100%">
  <tr>
    <td valign="top" width="20%">
    #parse('mbeanstack.vm')
    </td>
    <td valign="top">
    #parse($template)
    </td>
  </tr>
  </table>
  
  </body>
  </html>
  
  
  
  1.1                  incubator-geronimo/applications/jmxdebug/src/webapp/mbeaninfo.vm
  
  Index: mbeaninfo.vm
  ===================================================================
  
  <b>Info for :</b> $beanInfo.getCanonicalName()
  <hr/>
  
  <table>
  <tr>
    <td>
      <b>Description : </b>
    </td>
    <td>
      $!beanInfo.getDescription()
    </td>
  </tr>
  <tr>
    <td>
      <b>ClassName : </b>
    </td>
    <td>
      $!beanInfo.getClassName()
    </td>
  </tr>
  <tr>
    <td>
      <b>Domain : </b>
    </td>
    <td>
      $!beanInfo.getDomain()
    </td>
  </tr>
  </table>
  
  <h3>Key Properties</h3>
  
  #foreach($i in $beanInfo.getKeyProperties())
  $i.key = $i.value
  <br/>
  #end
  
  <h3>MBean Attributes</h3>
  
  <table>
  
  <tr>
    <th>Name</th>
    <th>Value</th>
    <th>Type</th>
    <th>R</th>
    <th>W</th>
    <th>Is</th>
    <th>Desc</th>
  </tr>
  
  #foreach($i in $beanInfo.getAttributes())
  
  <tr>
    <td>$i.info.getName()</td>
     <td>$i.value</td>
     <td>$i.info.getType()</td>
     <td>$i.info.isReadable()</td>
     <td>$i.info.isWritable()</td>
     <td>$i.info.isIs()</td>
     <td>$!i.info.getDescription()</td>
  </tr>
  #end
  </table>
  
  <h3>MBean Operations</h3>
  
  
  <table>
  
  <tr>
    <th>Name</th>
    <th>Return Type</th>
  </tr>
  
  #foreach($i in $beanInfo.getOperationInfo())
  <tr>
    <td>$i.getName()</td>
    <td>$i.getReturnType()</td>
  </tr>
  #end
  </table>
  
  
  
  1.1                  incubator-geronimo/applications/jmxdebug/src/webapp/mbeanstack.vm
  
  Index: mbeanstack.vm
  ===================================================================
  <h3>MBean List</h3>
  
  <hr/>
  
  <form method="GET" action="index.vm">
    <input class="textInput" type="text" size="30" name="ObjectNameFilter" value="$!ObjectNameFilter"/>
    <input class="submit" type="submit" tabindex="1" value="Filter Output"/>
  
    (<a href="/geronimo-web-console/faq.jsp#objectName"/>help</a>)
  </form>
  
  #set($currentDomain = "")
  #set($i = 0)
  #set($mbeanList = $mbctx.getMBeans($ObjectNameFilter))
  
  <hr/>
  
  <b>Number of MBeans : </b> $mbeanList.size()
  
  <hr/>
  
  #foreach($instance in $mbeanList)
  
     #set($name = $instance.getObjectName())
  
     #if (!($name.getDomain().equals($currentDomain)))
  
         #if ($i != 0)
           </ul>
         #end
  
         #set($currentDomain = $name.getDomain())
         <div class='paragraphHead'>$currentDomain</div>
         <ul class='mbeanList'>
     #end
  
     #set($cName = $name.getCanonicalName())
     #set($encodedName = $encoder.encode($cName, "UTF-8"))
     #set($where = $cName.indexOf(":") + 1)
     #set($output = $cName.substring($where))
  
     <li>
       <a href="index.vm?ObjectNameFilter=$encoder.encode($ObjectNameFilter, "UTF-8")&MBeanName=$encodedName">$output</a>
     </li>
  
     #set($i = $i + 1)
  #end
  
  </ul>
  
  
  
  1.1                  incubator-geronimo/applications/jmxdebug/src/webapp/nobean.vm
  
  Index: nobean.vm
  ===================================================================
  choose an MBean
  
  
  1.1                  incubator-geronimo/applications/jmxdebug/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
           version="2.4">
  
      <!-- Welcome File List -->
      <welcome-file-list>
          <welcome-file>index.vm</welcome-file>
      </welcome-file-list>
  
    <servlet>
      <servlet-name>Debug</servlet-name>
      <servlet-class>org.apache.geronimo.jmxdebug.web.velocity.DebugServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
  
    <servlet-mapping>
      <servlet-name>Debug</servlet-name>
      <url-pattern>/*</url-pattern>
    </servlet-mapping>
  </web-app>
  
  
  

Mime
View raw message