<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Scheduling</title><link>https://sourceforge.net/p/esisframeworks/wiki/Scheduling/</link><description>Recent changes to Scheduling</description><atom:link href="https://sourceforge.net/p/esisframeworks/wiki/Scheduling/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 29 Jul 2017 15:12:16 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/esisframeworks/wiki/Scheduling/feed" rel="self" type="application/rss+xml"/><item><title>Scheduling modified by Philippe Le Berre</title><link>https://sourceforge.net/p/esisframeworks/wiki/Scheduling/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,6 @@
-Exceution of probes can be scheduled using quatz scheduling engine. A quartz job contains the code to be executed. 
+#Scheduling
+
+Execution of probes can be scheduled using quatz scheduling engine. A quartz job contains the code to be executed. 
 With quartz we can create and manage lifecycle of jobs.

 -  cmd probescheduler add &amp;lt;file_name.xml&amp;gt; “&amp;lt;cron string=""&amp;gt;” :    loads the probe xml in database and schedules a run of the probe to be triggered using the cron experession “&amp;lt;cron string=""&amp;gt;”. 
@@ -20,3 +22,96 @@
 -  cmd probescheduler reschedule &amp;lt;job_id&amp;gt; “&amp;lt;cron_string&amp;gt;” : updates the cron expression of a job.

 - cmd probescheduler disable &amp;lt;job_id&amp;gt; : disables  job job_id. not removed but won't run again.
+
+
+##  Quartz Scheduler configuration
+
+ESIS back-end uses Quartz scheduling engine (https://quartz-scheduler.org/) to schedule and execute probes , report  generation and other  tasks.
+
+Quartz server engine runs as an instance and exposes its services to be used via RMI. Clients are then created by instanciating a scheduler and can send requests (create, execute ,stop, tasks..) to the server using a proxy.
+
+Quartz server engine can be started and stopped using the &lt;code&gt;scripts/shceduler [start|stop]&lt;/code&gt;.
+
+Quartz server configuration file :
+~~~~~~
+#============================================================================
+# Main Scheduler Properties  
+#============================================================================
+org.quartz.scheduler.instanceName = TestScheduler
+org.quartz.scheduler.instanceId = instance_one
+
+#============================================================================
+# ThreadPool  
+#============================================================================
+
+org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
+org.quartz.threadPool.threadCount = 5
+org.quartz.threadPool.threadPriority = 5
+
+#============================================================================
+# JobStore  
+#============================================================================
+
+org.quartz.jobStore.misfireThreshold = 60000
+org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
+org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
+#The org.quartz.jobStore.useProperties config parameter can be set to true (it defaults to false) 
+#in order to instruct JDBCJobStore that all values in JobDataMaps will be Strings, and therefore 
+#can be stored as name-value pairs, rather than storing more complex objects in their serialized 
+#form in the BLOB column. This is much safer in the long term, as you avoid the class versioning issues that come with serializing non-String classes into a BLOB.
+
+org.quartz.jobStore.useProperties=true
+org.quartz.jobStore.dataSource=myDS
+org.quartz.jobStore.tablePrefix=scheduler.QRTZ_
+org.quartz.jobStore.isClustered=false
+
+#============================================================================
+# Datasource  
+#============================================================================
+
+org.quartz.dataSource.myDS.driver = org.postgresql.Driver
+#org.quartz.dataSource.myDS.URL = jdbc:postgresql://localhost:5434/esis_sdw
+#org.quartz.dataSource.myDS.user =esis_user
+#org.quartz.dataSource.myDS.password =Pa55w0rd
+#If your Scheduler is busy, meaning that is nearly always executing the same number of jobs 
+#as the size of the thread pool, then you should probably set the number of connections in
+#the DataSource to be the about the size of the thread pool + 2.
+org.quartz.dataSource.myDS.maxConnections = 5
+org.quartz.dataSource.myDS.validationQuery=
+
+#============================================================================
+#plugins 
+#============================================================================
+
+#Plugins that ship with Quartz to provide various utililty capabilities can be 
+#found documented in the Quartz.Plugins namespace. They provide functionality such as
+#auto-scheduling of jobs upon scheduler startup, logging a history of job and trigger
+#events, and ensuring that the scheduler shuts down cleanly when the virtual machine exits.
+
+
+org.quartz.scheduler.rmi.export = true
+org.quartz.scheduler.rmi.createRegistry = true
+org.quartz.scheduler.rmi.registryHost = localhost
+org.quartz.scheduler.rmi.registryPort = 1099
+org.quartz.scheduler.rmi.serverPort = 1100
+
+~~~~~~
+
+Quartz client (using RMI) configuration file :
+~~~~~~
+#============================================================================
+# Main Properties  
+#============================================================================
+org.quartz.scheduler.instanceName = TestScheduler
+org.quartz.scheduler.instanceId = instance_one
+org.quartz.scheduler.skipUpdateCheck = true
+org.quartz.scheduler.jobFactory.class = org.quartz.simpl.SimpleJobFactory
+org.quartz.scheduler.rmi.proxy = true
+org.quartz.scheduler.rmi.registryHost = localhost
+org.quartz.scheduler.rmi.registryPort = 1099
+
+~~~~~~
+
+
+&lt;br/&gt;
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Philippe Le Berre</dc:creator><pubDate>Sat, 29 Jul 2017 15:12:16 -0000</pubDate><guid>https://sourceforge.nete02ba72c254c6af656ee5f0c327caa05bdb366c8</guid></item><item><title>Scheduling modified by abahamne</title><link>https://sourceforge.net/p/esisframeworks/wiki/Scheduling/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Exceution of probes can be scheduled using quatz scheduling engine. A quartz job contains the code to be executed. &lt;br/&gt;
With quartz we can create and manage lifecycle of jobs. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler add &amp;lt;file_name.xml&amp;gt; “&amp;lt;cron string=""&amp;gt;” :    loads the probe xml in database and schedules a run of the probe to be triggered using the cron experession “&amp;lt;cron string=""&amp;gt;”. &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler delete &amp;lt;file_name.xml&amp;gt; | &amp;lt;job_id&amp;gt;  : deletes the job with id job_id created to exceutes the probe xml file file_name.xml&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler run_now &amp;lt;file_name.xml&amp;gt; | &amp;lt;job id=""&amp;gt; : forces the probe to run now.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler run_once &amp;lt;file_name.xml&amp;gt;|&amp;lt;job id=""&amp;gt; “cron string” : schedules a job on the probe to be run once.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler running : lists running jobs.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler list : lists scheduled jobs.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler view &amp;lt;job_id&amp;gt; :  outputs the probe xml file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler update &amp;lt;job_id&amp;gt; &amp;lt;new_file_name.xml&amp;gt; : updates the job with id job_id with the xml file new_file_name.xml.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler reschedule &amp;lt;job_id&amp;gt; “&amp;lt;cron_string&amp;gt;” : updates the cron expression of a job.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cmd probescheduler disable &amp;lt;job_id&amp;gt; : disables  job job_id. not removed but won't run again.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">abahamne</dc:creator><pubDate>Fri, 29 Jan 2016 18:11:47 -0000</pubDate><guid>https://sourceforge.net74551a6e231b953365259f89a645176a350603e4</guid></item></channel></rss>