C++ Native Functions: com.teracloud.streams.crossdc.failover

This page documents native functions that can be invoked from SPL, including the SPL interfaces that can be used to invoke each of the native functions.

Functions

public int32 delete_files_in_a_directory(rstring directory, rstring extension)

Delete all the files in a directory with a given file extension

<any T> public void deserializeDataItem(mutable T myData, blob myBlob)

Deserialize a given blob into its original data item made of some SPL type

<tuple T> public void deserializeTuple(mutable T myTuple, blob myBlob)

Deserialize the blob into a tuple

public int32 get_file_names_in_a_directory(rstring directory, rstring extension, mutable list<rstring> fileNamesList)

Get a list of names of all the files in a directory with a given file extension

public int32 launch_app(rstring appName)

Launch the given external application.

<any T> public void serializeDataItem(T myData, mutable blob myBlob)

Serialize any given data item made of some SPL type into a blob

<tuple T> public void serializeTuple(T myTuple, mutable blob myBlob)

Serialize a given tuple to a blob