pyrolab.drivers.sample.SampleService

Contents

pyrolab.drivers.sample.SampleService#

class SampleService[source]#

Bases: Service

A sample service with a few stubbed functions.

Attributes:
attribute

Some hidden property.

Methods

add(*a)

Adds an unconstrained number of arguments together.

close()

Close the sample service.

delayed_echo(message, seconds)

Echoes back as the response the exact message as received with "SERVER RECEIVED: " prepended to the message after delaying by the specified number of seconds.

divide(num, den)

Divides the first argument by the second.

echo(message)

Echoes back as the response the exact message as received with "SERVER RECEIVED: " prepended to the message.

multiply(*vals)

Multiplies an unconstrained number of arguments together.

ping()

Returns a bool (True) to indicate that the Daemon is alive and can be communicated with.

pyrolab_version()

Return the version of PyroLab running the device.

set_behavior([instance_mode, instance_creator])

Sets the Pyro5 behavior for the class (modified in place).

subtract(a, b)

Subtracts the second parameter from the first.

whoami()

Returns the object id of the instance that handled the request.