Class PythonWsProcessService

All Implemented Interfaces:
GenericMultiTypeService, ParameterConfigurerProvider, Service, ServiceBase

public class PythonWsProcessService extends PythonAsyncProcessService
Generic WebSocket-based Python integration for asynchronous processing of multiple data types. Conventions:
  • Python is determined by PythonUtils.getPythonExecutable(). The default is "ServiceEnvironment.py" which must run for this integration with "--mode WS" and given port.
  • The Python program runs endless until stopped by this class.
  • An asynchronous Python program receives the data via command line input streams based on the input serializer and the symbolic type name.
Author:
Holger Eichelberger, SSE
  • Field Details

    • instancePort

      private int instancePort
    • averageResponseTime

      private long averageResponseTime
    • socket

    • networkPortKey

      private String networkPortKey
  • Constructor Details

    • PythonWsProcessService

      public PythonWsProcessService(String serviceId, InputStream ymlFile)
      Creates an instance from a service id and a YAML artifact.
      Parameters:
      serviceId - the service id
      ymlFile - the YML file containing the YAML artifact with the service descriptor
    • PythonWsProcessService

      public PythonWsProcessService(YamlService yaml)
      Creates an instance of the service.
      Parameters:
      yaml - the service description
  • Method Details