Write Java and C# code for Spotfire Statistics Services
This section includes an overview on using the features specific to Spotfire Statistics Services Java and C# APIs. A knowledge of either Java or C# is assumed.
Note: For information about sending simple requests to the server via a web browser, see the
Write requests using the URL API.
We also discuss sending Function client and Expression client evaluation requests, implementing authentication, and creating a notification listener.
For more information about using the Administration, Expression, or Function Client APIs, see their respective overviews in the language help, available from the Spotfire Statistics Services landing page, at http://servername:8080/service_name/.
- Function Evaluations
The Function client contains three versions of the evaluation method (eval
in Java;Eval
in C#). - Expression Evaluations
The Expression client also contains three current versions and four deprecated versions of the evaluation method (eval
in Java;Eval
in C#). - Pass in a Data Object
Notice the versions of the evaluation functions in both the Function and Expression clients that take as an argument anSplusDataRequest
object. This object is constructed from the Domain: it is a collection of C# or Java representations of R language objects (either TERR or open-source R) and/or an encapsulated data set (along with theResultSerializationType
property). - Use Authentication
When authentication is activated in the server, user credentials are authenticated against LDAP or a local database. (If you need configuration details, see your system administrator.) - Use Notifications
When the client instance is first instantiated (using theClientFactory.getserviceClient()
methods, where service is the type of service), a listening port is opened on the client to receive messages from Spotfire Statistics Services. When any change to the job status (such as job completion, failure, or interruption) occurs, the server sends a message to the client, which can opt to handle the message as appropriate.
- Function Evaluations
The Function client contains three versions of the evaluation method (eval
in Java;Eval
in C#). - Expression Evaluations
The Expression client also contains three current versions and four deprecated versions of the evaluation method (eval
in Java;Eval
in C#). - Pass in a Data Object
Notice the versions of the evaluation functions in both the Function and Expression clients that take as an argument anSplusDataRequest
object. This object is constructed from the Domain: it is a collection of C# or Java representations of R language objects (either TERR or open-source R) and/or an encapsulated data set (along with theResultSerializationType
property). - Use Authentication
When authentication is activated in the server, user credentials are authenticated against LDAP or a local database. (If you need configuration details, see your system administrator.) - Use Notifications
When the client instance is first instantiated (using theClientFactory.getserviceClient()
methods, where service is the type of service), a listening port is opened on the client to receive messages from Spotfire Statistics Services. When any change to the job status (such as job completion, failure, or interruption) occurs, the server sends a message to the client, which can opt to handle the message as appropriate.
Parent topic: Java, C# and URL APIs
Related information