cziegeler    01/07/16 07:56:33

  Modified:    xdocs    status-generator.xml
  Log:
  Updated docs for status generator
  
  Revision  Changes    Path
  1.3       +45 -2     xml-cocoon2/xdocs/status-generator.xml
  
  Index: status-generator.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/xdocs/status-generator.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- status-generator.xml      2001/07/13 09:56:57     1.2
  +++ status-generator.xml      2001/07/16 14:56:33     1.3
  @@ -13,16 +13,59 @@
        </header>
        <body>
                <s1 title="Status Generator">
  -                     <p>????.</p>
  +                     <p>The status generator creates xml from the current status of 
cocoon 2.</p>
  +                     <p>The information is surrounded by the root element 
<code>statusinfo</code>
  +                     and grouped with the elements <code>group</code> and 
<code>value</code>.</p>
  +                     <p>The <code>statusinfo</code> element has the attributes 
<code>host</code>
  +                     and <code>date</code>.</p>
  +                  <p>A group collects several informations about one topic. The 
topic
  +                     is set by the attribute <code>name</code> of the group. A group
  +                     can have subgroups (element <code>group</code>) or values.</p>
  +                  <p>Each value has a name specified by the attribute 
<code>name</code> and can
  +                     consist of one or several <code>line</code>.</p>
  +                     <p>All elements have the namespace 
<code>http://apache.org/cocoon/status/2.0</code>.</p>
                        <ul>
                                <li>Name : status</li>
                                <li>Class: 
org.apache.cocoon.generation.StatusGenerator</li>
  -                             <li>Cacheable: ????.</li>
  +                             <li>Cacheable: no.</li>
                        </ul>
   <source>
        <![CDATA[
     <map:generate type="status"/>
        ]]>
  +</source>
  +             </s1>
  +             <s1 title="Example">
  +             <p>The current status generator outputs information about the jvm:</p>
  +<source>
  +     <![CDATA[
  +<?xml version="1.0" encoding="UTF-8"?>
  +<statusinfo date="16.07.2001 16:46:20" host="myhost" 
  +            xmlns="http://apache.org/cocoon/status/2.0"; 
  +            xmlns:xlink="http://www.w3.org/1999/xlink";>
  +  <group name="vm">
  +    <group name="memory">
  +      <value name="total"><line>11788288</line></value>
  +      <value name="free"><line>2778208</line></value>
  +    </group>
  +    <group name="jre">
  +      <value name="version"><line>1.3.0</line></value>
  +      <value type="simple" href="http://java.sun.com/"; name="java-vendor">
  +        <line>Sun Microsystems Inc.</line>
  +      </value>
  +    </group>
  +    <group name="operating-system">
  +      <value name="name"><line>Windows 2000</line></value>
  +      <value name="architecture"><line>x86</line></value>
  +      <value name="version"><line>5.0</line></value>
  +    </group>
  +    <value name="classpath">
  +      <line>classes</line>
  +      <line>lib\ant.jar</line>
  +      <line>lib\jasper.jar</line>
  +    </value>
  +  </group>
  +</statusinfo>     ]]>
   </source>
                </s1>
        </body>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to