RESTService#

class eclypse.remote.service.rest.RESTService[source]#

Bases: Service

Base class for services in ECLYPSE remote applications.

Methods

__init__(service_id[, store_step])

Initializes a Service object.

step()

The service's main loop.

Attributes

mpi

Raises an error since the service is not an MPI service.

__init__(service_id, store_step=False)[source]#

Initializes a Service object.

Parameters:
  • service_id (str) – The name of the service.

  • store_step (bool, optional) – Whether to store the results of each step. Defaults to False.

async step()[source]#

The service’s main loop.

This method must be overridden by the user.

Returns:

The result of the step (if any).

Return type:

Any

property mpi#

Raises an error since the service is not an MPI service.

Raises:

RuntimeError – The service is not an MPI service.