Replicate
STD.File.Replicate
STD.File.Replicate
File.Replicate
Replicate
( filename [ , timeout ] [ , espserverIPport ])
dfuwuid :=
STD.File.fReplicate( filename [ , timeout ] [ , espserverIPport ]);
filename
A null-terminated string containing the logical name of the
file.
timeout
Optional. An integer value indicating the timeout setting. If
omitted, the default is -1. If set to zero (0), execution control
returns immediately to the ECL workunit without waiting for the DFU
workunit to complete.
espserverIPport
Optional. A null-terminated string containing the protocol,
IP, port, and directory, or the DNS equivalent, of the ESP server
program. This is usually the same IP and port as ECL Watch, with
“/FileSpray” appended. If omitted, the default is the value
contained in the lib_system.ws_fs_server attribute.
dfuwuid
The attribute name to receive the null-terminated string
containing the DFU workunit ID (DFUWUID) generated for the
job.
The Replicate function copies the
individual parts of the filename to the mirror disks
for the cluster. Typically, this means that the file part on one node's C
drive is copied to its neighbors D drive.
Example:
A := STD.File.Replicate('Fred');