Skip to content

Shared Methods

New

Description New creates a new instance of the Jarvis class.
Syntax j←Jarvis.New args
args One of:
  • '' - create a Jarvis instance with the default configuration
  • a character vector full path name to one of
    • a JSON or JSON5 file containing a JarvisConfig definition
    • a file containing a namespace or class script that will be loaded as CodeLocation
    • a folder containing files with code that will be loaded into j.CodeLocation
  • a reference to a namespace containing named Jarvis configuration settings
  • a vector of up to 4 positional settings
j A reference to the newly created Jarvis instance
Examples j←Jarvis.New 5000 #.MyEndpoints
Notes With the introduction of APL Array Notation in Dyalog v20.0, namespace arguments are made even more convenient, for example: j←Jarvis.New (Paradigm:'REST'⋄Port:12345)

Documentation

Description Documentation displays a link to the online Jarvis documentation.
Syntax Jarvis.Documentation
Example     Jarvis.Documentation
See https://dyalog.github.io/Jarvis

Version

Description Version returns the Jarvis version
Syntax (what version date)←Jarvis.Version
what is 'Jarvis'
version is the version number. For example: '1.20.5'
date is the date when this version was created. For example: '2025-08-17'

Run

Description Run creates a new instance of the Jarvis class using Jarvis.New and then calling the instance's Start method to start it.
Syntax (j (rc msg))←Jarvis.Run args
args One of:
  • '' - create a Jarvis instance with the default configuration
  • a character vector full path name to one of
    • a JSON or JSON5 file containing a JarvisConfig definition
    • a file containing a namespace or class script that will be loaded as CodeLocation
    • a folder containing files with code that will be loaded into j.CodeLocation
  • a reference to a namespace containing named Jarvis configuration settings
  • a vector of up to 4 positional settings
(j (rc msg) j is a reference to the newly created Jarvis instance created by New
rc and msg are the return code and message from Start
Examples (j (rc msg))←Jarvis.New 5000 #.MyEndpoints
Notes Run was primarily developed as a shortcut method for demos. The recommended technique is to call New, then make any additional configuration changes, and then call Start and check rc to verify that Jarvis was started.

MyAddr

Description MyAddr returns your machine's IP address on the local network.
Syntax addr←Jarvis.MyAddr
Examples     Jarvis.MyAddr
192.168.1.223