blob: a03e7b0137ce63eedf4164663d565d94b154c239 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.9.2 from src\site\xdoc/configuration.xml at 14 September 2021
| Rendered using Apache Maven Fluido Skin 1.9
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 1.9.2" />
<meta name="author" content="Siegfried Goeschl" />
<title>Fulcrum Quartz Service &#x2013; Fulcrum Quartz Service</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.9.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
<script src="./js/apache-maven-fluido-1.9.min.js"></script>
</head>
<body class="topBarDisabled">
<div class="container-fluid">
<header>
<div id="banner">
<div class="pull-left"><a href="../../" id="bannerLeft" title="Apache Turbine"><img src="../../images/turbine-project.png" alt="Apache Turbine"/></a></div>
<div class="pull-right"></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 14 September 2021<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 1.1.3-SNAPSHOT</li>
<li class="pull-right"><span class="divider">|</span>
<a href="../" title="Fulcrum">Fulcrum</a></li>
<li class="pull-right"><span class="divider">|</span>
<a href="../../" title="Turbine">Turbine</a></li>
<li class="pull-right"><a href="https://www.apache.org" class="externalLink" title="Apache">Apache</a></li>
</ul>
</div>
</header>
<div class="row-fluid">
<header id="leftColumn" class="span2">
<nav class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Overview</li>
<li><a href="index.html" title="About"><span class="none"></span>About</a></li>
<li class="active"><a href="#"><span class="none"></span>Configuration</a></li>
<li><a href="cronsamples.html" title="Cron Samples"><span class="none"></span>Cron Samples</a></li>
<li class="nav-header">Project Documentation</li>
<li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a></li>
<li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a></li>
<li class="nav-header">Apache</li>
<li><a href="https://www.apache.org/" class="externalLink" title="Apache Website"><span class="none"></span>Apache Website</a></li>
<li><a href="https://www.apache.org/licenses/" class="externalLink" title="License"><span class="none"></span>License</a></li>
<li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="How the ASF works"><span class="none"></span>How the ASF works</a></li>
<li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship"><span class="none"></span>Sponsorship</a></li>
<li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks"><span class="none"></span>Thanks</a></li>
<li><a href="https://www.apache.org/security/" class="externalLink" title="Security"><span class="none"></span>Security</a></li>
</ul>
</nav>
<div class="well sidebar-nav">
<hr />
<div id="poweredBy">
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
</div>
</div>
</header>
<main id="bodyColumn" class="span10" >
<section>
<h2><a name="Configuration"></a>Configuration</h2>
<section>
<h3><a name="Role_Configuration"></a>Role Configuration</h3>
<p>
First you have to instantiate the Quartz service.
</p>
<div class="source"><pre class="prettyprint">
&lt;role
name=&quot;org.apache.fulcrum.quartz.QuartzScheduler&quot;
shorthand=&quot;quartz&quot;
default-class=&quot;org.apache.fulcrum.quartz.impl.QuartzSchedulerImpl&quot;
/&gt;
</pre></div>
</section>
<section>
<h3><a name="Component_Configuration"></a>Component Configuration</h3>
<table border="0" class="table table-striped">
<tr class="a">
<th>Item</th>
<th>Datatype</th>
<th>Cardinality</th>
<th>Description</th>
</tr>
<tr class="b">
<td>configuration</td>
<td>Complex</td>
<td>[0|1]</td>
<td>
Contains the Quartz configuration either as property file or
a set of properties.
</td>
</tr>
<tr class="a">
<td>configuration/propertyFile</td>
<td>String</td>
<td>[0|1]</td>
<td>
Contains the location of a Quartz configuration file. The configuration
is loaded from the file system or from the classpath.
</td>
</tr>
<tr class="b">
<td>configuration/properties</td>
<td>Complex</td>
<td>[0|1]</td>
<td>
Contains a list of properties used for configuring Quartz
</td>
</tr>
<tr class="a">
<td>configuration/properties/parameter</td>
<td>String</td>
<td>Simple</td>
<td>
Contains a single configuration parameter consisting of 'name'
and 'value' attribute.
</td>
</tr>
</table>
</section>
<section>
<h3><a name="Component_Configuration_Example_1"></a>Component Configuration Example 1</h3>
<p>
A simple component configuration based on the XML configuration file
</p>
<div class="source"><pre class="prettyprint">
&lt;quartz&gt;
&lt;configuration&gt;
&lt;properties&gt;
&lt;parameter
name=&quot;org.quartz.scheduler.instanceName&quot;
value=&quot;TestScheduler&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.scheduler.instanceId&quot;
value=&quot;AUTO&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.threadPool.class&quot;
value=&quot;org.quartz.simpl.SimpleThreadPool&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.threadPool.threadCount&quot;
value=&quot;3&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.threadPool.threadPriority&quot;
value=&quot;5&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.jobStore.misfireThreshold&quot;
value=&quot;60000&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.jobStore.class&quot;
value=&quot;org.quartz.simpl.RAMJobStore&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.plugin.jobInitializer.class&quot;
value=&quot;org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.plugin.jobInitializer.fileNames&quot;
value=&quot;./src/test/quartz.xml&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.plugin.jobInitializer.failOnFileNotFound&quot;
value=&quot;true&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.plugin.jobInitializer.scanInterval&quot;
value=&quot;120&quot;
/&gt;
&lt;parameter
name=&quot;org.quartz.plugin.jobInitializer.wrapInUserTransaction&quot;
value=&quot;false&quot;
/&gt;
&lt;/properties&gt;
&lt;/configuration&gt;
&lt;/quartz&gt;
</pre></div>
</section>
<section>
<h3><a name="Component_Configuration_Example_2"></a>Component Configuration Example 2</h3>
<p>
A component configuration using an external property file
</p>
<div class="source"><pre class="prettyprint">
&lt;quartz&gt;
&lt;configuration&gt;
&lt;propertyFile&gt;./src/test/quartz.properties&lt;/propertyFile&gt;
&lt;/configuration&gt;
&lt;/quartz&gt;
</pre></div>
</section>
</section>
</main>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p>&#169; 2004&#x2013;2021
<a href="https://www.apache.org/">The Apache Software Foundation</a>
</p>
</div>
</div>
</footer>
</body>
</html>