Nodes.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="Nodes">
  5. <title><emphasis role="bold">Nodes</emphasis></title>
  6. <para><emphasis role="bold">STD.System.Thorlib.Nodes<indexterm>
  7. <primary>STD.System.Thorlib.Nodes</primary>
  8. </indexterm><indexterm>
  9. <primary>System.Thorlib.Nodes</primary>
  10. </indexterm><indexterm>
  11. <primary>Thorlib.Nodes</primary>
  12. </indexterm><indexterm>
  13. <primary>Nodes</primary>
  14. </indexterm>(</emphasis> <emphasis> </emphasis> <emphasis
  15. role="bold">)</emphasis></para>
  16. <informaltable colsep="0" frame="none" rowsep="0">
  17. <tgroup cols="2">
  18. <colspec colwidth="80.50pt" />
  19. <colspec />
  20. <tbody>
  21. <row>
  22. <entry>Return:<emphasis> </emphasis></entry>
  23. <entry>Nodes returns an UNSIGNED INTEGER4 value.</entry>
  24. </row>
  25. </tbody>
  26. </tgroup>
  27. </informaltable>
  28. <para>The <emphasis role="bold">Nodes </emphasis>function returns the number
  29. of nodes in the Thor cluster (always returns 1 on hThor and Roxie). This
  30. number is the same as the CLUSTERSIZE compile time constant. The Nodes
  31. function is evaluated each time it is called, so the choice to use the
  32. function versus the constant depends upon the circumstances.</para>
  33. <para>Example:</para>
  34. <programlisting format="linespecific">A := STD.System.Thorlib.Nodes();</programlisting>
  35. </sect1>