Function Service API
You can use the Function Service API to send a function and its arguments to the engine on the server.
You can identify a function by providing its package name, along with the function name. You can also provide any function arguments, whether they are strings or objects.
- Sending TERR expressions that perform I/O to the file system or the internet.
- Spawning new OS processes by calling the system function.
- Calling into Java using the terrJava package, or using functions in the parallel package.
- Loading new packages, except for those included with TERR.
- Calling .C or .Fortran.
- Send expressions to the server using the Expression Service.
- Calling ExtendedServerInfo or sending other expressions that read from, or write to, your server.
- Sending potentially malicious expressions to the server using the URL API.
The Function Service processes only one function at a time, and the function you send must be in a library or a package on the server. Most of the time, you will probably want to perform a series of tasks on a data set, including importing the data, cleaning it, modeling it, and graphing the results of your analysis. To accomplish complex analyses with the Spotfire Statistics Services Function Service, you can perform the following tasks.
- Write and test your functions.
- Wrap your functions in one function.
- Create a library or a package to contain your wrapper function.
- Deploy the library or package on the server using the spserverapi function administrationService.uploadPackageVersion. (see help for spserverapi, available from the Spotfire Statistics Services landing page at http://servername:8080/service_name/, for more information.).
- When you run your function, specify your library or package name.
The results of your function call are returned as an SPXML string.
- function
Sends a function and its parameters to the server to run synchronously, asynchronously, or at a scheduled time. - getJobDetails
Deprecated. see jobs. Returns the results of the specified job.