A module is started by the datasqill server as a standalone subprocess. After startup, it must read its input parameters and, after completing its task, return its return values to the server.
The following convention applies as the interface between the datasqill server and a module process:
Java modules are implemented as Java classes that implement an interface. This interface is called datasqillProgram and has an abstract method:
public datasqillTransformationAnswer execute(datasqillTransformationRequest request) throws Exception
Furthermore, the module class must implement a main method so that the server can start it. This typically looks like this:
public static void main(String args[]) {
datasqillProgramStart.init(args, new DsModDemo());
}
The classes datasqillProgramStart, datasqillTransformationRequest, and datasqillTransformationAnswer can be found in the datasqill library (see also the corresponding section).
In the example, the main method from the class DsModDemo is shown; for custom classes, the constructor call after "new" should of course be adapted accordingly.