Application Mode configuration
Application Mode starts applications when the Deephaven server starts. Each application loaded from a file has one *.app file that defines it. Some applications are discovered another way, such as through a ServiceLoader factory, and need no .app file.
The deephaven.application.dir property sets the application directory. When that property is unset, the server uses the app.d directory inside the Deephaven configuration directory, if it exists.
Each *.app file can have any name that ends in .app. The file must be a regular file. It must not be a symbolic link, and it must be in the application directory.
The server loads .app files in lexicographic order by file name. It skips any file that is not a readable .app regular file, without reporting an error. A readable .app file with an invalid definition, such as one with no type, stops the server from starting.
The following file defines a script application that runs helloWorld.groovy on a Groovy server. The Common properties and Script applications sections describe each property.
Common properties
| Parameter | Type | Description |
|---|---|---|
| type | String | Required. The kind of application. Valid values:
|
| enabled | Boolean | Optional. Whether the server loads this application.
|
Script applications
These properties apply when type is script.
| Parameter | Type | Description |
|---|---|---|
| scriptType | String | Required. The language of the script, |
| id | String | Required. A unique identifier for the application. API clients use it to look up the application's fields. A field is a named value that the application publishes for clients to fetch by name. No two enabled applications on a server can share an |
| name | String | Required. The application's display name. |
| file_<n> | String | Required. The path to one script to run, where Scripts run in ascending order of |
Class-based applications
This property applies when type is static or dynamic.
| Parameter | Type | Description |
|---|---|---|
| class | String | Required. The fully qualified name of a class that has a no-argument constructor. The class implements one of these interfaces:
|