ECLScheduler.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <book xml:base="../">
  5. <title>The ECL Scheduler</title>
  6. <bookinfo>
  7. <title>ECL Scheduler</title>
  8. <mediaobject>
  9. <imageobject>
  10. <imagedata fileref="images/redswooshWithLogo3.jpg" />
  11. </imageobject>
  12. </mediaobject>
  13. <author>
  14. <surname>Boca Raton Documentation Team</surname>
  15. </author>
  16. <legalnotice>
  17. <para>We welcome your comments and feedback about this document via
  18. email to <email>docfeedback@hpccsystems.com</email></para>
  19. <para>Please include <emphasis role="bold">Documentation
  20. Feedback</emphasis> in the subject line and reference the document name,
  21. page numbers, and current Version Number in the text of the
  22. message.</para>
  23. <para>LexisNexis and the Knowledge Burst logo are registered trademarks
  24. of Reed Elsevier Properties Inc., used under license.</para>
  25. <para>HPCC Systems is a registered trademark of LexisNexis Risk Data
  26. Management Inc.</para>
  27. <para>Other products, logos, and services may be trademarks or
  28. registered trademarks of their respective companies.</para>
  29. <para>All names and example data used in this manual are fictitious. Any
  30. similarity to actual persons, living or dead, is purely
  31. coincidental.</para>
  32. <para></para>
  33. </legalnotice>
  34. <xi:include href="common/Version.xml" xpointer="FooterInfo"
  35. xmlns:xi="http://www.w3.org/2001/XInclude" />
  36. <xi:include href="common/Version.xml" xpointer="DateVer"
  37. xmlns:xi="http://www.w3.org/2001/XInclude" />
  38. <corpname>HPCC Systems</corpname>
  39. <xi:include href="common/Version.xml" xpointer="Copyright"
  40. xmlns:xi="http://www.w3.org/2001/XInclude" />
  41. <mediaobject role="logo">
  42. <imageobject>
  43. <imagedata fileref="images/LN_Rightjustified.jpg" />
  44. </imageobject>
  45. </mediaobject>
  46. </bookinfo>
  47. <chapter>
  48. <title>The Ecl Scheduler</title>
  49. <sect1 role="nobrk">
  50. <title>Introduction</title>
  51. <para>The ECL Scheduler is a component process installed with the HPCC
  52. system platform. It typically starts with the platform.</para>
  53. <para>An interface to the scheduler is available through ECL Watch. The
  54. ECL Scheduler interface allows you to see a list of scheduled workunits.
  55. It can also trigger an event. An Event is a case-insensitive string
  56. constant naming the event to trap.</para>
  57. <para>A command line tool, <emphasis>scheduleadmin</emphasis> is
  58. available on the server installed in /opt/HPCCSystems/bin.</para>
  59. <sect2>
  60. <title>ECL Scheduling</title>
  61. <para>ECL Scheduling provides a means of automating processes within
  62. ECL code or to chain processes together to work in sequence. For
  63. example, you can write ECL code that watches a landing zone for the
  64. arrival of a file, and when it arrives, sprays it to Thor, processes
  65. it, builds an index, and then adds it to a superfile.</para>
  66. </sect2>
  67. <sect2>
  68. <title>How it Works</title>
  69. <para>ECL Scheduling is event-based. The ECL Scheduler monitors a
  70. Schedule list containing registered Workunits and Events and executes
  71. any Workunits associated with an Event when that Event is
  72. triggered.</para>
  73. <para>Your ECL Code can execute when an Event is triggered, or can
  74. trigger an Event. If you submit code containing a <emphasis
  75. role="bold">WHEN </emphasis>clause, the Event and Workunit registers
  76. in the Schedule list. When that Event triggers, the Workunit compiles
  77. and executes. When the Workunit completes, ECL Scheduler removes it
  78. from the Schedule list.</para>
  79. <para>For example, if you submit a Workunit using <emphasis
  80. role="bold">WHEN(‘Event1’,’MyEvent’, COUNT(2)) </emphasis>in the
  81. appropriate place, it will execute twice (the value of <emphasis
  82. role="bold">COUNT</emphasis>) before the ECL Scheduler removes it from
  83. the Schedule list and the Workunit is marked as completed.</para>
  84. </sect2>
  85. </sect1>
  86. </chapter>
  87. <xi:include href="ECLScheduler/ECLSched-Mods/ECLSchedComp.xml"
  88. xpointer="ECLSched_comp"
  89. xmlns:xi="http://www.w3.org/2001/XInclude" />
  90. <xi:include href="ECLScheduler/ECLSched-Mods/ECLSchedAdmin.xml"
  91. xpointer="ECLSched-Admin"
  92. xmlns:xi="http://www.w3.org/2001/XInclude" />
  93. <chapter>
  94. <title>ECL Usage</title>
  95. <para>The ECL Scheduler is a tool that can perform a specific action based
  96. on a specific event. The following functions can be viewed or manipulated
  97. in the scheduler.</para>
  98. <sect1 id="WHEN">
  99. <title>WHEN</title>
  100. <xi:include href="ECLLanguageReference/ECLR_mods/BltInFunc-WHEN.xml"
  101. xpointer="SchWhen"
  102. xmlns:xi="http://www.w3.org/2001/XInclude" />
  103. </sect1>
  104. <sect1 id="NOTIFY">
  105. <title>NOTIFY</title>
  106. <xi:include href="ECLLanguageReference/ECLR_mods/BltInFunc-NOTIFY.xml"
  107. xpointer="SchNOTIFY"
  108. xmlns:xi="http://www.w3.org/2001/XInclude" />
  109. </sect1>
  110. <sect1>
  111. <title>EVENT</title>
  112. <xi:include href="ECLLanguageReference/ECLR_mods/BltInFunc-EVENT.xml"
  113. xpointer="SchEvent"
  114. xmlns:xi="http://www.w3.org/2001/XInclude" />
  115. </sect1>
  116. <sect1>
  117. <title>CRON</title>
  118. <xi:include href="ECLLanguageReference/ECLR_mods/BltInFunc-CRON.xml"
  119. xpointer="SchCRON"
  120. xmlns:xi="http://www.w3.org/2001/XInclude" />
  121. </sect1>
  122. <sect1>
  123. <title>WAIT</title>
  124. <xi:include href="ECLLanguageReference/ECLR_mods/BltInFunc-WAIT.xml"
  125. xpointer="SchWAIT"
  126. xmlns:xi="http://www.w3.org/2001/XInclude" />
  127. </sect1>
  128. </chapter>
  129. <chapter>
  130. <title>DFU Monitoring and Events</title>
  131. <para>The following are supported methods for the ECL Scheduler included
  132. in the ECL Standard Library Reference.</para>
  133. <xi:include href="ECLStandardLibraryReference/SLR-Mods/MonitorFile.xml"
  134. xpointer="MonitorFile"
  135. xmlns:xi="http://www.w3.org/2001/XInclude" />
  136. <xi:include href="ECLStandardLibraryReference/SLR-Mods/MonitorLogicalFileName.xml"
  137. xpointer="MonitorLogicalFileName"
  138. xmlns:xi="http://www.w3.org/2001/XInclude" />
  139. </chapter>
  140. </book>