loadFromFileDirect

loadFromFileDirect(fileName: String) updating;

The loadFromFileDirect method of the JadeBytes class loads the binary content of the receiver from the file specified by the value of the fileName parameter. If the file name is not valid for the machine running the server node, an exception is raised.

This method raises an exception if the receiver is not a singleFile instance.

Use this method when the source data file is present on the machine running the server node, as it avoids moving the content to and from the node executing the method.

You can use this method to resynchronize the current content with the journal after direct external updates have been made. Pass the result of the getFileTitle method as the value of the fileName parameter of this loadFromFileDirect method. The current content is read to calculate the checksum and to write to the journal, which causes the current content to be replayed on SDS and RPS nodes and allows the current content to be re-established by a roll-forward recovery.