Invocation Variables
While you can implement a Service that is independent of DataSynapse libraries, on certain occasions you might need to refer to properties within the environment of the Engine. This can be accomplished without using additional code with variables that are retrieved in various ways depending on the type of Service:
| • | Java System properties |
| • | DynamicLibrary Environment variables, with the same name as Java variables, except with dots replaced with underscores. You can also use symbolic constants provided by DynamicLibraryFunctions.h. |
| • | .NET System.AppDomain.CurrentDomain data values; for example: System.AppDomain.CurrentDomain.GetData("ds.ServiceSessionID") |
| • | Command Environment variables, with the same name as Java variables, except with the dots replaced with underscores. |
The Engine provides the following variables:
|
Variable |
Description |
|
|
The unique identifier for the Service Session being invoked. |
|
|
A number uniquely identifying the invocation (task) of the Service instance. |
|
|
The absolute path to the directory that the Service uses for reading and writing of checkpoint data, if checkpointing is enabled for the Service. |
|
|
If this variable is set in an invocation, the value is displayed in the Administration Tool on completion of the invocation. |
|
|
The work directory for the Engine. This variable is set to the directory from which the Service is executed. By default, it is the absolute path to the Engine installation directory, where Note that the |
|
|
The data directory for the Engine, which is the absolute path directory in which DDT (Direct Data Transfer) data is stored. The cleanup frequency is also controlled by the Engine Configuration. |
|
|
A list of paths, the contents of which are absolute paths to the root directories of all the expanded and loaded Grid Libraries. |
In addition, any environment variables available on the Engine are also available in the Engine Service Instance. Note that any environment variables use absolute paths.