Class AbstractRunnablesService

java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService
de.iip_ecosphere.platform.services.environment.AbstractRunnablesService
All Implemented Interfaces:
ParameterConfigurerProvider, Service, ServiceBase
Direct Known Subclasses:
AbstractProcessService, AbstractPythonProcessService

public abstract class AbstractRunnablesService extends AbstractService
A basic service that holds and stops runnables.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • AbstractRunnablesService

      public AbstractRunnablesService(String serviceId, InputStream ymlFile)
      Creates a service 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
    • AbstractRunnablesService

      public AbstractRunnablesService(YamlService yaml)
      Creates a service from YAML information.
      Parameters:
      yaml - the service information as read from YAML. By default, the Python executable is "ServiceEnvironment.py", which can be overridden by YamlProcess.getExecutable(). YamlProcess.getHomePath() is set to the home path where the executable was extracted to. Further, YamlProcess.getCmdArg() are taken over if given.
  • Method Details