ECLSchedComp.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <book>
  5. <bookinfo>
  6. <title>ECL Scheduler</title>
  7. <author>
  8. <firstname>Boca Raton</firstname>
  9. <surname>Documentation Team</surname>
  10. <affiliation>
  11. <orgname>Lexis Nexis</orgname>
  12. </affiliation>
  13. </author>
  14. <pubdate>2012</pubdate>
  15. </bookinfo>
  16. <chapter id="ECLSched_comp">
  17. <title>ECL Scheduler Component</title>
  18. <sect1 id="ECLSched_component" role="nobrk">
  19. <title>Installation and configuration</title>
  20. <para>The ECL Scheduler installs when you install the HPCC platform. It
  21. starts and stops using hpcc-init, just as all other HPCC
  22. components.</para>
  23. </sect1>
  24. <sect1>
  25. <title>Using the ECL Scheduler</title>
  26. <sect2>
  27. <title>ECL Language Statements Used</title>
  28. <para>The Following ECL Language Statements are used:</para>
  29. <sect3>
  30. <title>WHEN</title>
  31. <para>The <emphasis role="bold">WHEN </emphasis>service executes the
  32. action whenever the event is triggered. The optional <emphasis
  33. role="bold">COUNT </emphasis>option specifies the number of events
  34. to trigger instances of the action.</para>
  35. </sect3>
  36. <sect3>
  37. <title>NOTIFY</title>
  38. <para>The <emphasis role="bold">NOTIFY </emphasis>action triggers
  39. the event so that the <emphasis role="bold">WHEN </emphasis>workflow
  40. service can proceed with operations they are assigned to
  41. execute.</para>
  42. </sect3>
  43. <sect3>
  44. <title>EVENT</title>
  45. <para>The <emphasis role="bold">EVENT </emphasis>function returns a
  46. trigger event, which may be used within the <emphasis
  47. role="bold">WHEN </emphasis>workflow service or the <emphasis
  48. role="bold">NOTIFY</emphasis> action. EVENT is not really a
  49. statement, rather a parameter to WHEN/NOTIFY to describe what kind
  50. of event it is used for.</para>
  51. </sect3>
  52. <sect3>
  53. <title>CRON</title>
  54. <para>The <emphasis role="bold">CRON </emphasis>function defines a
  55. timer event for use within the <emphasis role="bold">WHEN
  56. </emphasis>workflow service. This is synonymous with <emphasis
  57. role="bold">EVENT(‘CRON’, time)</emphasis>. CRON itself is not a
  58. statement, rather a parameter to WHEN/NOTIFY to describe what kind
  59. of event it is used for.</para>
  60. </sect3>
  61. <sect3>
  62. <title>WAIT</title>
  63. <para>The <emphasis role="bold">WAIT </emphasis>function is a string
  64. constant containing the name of the event to wait for. It is used
  65. much like the <emphasis role="bold">WHEN</emphasis> workflow
  66. service, but may be used within conditional code.</para>
  67. </sect3>
  68. </sect2>
  69. <sect2>
  70. <title>Monitoring Functions in the Standard Library (STD.File)</title>
  71. <sect3>
  72. <title>MonitorFile</title>
  73. <para>The <emphasis role="bold">MonitorFile </emphasis>function
  74. creates a file monitor job in the DFU Server for a physical
  75. file.</para>
  76. </sect3>
  77. <sect3>
  78. <title>MonitorLogicalFileName</title>
  79. <para>The <emphasis role="bold">MonitorLogicalFileName
  80. </emphasis>function creates a file monitor job in the DFU Server for
  81. a logical file.</para>
  82. </sect3>
  83. </sect2>
  84. <sect2>
  85. <title>DFUPlus: Monitor Option</title>
  86. <para><programlisting> dfuplus action=monitor event=MyEvent</programlisting></para>
  87. <para><variablelist>
  88. <varlistentry>
  89. <term><emphasis role="bold">Note</emphasis>:</term>
  90. <listitem>
  91. <para>DFUServer file monitoring (either using the Standard
  92. Library or DFUPlus) creates a DFU Workunit. While monitoring,
  93. the Workunit’s state is <emphasis>monitoring </emphasis>and
  94. once it triggers the event, it is set to
  95. <emphasis>finished</emphasis>. You can Abort a “monitoring”
  96. DFU Workunit to stop monitoring from ECL Watch.</para>
  97. </listitem>
  98. </varlistentry>
  99. </variablelist></para>
  100. </sect2>
  101. </sect1>
  102. <sect1 id="ECLSched_Interface">
  103. <title>Interface in ECL Watch</title>
  104. <para>To access the ECL Scheduler interface in ECL Watch, click on
  105. the<emphasis role="bold"> Event Scheduler </emphasis>link in the
  106. navigation sub-menu. The Scheduler interface displays and you can see
  107. the scheduled workunits, if any.</para>
  108. <para>The list of scheduled workunits has two significant columns, the
  109. <emphasis role="bold">EventName </emphasis>and the <emphasis
  110. role="bold">EventText</emphasis>.</para>
  111. <para><figure>
  112. <title>ECL Scheduler Interface</title>
  113. <mediaobject>
  114. <imageobject>
  115. <imagedata fileref="../../images/ESCHed01.jpg" />
  116. </imageobject>
  117. </mediaobject>
  118. </figure></para>
  119. <para>The EventName is a created when scheduling a workunit. The
  120. EventText is an accompanying sub event.</para>
  121. <para>You can trigger an event by entering the EventName and Event Text
  122. in the entry boxes and then pressing the <emphasis
  123. role="bold">PushEvent</emphasis> button. This is the same as triggering
  124. an event using NOTIFY.</para>
  125. <sect2 id="ECLSched_WorkunitList">
  126. <title>Scheduler Workunit List</title>
  127. <para>You can search scheduled workunits by cluster or event name. To
  128. filter by cluster or event name, click on the <emphasis
  129. role="bold">Filter</emphasis> Action button. The Filter sub-menu
  130. displays. Fill in values for the filter criteria, Eventname or
  131. Cluster, then press the <emphasis role="bold">Apply</emphasis> button.
  132. When you specify any Filter options, the Filter Action button displays
  133. <emphasis>Filter Set</emphasis>. <figure>
  134. <title>Workunits in the Scheduler Interface</title>
  135. <mediaobject>
  136. <imageobject>
  137. <imagedata fileref="../../images/ESCHed02.jpg" />
  138. </imageobject>
  139. </mediaobject>
  140. </figure></para>
  141. <para>You can sort the workunits by clicking on the column
  142. header.</para>
  143. <para>To view the workunit details, click on the workunit ID (WUID)
  144. link for the workunit.</para>
  145. </sect2>
  146. <sect2 id="ECLSched_PushingEvents" role="brk">
  147. <title>Pushing Events</title>
  148. <para>The Event Scheduler allow you to trigger or "push" an event to
  149. help manage and test your scheduled jobs.</para>
  150. <para><orderedlist>
  151. <listitem>
  152. <para>Press the <emphasis role="bold">PushEvent</emphasis>
  153. action button.</para>
  154. <para>The Push Event dialog opens.</para>
  155. </listitem>
  156. <listitem>
  157. <para>Enter the EventName:</para>
  158. <para>The EventName is a case-insensitive string constant naming
  159. the event to trap.</para>
  160. <para>See Also: EVENT</para>
  161. </listitem>
  162. <listitem>
  163. <para>Enter the EventText:</para>
  164. <para>The EventText is case-insensitive string constant naming
  165. the specific type of event to trap. It may contain * and ? to
  166. wildcard-match.</para>
  167. <para>See Also: EVENT</para>
  168. </listitem>
  169. <listitem>
  170. <para>Press the <emphasis role="bold">Apply</emphasis>
  171. button</para>
  172. <para>This is the equivalent of</para>
  173. <para><programlisting> NOTIFY(EVENT(EventName,EventText));</programlisting></para>
  174. <para>See Also: NOTIFY, EVENT</para>
  175. <para><figure>
  176. <title>PushEvent</title>
  177. <mediaobject>
  178. <imageobject>
  179. <imagedata fileref="../../images/ESCHed03.jpg" />
  180. </imageobject>
  181. </mediaobject>
  182. </figure></para>
  183. </listitem>
  184. </orderedlist></para>
  185. </sect2>
  186. </sect1>
  187. </chapter>
  188. </book>