SprayXML.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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 </emphasis>
  29. <emphasis role="bold">])</emphasis></para>
  30. <para><emphasis>dfuwuid</emphasis> <emphasis role="bold"> :=
  31. STD.File.fSprayXML<indexterm>
  32. <primary>STD.File.fSprayXML</primary>
  33. </indexterm><indexterm>
  34. <primary>File.fSprayXML</primary>
  35. </indexterm><indexterm>
  36. <primary>fSprayXML</primary>
  37. </indexterm>(</emphasis> <emphasis> sourceIP</emphasis> <emphasis
  38. role="bold">, </emphasis> <emphasis>sourcepath, </emphasis> <emphasis
  39. role="bold">[</emphasis> <emphasis> maxrecordsize </emphasis> <emphasis
  40. role="bold">] </emphasis> <emphasis>, </emphasis> <emphasis role="bold">
  41. </emphasis> <emphasis>srcRowTag</emphasis> <emphasis role="bold">
  42. </emphasis> <emphasis>, </emphasis> <emphasis role="bold">[</emphasis>
  43. <emphasis> srcEncoding </emphasis> <emphasis role="bold">] </emphasis>
  44. <emphasis>,destinationgroup,</emphasis> <emphasis> destinationlogicalname
  45. </emphasis> , <emphasis role="bold">[</emphasis>
  46. <emphasis>timeout</emphasis> <emphasis role="bold">] , [</emphasis>
  47. <emphasis>espserverIPport</emphasis> <emphasis role="bold">]</emphasis>
  48. <emphasis> </emphasis>, <emphasis role="bold"> [</emphasis>
  49. <emphasis>maxConnections</emphasis> <emphasis role="bold">] , [</emphasis>
  50. <emphasis>allowoverwrite</emphasis> <emphasis role="bold">] , [</emphasis>
  51. <emphasis>replicate</emphasis> <emphasis role="bold">] , [</emphasis>
  52. <emphasis> compress </emphasis> <emphasis role="bold">]);</emphasis></para>
  53. <informaltable colsep="1" frame="all" rowsep="1">
  54. <tgroup cols="2">
  55. <colspec colwidth="80.50pt" />
  56. <colspec />
  57. <tbody>
  58. <row>
  59. <entry><emphasis>sourceIP</emphasis></entry>
  60. <entry>A null-terminated string containing the IP address of the
  61. file.</entry>
  62. </row>
  63. <row>
  64. <entry><emphasis>sourcepath</emphasis></entry>
  65. <entry>A null-terminated string containing the path and name of the
  66. file.</entry>
  67. </row>
  68. <row>
  69. <entry><emphasis>maxrecordsize</emphasis></entry>
  70. <entry>Optional. An integer containing the maximum size of the
  71. records in the file. If omitted, the default is 8192.</entry>
  72. </row>
  73. <row>
  74. <entry><emphasis>srcRowTag</emphasis></entry>
  75. <entry>A null-terminated string containing the row delimiting XML
  76. tag. Required. </entry>
  77. </row>
  78. <row>
  79. <entry><emphasis>srcEncoding</emphasis></entry>
  80. <entry>Optional. A null-terminated string containing the encoding.
  81. If omitted, the default is 'utf8'</entry>
  82. </row>
  83. <row>
  84. <entry><emphasis>destinationgroup</emphasis></entry>
  85. <entry>A null-terminated string containing the name of the specific
  86. supercomputer within the target cluster.</entry>
  87. </row>
  88. <row>
  89. <entry><emphasis>destinationlogicalname</emphasis></entry>
  90. <entry>A null-terminated string containing the logical name of the
  91. file.</entry>
  92. </row>
  93. <row>
  94. <entry><emphasis>timeout</emphasis></entry>
  95. <entry>Optional. An integer value indicating the timeout setting. If
  96. omitted, the default is -1. If set to zero (0), execution control
  97. returns immediately to the ECL workunit without waiting for the DFU
  98. workunit to complete.</entry>
  99. </row>
  100. <row>
  101. <entry><emphasis>espserverIPport</emphasis></entry>
  102. <entry>Optional. A null-terminated string containing the protocol,
  103. IP, port, and directory, or the DNS equivalent, of the ESP server
  104. program. This is usually the same IP and port as ECL Watch, with
  105. “/FileSpray” appended. If omitted, the default is the value
  106. contained in the lib_system.ws_fs_server attribute.</entry>
  107. </row>
  108. <row>
  109. <entry><emphasis>maxConnections</emphasis></entry>
  110. <entry>Optional. An integer specifying the maximum number of
  111. connections. If omitted, the default is one (1).</entry>
  112. </row>
  113. <row>
  114. <entry><emphasis>allowoverwrite</emphasis></entry>
  115. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  116. allow the new file to overwrite an existing file of the same name.
  117. If omitted, the default is FALSE.</entry>
  118. </row>
  119. <row>
  120. <entry><emphasis>replicate</emphasis></entry>
  121. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  122. replicate the new file. If omitted, the default is FALSE.</entry>
  123. </row>
  124. <row>
  125. <entry><emphasis>compress</emphasis></entry>
  126. <entry>Optional. A boolean TRUE or FALSE flag indicating whether to
  127. compress the new file. If omitted, the default is FALSE.</entry>
  128. </row>
  129. <row>
  130. <entry><emphasis>dfuwuid</emphasis></entry>
  131. <entry>The attribute name to recieve the null-terminated string
  132. containing the DFU workunit ID (DFUWUID) generated for the
  133. job.</entry>
  134. </row>
  135. <row>
  136. <entry>Return:<emphasis> </emphasis></entry>
  137. <entry>fSprayXML returns a null-terminated string containing the DFU
  138. workunit ID (DFUWUID).</entry>
  139. </row>
  140. </tbody>
  141. </tgroup>
  142. </informaltable>
  143. <para>The <emphasis role="bold">SprayXML </emphasis>function takes a
  144. well-formed XML file from the landing zone and distributes it across the
  145. nodes of the destination supercomputer, producing a well-formed XML file on
  146. each node.</para>
  147. <para>Example:</para>
  148. <programlisting format="linespecific">STD.File.SprayXML('10.150.50.14','c:\\InputData\\MyFile.txt',,
  149. 'Row',,'400way','IN::MyFile',-1,
  150. 'http://10.150.50.12:8010/FileSpray');</programlisting>
  151. </sect1>