CTsource is an example of a CloudTurbine source utility.  It can be used to generate data to pipe to other CloudTurbine applications for testing purposes.  It provides an example of writing a CloudTurbine source application using the CTwriter class.

CTsource is packaged in the CTexample.jar file and can be run as follows:

The default output source folder is “CTsource”.

CTsource creates a number of output ZIP files where each ZIP file contains 5 (unpacked) data points on each of 3 channels: “c0” (numbers saved as text), “c1.f32” (32-bit floating point numbers) and “c2.txt” (numbers saved as text).

A related source utility (also located in CTexample.jar) is CTsourceftp.  This utility sends 2 channels of numerical data (“foo” and “bar”) to a user-specified FTP server.  CTsourceftp is executed as follows:

where the default arguments are as follows:

  • source_folder = “CTsource”
  • host = “localhost”
  • user = “user”
  • pw = “pw”

CTsourceftp creates a number of output ZIP files where each ZIP file contains one data point for each output channel.