Replicate.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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="Replicate">
  5. <title>Replicate</title>
  6. <para><emphasis role="bold">STD.File.Replicate <indexterm>
  7. <primary>STD.File.Replicate</primary>
  8. </indexterm> <indexterm>
  9. <primary>File.Replicate</primary>
  10. </indexterm> <indexterm>
  11. <primary>Replicate</primary>
  12. </indexterm> (</emphasis> <emphasis> filename </emphasis> <emphasis
  13. role="bold">[</emphasis> <emphasis>, timeout </emphasis> <emphasis
  14. role="bold">] [</emphasis> <emphasis>, espserverIPport</emphasis> <emphasis
  15. role="bold">])</emphasis> <emphasis></emphasis></para>
  16. <para><emphasis>dfuwuid </emphasis> <emphasis role="bold">:=
  17. STD.File.fReplicate(</emphasis> <emphasis> filename </emphasis> <emphasis
  18. role="bold">[</emphasis> <emphasis>, timeout </emphasis> <emphasis
  19. role="bold">] [</emphasis> <emphasis>, espserverIPport</emphasis> <emphasis
  20. role="bold">]);</emphasis></para>
  21. <informaltable colsep="0" frame="none" rowsep="0">
  22. <tgroup cols="2">
  23. <colspec colwidth="80.50pt" />
  24. <colspec />
  25. <tbody>
  26. <row>
  27. <entry><emphasis>filename</emphasis></entry>
  28. <entry>A null-terminated string containing the logical name of the
  29. file.</entry>
  30. </row>
  31. <row>
  32. <entry><emphasis>timeout</emphasis></entry>
  33. <entry>Optional. An integer value indicating the timeout setting. If
  34. omitted, the default is -1. If set to zero (0), execution control
  35. returns immediately to the ECL workunit without waiting for the DFU
  36. workunit to complete.</entry>
  37. </row>
  38. <row>
  39. <entry><emphasis>espserverIPport</emphasis></entry>
  40. <entry>Optional. A null-terminated string containing the protocol,
  41. IP, port, and directory, or the DNS equivalent, of the ESP server
  42. program. This is usually the same IP and port as ECL Watch, with
  43. “/FileSpray” appended. If omitted, the default is the value
  44. contained in the lib_system.ws_fs_server attribute.</entry>
  45. </row>
  46. <row>
  47. <entry><emphasis>dfuwuid</emphasis></entry>
  48. <entry>The attribute name to receive the null-terminated string
  49. containing the DFU workunit ID (DFUWUID) generated for the
  50. job.</entry>
  51. </row>
  52. </tbody>
  53. </tgroup>
  54. </informaltable>
  55. <para>The <emphasis role="bold">Replicate </emphasis>function copies the
  56. individual parts of the <emphasis>filename</emphasis> to the mirror disks
  57. for the cluster. Typically, this means that the file part on one node's C
  58. drive is copied to its neighbors D drive.</para>
  59. <para>Example:</para>
  60. <programlisting format="linespecific">A := STD.File.Replicate('Fred');</programlisting>
  61. </sect1>