CRecordGetVersion

The message is used to obtain a JSON text with various lists of the currently used software. It contains the kernel version, the list of used libraries, the list of available plugins, and the list of running plugins on the node.

The message is part of the API of the software update or the NY_LocalSoftwareUpdaterPlugIn plugin. The message belongs to a nanoservice in the SYSTEM namespace.

{
  "id": "a462af95-d126-4d19-bb45-0c77f9b30e5c",
  "name": "GET_VERSION",
  "isService": "true",
  "namespaces": "SYSTEM",
  "description": "Get a JSON with version information of libraries, plugins, and a list of loaded plugins of that node.",
  "slots": [
    {
      "key": "10",
      "name": "JSON",
      "direction": "ANSWER",
      "mandatory": "false",
      "type": "STRING",
      "description": "The version information."
    }
  ]
}

Arguments

None.

Return values

  • JSON : A JSON text with various lists of the currently used software. It contains the kernel version, the list of used libraries, the list of available plugins, and the list of running plugins on the node.
    The returned text is the same as the one used for the control file of the software update. It can be saved externally to restore the current software state via a software update if needed.

Example output

{
  "jar_list": {
    "nodes": [
      "moon"
    ],
    "reboot": true,
    "sessionToken": "",
    "libraries": [
      "annotations-24.1.0.jar(71KKNFM7T4JGHK85967FY2WQ64)",
      "h2-2.2.224.jar(ETENN1EHKK62P1K21Y683NPRZ0)",
      "hamcrest-core-1.1.jar(PSPGRJ71Y7E59N12FPTJA4P1BC)",
      "json-simple-1.1.1.jar(BK1C8Y6Q7T259D63D77ECV2VRW)",
      "junit-4.10.jar(D0W000DRG03EQS4VWM6EYPXJ78)",
      "miglayout-core-5.2.jar(AWJP3ENGQQFHM1WXD4WKG71RY4)",
      "miglayout-swing-5.2.jar(M34QAEFTSPMV3Z13FR0J7QJFEG)",
      "NY_Kernel-2.0.1.jar(ARC2G32GVEK0HJQET4VDN9YR84)",
      "NY_KernelStarter-2.0.1.jar(WF0NKRG3MAWZKYK777TS216A2R)",
      "NY_RecordDatabase-2.0.1.jar(VCYWM45ZRMF53BR6STT2C7ZBSC)",
      "NY_RecordParserJson-2.0.1.jar(CP2VSZ0FBKTJF104TR25XG2CSW)",
      "NY_RecordParserXml-2.0.1.jar(K8TJAG76VFK0SN7QB2NG6Q2EDW)"
    ],
    "plugins": [
      "NY_ApplicationAPI-2.0.1.jar(8WHT39RZBDMJ8TZCRAAV5DXA1W)",
      "NY_ApplicationFactoryCollectorAPI-2.0.1.jar(DC9KPWMN9D593NVSNBYYTM7NY8)",
      "NY_ApplicationFactoryCollectorPlugIn-2.0.1.jar(QXV5SH3CSTRBHV6A0456BDAK5R)",
      "NY_ApplicationNetworkPlugIn-2.0.1.jar(04DRQB28JD9CW6B3KJ7EDAGHVC)",
      "NY_ApplicationPlugIn-2.0.1.jar(9SQ1YQ0GBA025DRV3ASYDZDNXR)",
      "NY_AppMonitor-2.0.1.jar(5MHV918RRF8C12XAR79B0R1JY4)",
      ...
    ],
    "pluginsToLoad": [
      "NY_NetworkPlugIn",
      "NY_TcpPlugIn",
      "NY_MicroServicePlugIn",
      "NY_FileStorePlugIn",
      "NY_RemoteSkinModelPlugIn",
      "NY_RemoteSkinServerPlugIn",
      "NY_RemoteSkinWebProtocolPlugIn",
      "NY_WebSocketPlugIn",
      "NY_AppWebLogIn",
      "NY_LocalSoftwareUpdaterPlugIn"
    ]
  }
}

nyssr.net - Innovative Distributed System