SprayXML.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="SprayXML">
  5. <title>SprayXML</title>
  6. <para><emphasis role="bold">STD.File.SprayXML<indexterm>
  7. <primary>STD.File.SprayXML</primary>
  8. </indexterm><indexterm>
  9. <primary>File.SprayXML</primary>
  10. </indexterm><indexterm>
  11. <primary>SprayXML</primary>
  12. </indexterm>(</emphasis> <emphasis> sourceIP </emphasis> <emphasis
  13. role="bold">, </emphasis> <emphasis>sourcepath , </emphasis> <emphasis
  14. role="bold">[</emphasis> <emphasis> maxrecordsize </emphasis> <emphasis
  15. role="bold">] </emphasis> <emphasis>, </emphasis> <emphasis role="bold">
  16. </emphasis> <emphasis> srcRowTag </emphasis> <emphasis role="bold">
  17. </emphasis> <emphasis>, </emphasis> <emphasis role="bold">[</emphasis>
  18. <emphasis> srcEncoding </emphasis> <emphasis role="bold">] </emphasis>
  19. <emphasis>, </emphasis> <emphasis role="bold"> </emphasis>
  20. <emphasis>destinationgroup, destinationlogicalname </emphasis> <emphasis
  21. role="bold">[</emphasis> <emphasis>timeout</emphasis> <emphasis
  22. role="bold">]</emphasis> <emphasis role="bold"> [</emphasis>
  23. <emphasis>espserverIPport</emphasis> <emphasis role="bold">]</emphasis>
  24. <emphasis> </emphasis> <emphasis role="bold">[</emphasis>
  25. <emphasis>maxConnections</emphasis> <emphasis role="bold">]</emphasis>
  26. <emphasis role="bold"> [</emphasis> <emphasis>allowoverwrite</emphasis>
  27. <emphasis role="bold">] [</emphasis> <emphasis>replicate</emphasis>
  28. <emphasis role="bold">] [</emphasis> <emphasis> compress
  29. </emphasis><emphasis role="bold">] </emphasis>, <emphasis
  30. role="bold">[</emphasis><emphasis>failIfNoSourceFile</emphasis><emphasis
  31. role="bold">]</emphasis>, <emphasis
  32. role="bold">[</emphasis><emphasis>expireDays</emphasis><emphasis
  33. role="bold">])</emphasis></para>
  34. <para><emphasis>dfuwuid</emphasis> <emphasis role="bold"> :=
  35. STD.File.fSprayXML<indexterm>
  36. <primary>STD.File.fSprayXML</primary>
  37. </indexterm><indexterm>
  38. <primary>File.fSprayXML</primary>
  39. </indexterm><indexterm>
  40. <primary>fSprayXML</primary>
  41. </indexterm>(</emphasis> <emphasis> sourceIP</emphasis> <emphasis
  42. role="bold">, </emphasis> <emphasis>sourcepath, </emphasis> <emphasis
  43. role="bold">[</emphasis> <emphasis> maxrecordsize </emphasis> <emphasis
  44. role="bold">] </emphasis> <emphasis>, </emphasis> <emphasis role="bold">
  45. </emphasis> <emphasis>srcRowTag</emphasis> <emphasis role="bold">
  46. </emphasis> <emphasis>, </emphasis> <emphasis role="bold">[</emphasis>
  47. <emphasis> srcEncoding </emphasis> <emphasis role="bold">] </emphasis>
  48. <emphasis>,destinationgroup,</emphasis> <emphasis> destinationlogicalname
  49. </emphasis> , <emphasis role="bold">[</emphasis>
  50. <emphasis>timeout</emphasis> <emphasis role="bold">] , [</emphasis>
  51. <emphasis>espserverIPport</emphasis> <emphasis role="bold">]</emphasis>
  52. <emphasis> </emphasis>, <emphasis role="bold"> [</emphasis>
  53. <emphasis>maxConnections</emphasis> <emphasis role="bold">] , [</emphasis>
  54. <emphasis>allowoverwrite</emphasis> <emphasis role="bold">] , [</emphasis>
  55. <emphasis>replicate</emphasis> <emphasis role="bold">] , [</emphasis>
  56. <emphasis> compress </emphasis> <emphasis role="bold">] </emphasis>,
  57. <emphasis
  58. role="bold">[</emphasis><emphasis>failIfNoSourceFile</emphasis><emphasis
  59. role="bold">]</emphasis>, <emphasis
  60. role="bold">[</emphasis><emphasis>expireDays</emphasis><emphasis
  61. role="bold">])</emphasis></para>
  62. <informaltable colsep="1" frame="all" rowsep="1">
  63. <tgroup cols="2">
  64. <colspec colwidth="80.50pt" />
  65. <colspec />
  66. <tbody>
  67. <row>
  68. <entry><emphasis>sourceIP</emphasis></entry>
  69. <entry>A null-terminated string containing the IP address of the
  70. file.</entry>
  71. </row>
  72. <row>
  73. <entry><emphasis>sourcepath</emphasis></entry>
  74. <entry>A null-terminated string containing the path and name of the
  75. file.</entry>
  76. </row>
  77. <row>
  78. <entry><emphasis>maxrecordsize</emphasis></entry>
  79. <entry>Optional. An integer containing the maximum size of the
  80. records in the file. If omitted, the default is 8192.</entry>
  81. </row>
  82. <row>
  83. <entry><emphasis>srcRowTag</emphasis></entry>
  84. <entry>A null-terminated string containing the row delimiting XML
  85. tag. Required.</entry>
  86. </row>
  87. <row>
  88. <entry><emphasis>srcEncoding</emphasis></entry>
  89. <entry>Optional. A null-terminated string containing the encoding.
  90. If omitted, the default is 'utf8'</entry>
  91. </row>
  92. <row>
  93. <entry><emphasis>destinationgroup</emphasis></entry>
  94. <entry>A null-terminated string containing the name of the specific
  95. supercomputer within the target cluster.</entry>
  96. </row>
  97. <row>
  98. <entry><emphasis>destinationlogicalname</emphasis></entry>
  99. <entry>A null-terminated string containing the logical name of the
  100. file. </entry>
  101. </row>
  102. <row>
  103. <entry><emphasis>timeout</emphasis></entry>
  104. <entry>Optional. An integer value indicating the timeout setting. If
  105. omitted, the default is -1. If set to zero (0), execution control
  106. returns immediately to the ECL workunit without waiting for the DFU
  107. workunit to complete.</entry>
  108. </row>
  109. <row>
  110. <entry><emphasis>espserverIPport</emphasis></entry>
  111. <entry>Optional. A null-terminated string containing the protocol,
  112. IP, port, and directory, or the DNS equivalent, of the ESP server
  113. program. This is usually the same IP and port as ECL Watch, with
  114. “/FileSpray” appended. If omitted, the default is the value
  115. contained in the lib_system.ws_fs_server attribute.</entry>
  116. </row>
  117. <row>
  118. <entry><emphasis>maxConnections</emphasis></entry>
  119. <entry>Optional. An integer specifying the maximum number of
  120. connections. If omitted, the default is one (1).</entry>
  121. </row>
  122. <row>
  123. <entry><emphasis>allowoverwrite</emphasis></entry>
  124. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  125. allow the new file to overwrite an existing file of the same name.
  126. If omitted, the default is FALSE.</entry>
  127. </row>
  128. <row>
  129. <entry><emphasis>replicate</emphasis></entry>
  130. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  131. replicate the new file. If omitted, the default is FALSE.</entry>
  132. </row>
  133. <row>
  134. <entry><emphasis>compress</emphasis></entry>
  135. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  136. compress the new file. If omitted, the default is FALSE.</entry>
  137. </row>
  138. <row>
  139. <entry><emphasis>failIfNoSourceFile</emphasis></entry>
  140. <entry>Optional. A boolean TRUE or FALSE flag indicating whether a
  141. missing file triggers a failure. If omitted, the default is
  142. FALSE.</entry>
  143. </row>
  144. <row>
  145. <entry><emphasis>expireDays</emphasis></entry>
  146. <entry>Optional. A integer value indicating the number of days
  147. before automatically removing the file. If omitted, the default is
  148. -1 (never expires).</entry>
  149. </row>
  150. <row>
  151. <entry><emphasis>dfuwuid</emphasis></entry>
  152. <entry>The attribute name to recieve the null-terminated string
  153. containing the DFU workunit ID (DFUWUID) generated for the
  154. job.</entry>
  155. </row>
  156. <row>
  157. <entry>Return:<emphasis> </emphasis></entry>
  158. <entry>fSprayXML returns a null-terminated string containing the DFU
  159. workunit ID (DFUWUID).</entry>
  160. </row>
  161. </tbody>
  162. </tgroup>
  163. </informaltable>
  164. <para>The <emphasis role="bold">SprayXML </emphasis>function takes a
  165. well-formed XML file from the landing zone and distributes it across the
  166. nodes of the destination supercomputer, producing a well-formed XML file on
  167. each node.</para>
  168. <para>Example:</para>
  169. <programlisting format="linespecific">STD.File.SprayXML('10.150.50.14','c:\\InputData\\MyFile.txt',,
  170. 'Row',,'400way','IN::MyFile',-1,
  171. 'http://10.150.50.12:8010/FileSpray');</programlisting>
  172. </sect1>