The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Protocols

[83]

In addition to java API, the GEMOC Studio implements several web protocols.

For consistency, these protocols are defined using the same mechanism as LSP.

However, in order to be deployed internally in web browsers, instead of defining a socket or a port for each protocol, most implementation in the studio use websockets.

For convenience, an extensible websocket server is provided as an eclipse plugin (see Section 3.3, “Websocket server”). This allows deploying new endpoints in any eclipse based application or IDE, simply by adding a plugin extension.

Figure 61, “Protocols overview” shows an overview of the components that offer or use the protocols in the Eclipse Studio.

Protocols overview

Figure 61. Protocols overview


1. Protocol generators

[84]

GEMOC provides a basic generator in order to consistently create protocol implementations using LSP like approach.

Note

The current generator primarily targets websocket endpoints, but the generated classes are probabl generic enough to be used in other context.

2. JSONSchema2APIProtocolGenerator

JSONSchema2APIProtocolGenerator allows to generate several interfaces, implementations and documentation artifacts from a JSON schema representing the protocol message specification.

The current version of JSONSchema2APIProtocolGenerator is written in typescript.

Inputs : It uses a file generator_config.json to drive the generations and output directories. generator_config.json defines some parameters such as

  • protocolJSONSchemaPath : path to the JSON schema representing the protocol messages

Currently supported output:

  • plantuml : a graphical representation of the protocol
  • tsAPI : a typescript implementation of the API (Work In Progress, please contribute )
  • javaAPI : a java implementation of the API and the DTO (data transfert object), actually generated using xTend and using org.eclipse.lsp4j.jsonrpc library.
  • javaServer : a java interface of this protocol server
  • javaClient : a java interface of this protocol client

3. Engine Add-On Protocol

[85]

The goal of the Engine Add-On Protocol (EAOP) is to provide services similar to those offered by the java IEngineAddon API (cf. Figure 57, “Execution Framework API Interfaces overview”) but via websocket communication.

The figure Figure 62, “Engine Add-On Protocol overview” presents the Client and Server JSON RPC methods and the exchanged data.

EngineAddonProtocol

Figure 62. Engine Add-On Protocol overview


These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.