You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2004/11/14 00:02:45 UTC
svn commit: rev 65532 - cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples
Author: vgritsenko
Date: Sat Nov 13 15:02:45 2004
New Revision: 65532
Modified:
cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/cron.xml
cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/samples.xml
Log:
whitespace/cleanup
Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/cron.xml
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/cron.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/cron.xml Sat Nov 13 15:02:45 2004
@@ -14,149 +14,146 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
+
<document xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
- <body>
- <row>
- <column>
- <section>
- <title>List of Cron Job scheduled</title>
-
- <table border="1">
- <tr>
- <th>Entry name</th>
- <th>Job name</th>
- <th>Next scheduled run</th>
- <th>Is running</th>
- <th>The Schedule</th>
- <th>Action</th>
- </tr>
- <jx:forEach var="entry" items="${entries}">
- <tr>
- <td>${entry.name}</td>
- <td>${entry.jobName}</td>
- <td>${formatter.format(entry.nextTime)}</td>
- <td>
- <jx:choose>
- <jx:when test="${entry.isRunning() == true}">
- <div style="color: red">${entry.isRunning()}</div>
- </jx:when>
- <jx:otherwise>
- <div style="color: green">${entry.isRunning()}</div>
- </jx:otherwise>
- </jx:choose>
- </td>
- <td>${entry.schedule}</td>
- <td>
- <a href="continue.${continuation.id}?action=remove&name=${entry.name}">remove</a>
- </td>
- </tr>
- </jx:forEach>
- </table>
- </section>
- </column>
- </row>
- <row>
- <column>
- <section>
- <title>Manage Cron Jobs scheduled</title>
- <p>
- Here you can define new CronJobs based on the sample class
- org.apache.cocoon.components.cron.TestCronJob.
- </p>
- <form method="post" action="continue.${continuation.id}?action=add">
- <table>
- <tr>
- <td align="right">Name the new job should have:</td>
- <td><input name="jobname" size="10" value="${jobname}"/></td>
- </tr>
- <tr>
- <td align="right">Message the job should print into the log:</td>
- <td><input name="message" size="40" value="${message}"/></td>
- </tr>
- <tr>
- <td align="right">The seconds the job should sleep before finishing:</td>
- <td><input name="sleep" size="4" value="${sleep}"/></td>
- </tr>
- <tr>
- <td align="right">Call a pipeline:</td>
- <td><input name="pipeline" size="40" value="${pipeline}"/></td>
- </tr>
- <tr>
- <td align="right">
- <p>Choose the type of triggering:</p>
- </td>
- <td>
- <table border="1">
- <tr>
- <td>
- <table>
- <tr>
- <td align="right">
- Enter a
- <a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html">
- Cron
- </a>
- expression:
- </td>
- <td>
- <input name="cronexpr" size="20" value="${cronexpr}"/>
- </td>
- <td>
- <input type="submit" name="cron" value="Add Cron"/>
- </td>
- </tr>
- <tr>
- <td align="right">
- Enter the interval in seconds:
- </td>
- <td>
- <input name="intervalexpr" size="4" value="${intervalexpr}"/>
- </td>
- <td>
- <input type="submit" name="periodic" value="Add Periodic"/>
- </td>
- </tr>
- <tr>
- <td align="right">
- Fire at yyyy-MM-dd HH:mm:ss
- </td>
- <td>
- <input name="atexpr" size="20" value="${atexpr}"/>
- </td>
- <td>
- <input type="submit" name="at" value="Fire at"/>
- </td>
- </tr>
- <tr>
- <td align="right">
- Fire immediately
- </td>
- <td> </td>
- <td>
- <input type="submit" name="immediately" value="Fire now"/>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </section>
- </column>
- </row>
- <row>
- <column>
- <section>
- <title>The Cron Scheduler Logfile</title>
- <p><a href="continue.${continuation.id}">refresh</a></p>
- <jx:forEach var="line" items="${log}">
- <code>${line}</code><br/>
- </jx:forEach>
- </section>
- </column>
- </row>
- </body>
+ <body>
+ <row>
+ <column>
+ <section>
+ <title>List of Cron Job scheduled</title>
+
+ <table border="1">
+ <tr>
+ <th>Entry name</th>
+ <th>Job name</th>
+ <th>Next scheduled run</th>
+ <th>Is running</th>
+ <th>The Schedule</th>
+ <th>Action</th>
+ </tr>
+ <jx:forEach var="entry" items="${entries}">
+ <tr>
+ <td>${entry.name}</td>
+ <td>${entry.jobName}</td>
+ <td>${formatter.format(entry.nextTime)}</td>
+ <td>
+ <jx:choose>
+ <jx:when test="${entry.isRunning() == true}">
+ <div style="color: red">${entry.isRunning()}</div>
+ </jx:when>
+ <jx:otherwise>
+ <div style="color: green">${entry.isRunning()}</div>
+ </jx:otherwise>
+ </jx:choose>
+ </td>
+ <td>${entry.schedule}</td>
+ <td>
+ <a href="continue.${continuation.id}?action=remove&name=${entry.name}">remove</a>
+ </td>
+ </tr>
+ </jx:forEach>
+ </table>
+ </section>
+ </column>
+ </row>
+
+ <row>
+ <column>
+ <section>
+ <title>Manage Cron Jobs scheduled</title>
+ <p>
+ Here you can define new CronJobs based on the sample class
+ org.apache.cocoon.components.cron.TestCronJob.
+ </p>
+ <form method="post" action="continue.${continuation.id}?action=add">
+ <table>
+ <tr>
+ <td align="right">Name the new job should have:</td>
+ <td><input name="jobname" size="10" value="${jobname}"/></td>
+ </tr>
+ <tr>
+ <td align="right">Message the job should print into the log:</td>
+ <td><input name="message" size="40" value="${message}"/></td>
+ </tr>
+ <tr>
+ <td align="right">The seconds the job should sleep before finishing:</td>
+ <td><input name="sleep" size="4" value="${sleep}"/></td>
+ </tr>
+ <tr>
+ <td align="right">Call a pipeline:</td>
+ <td><input name="pipeline" size="40" value="${pipeline}"/></td>
+ </tr>
+ <tr>
+ <td align="right">
+ <p>Choose the type of triggering:</p>
+ </td>
+ <td>
+ <table style="border: 1px solid #336699;">
+ <tr>
+ <td align="right">
+ Enter a
+ <a href="http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html">
+ Cron
+ </a>
+ expression:
+ </td>
+ <td>
+ <input name="cronexpr" size="20" value="${cronexpr}"/>
+ </td>
+ <td>
+ <input type="submit" name="cron" value="Add Cron"/>
+ </td>
+ </tr>
+ <tr>
+ <td align="right">
+ Enter the interval in seconds:
+ </td>
+ <td>
+ <input name="intervalexpr" size="4" value="${intervalexpr}"/>
+ </td>
+ <td>
+ <input type="submit" name="periodic" value="Add Periodic"/>
+ </td>
+ </tr>
+ <tr>
+ <td align="right">
+ Fire at yyyy-MM-dd HH:mm:ss
+ </td>
+ <td>
+ <input name="atexpr" size="20" value="${atexpr}"/>
+ </td>
+ <td>
+ <input type="submit" name="at" value="Fire at"/>
+ </td>
+ </tr>
+ <tr>
+ <td align="right">
+ Fire immediately
+ </td>
+ <td> </td>
+ <td>
+ <input type="submit" name="immediately" value="Fire now"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </section>
+ </column>
+ </row>
+
+ <row>
+ <column>
+ <section>
+ <title>The Cron Scheduler Logfile</title>
+ <p><a href="continue.${continuation.id}">Refresh</a></p>
+ <jx:forEach var="line" items="${log}">
+ <code>${line}</code><br/>
+ </jx:forEach>
+ </section>
+ </column>
+ </row>
+ </body>
</document>
Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/samples.xml
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/samples.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/cron/samples/samples.xml Sat Nov 13 15:02:45 2004
@@ -15,32 +15,28 @@
limitations under the License.
-->
-<!-- CVS: $Id: samples.xml,v 1.6 2004/04/05 12:25:34 antonio Exp $ -->
+<!-- CVS: $Id$ -->
<samples xmlns:xlink="http://www.w3.org/1999/xlink" name="Cron Block Samples">
- <group name="Back">
- <sample name="Back" href="../..">to Cocoon Samples main page</sample>
- <sample name="Back" href="..">to Cocoon Blocks Samples main page</sample>
- </group>
+ <group name="Back">
+ <sample name="Back" href="../..">to Cocoon Samples main page</sample>
+ <sample name="Back" href="..">to Cocoon Blocks Samples main page</sample>
+ </group>
- <group name="Documentation">
- <note>
- The Cron component/block is a utility component to manage execute immediate,
- once at some future time, and periodic execution of a Java class or Avalon Component.
- </note>
- <sample name="Cron Component documentation" href="docs.html">
- Documentation for the Cron component.
- </sample>
- </group>
+ <group name="Documentation">
+ <note>
+ The Cron component/block is a utility component to manage execute immediate,
+ once at some future time, and periodic execution of a Java class or Avalon Component.
+ </note>
+ <sample name="Cron Component documentation" href="docs.html">
+ Documentation for the Cron component.
+ </sample>
+ </group>
- <group name="Cron Sample">
- <sample name="Cron" href="cron.html" xlink:role="dynamic">
- Cron samples.
- </sample>
- </group>
-
- <group name="">
- </group>
-
+ <group name="Cron Sample">
+ <sample name="Cron" href="cron.html" xlink:role="dynamic">
+ Cron samples.
+ </sample>
+ </group>
</samples>