home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / cron.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  8.5 KB  |  163 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <document xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
  18.     <body>
  19.         <row>
  20.             <column>
  21.                 <section>
  22.                     <title>List of Cron Job scheduled</title>
  23.     
  24.                     <table border="1">
  25.                         <tr>
  26.                             <th>Entry name</th>
  27.                             <th>Job name</th>
  28.                             <th>Next scheduled run</th>
  29.                             <th>Is running</th>
  30.                             <th>The Schedule</th>
  31.                             <th>Action</th>
  32.                         </tr>
  33.                         <jx:forEach var="entry" items="${entries}">
  34.                             <tr>
  35.                                 <td>${entry.name}</td>
  36.                                 <td>${entry.jobName}</td>
  37.                                 <td>${formatter.format(entry.nextTime)}</td>
  38.                                 <td>
  39.                                     <jx:choose>
  40.                                         <jx:when test="${entry.isRunning() == true}">
  41.                                             <div style="color: red">${entry.isRunning()}</div>
  42.                                         </jx:when>
  43.                                         <jx:otherwise>
  44.                                             <div style="color: green">${entry.isRunning()}</div>
  45.                                         </jx:otherwise>
  46.                                     </jx:choose>
  47.                                 </td>
  48.                                 <td>${entry.schedule}</td>
  49.                                 <td>
  50.                                     <a href="continue.${continuation.id}?action=remove&name=${entry.name}">remove</a>
  51.                                 </td>
  52.                             </tr>
  53.                         </jx:forEach>
  54.                     </table>
  55.                 </section>
  56.             </column>
  57.         </row>
  58.         <row>
  59.             <column>
  60.                 <section>
  61.                     <title>Manage Cron Jobs scheduled</title>
  62.                     <p>
  63.                         Here you can define new CronJobs based on the sample class
  64.                         org.apache.cocoon.components.cron.TestCronJob.
  65.                     </p>
  66.                     <form method="post" action="continue.${continuation.id}?action=add">
  67.                         <table>
  68.                             <tr>
  69.                                 <td align="right">Name the new job should have:</td>
  70.                                 <td><input name="jobname" size="10" value="${jobname}"/></td>
  71.                             </tr>
  72.                             <tr>
  73.                                 <td align="right">Message the job should print into the log:</td>
  74.                                 <td><input name="message" size="40" value="${message}"/></td>
  75.                             </tr>
  76.                             <tr>
  77.                                 <td align="right">The seconds the job should sleep before finishing:</td>
  78.                                 <td><input name="sleep" size="4" value="${sleep}"/></td>
  79.                             </tr>
  80.                             <tr>
  81.                                 <td align="right">Call a pipeline:</td>
  82.                                 <td><input name="pipeline" size="40" value="${pipeline}"/></td>
  83.                             </tr>                            
  84.                             <tr>
  85.                                 <td align="right">
  86.                                     <p>Choose the type of triggering:</p>
  87.                                 </td>
  88.                                 <td>
  89.                                     <table border="1">
  90.                                         <tr>
  91.                                             <td>
  92.                                                 <table>
  93.                                                     <tr>
  94.                                                         <td align="right">
  95.                                                             Enter a 
  96.                                                             <a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html">
  97.                                                                 Cron
  98.                                                             </a>
  99.                                                             expression:
  100.                                                         </td>
  101.                                                         <td>
  102.                                                             <input name="cronexpr" size="20" value="${cronexpr}"/> 
  103.                                                         </td>
  104.                                                         <td>
  105.                                                             <input type="submit" name="cron" value="Add Cron"/>
  106.                                                         </td>
  107.                                                     </tr>
  108.                                                     <tr>
  109.                                                         <td align="right">
  110.                                                             Enter the interval in seconds:
  111.                                                         </td>
  112.                                                         <td>
  113.                                                             <input name="intervalexpr" size="4" value="${intervalexpr}"/> 
  114.                                                         </td>
  115.                                                         <td>
  116.                                                             <input type="submit" name="periodic" value="Add Periodic"/>
  117.                                                         </td>
  118.                                                     </tr>
  119.                                                     <tr>
  120.                                                         <td align="right">
  121.                                                             Fire at yyyy-MM-dd HH:mm:ss
  122.                                                         </td>
  123.                                                         <td>
  124.                                                             <input name="atexpr" size="20" value="${atexpr}"/> 
  125.                                                         </td>
  126.                                                         <td>
  127.                                                             <input type="submit" name="at" value="Fire at"/>
  128.                                                         </td>
  129.                                                     </tr>
  130.                                                     <tr>
  131.                                                         <td align="right">
  132.                                                             Fire immediately
  133.                                                         </td>
  134.                                                         <td> </td>
  135.                                                         <td>
  136.                                                             <input type="submit" name="immediately" value="Fire now"/>
  137.                                                         </td>
  138.                                                     </tr>
  139.                                                 </table>
  140.                                             </td>
  141.                                         </tr>
  142.                                     </table>
  143.                                 </td>
  144.                             </tr>
  145.                         </table>
  146.                     </form>
  147.                 </section>
  148.             </column>
  149.         </row>
  150.         <row>
  151.             <column>
  152.                 <section>
  153.                     <title>The Cron Scheduler Logfile</title>
  154.                     <p><a href="continue.${continuation.id}">refresh</a></p>
  155.                     <jx:forEach var="line" items="${log}">
  156.                         <code>${line}</code><br/>
  157.                     </jx:forEach>
  158.                 </section>
  159.             </column>
  160.         </row>
  161.     </body>
  162. </document>
  163.