slacm.actor module

Created on Sep 18, 2020

@author: esdev

class slacm.actor.Actor(parent, model)[source]

Bases: object

Class for application actors.

ERR = -1
FINALIZE = 2
OK = 0
SETUP = 1
START = 3
STOP = 4
finalize()[source]

Execute the ‘finalize’ operation for the actor

getApp()[source]
Return parent:

the parent app

get_comp_params(comp)[source]

Return the parameters of a component of this actor

get_disco()[source]
Return disco:

the discovery object

get_netInfo()[source]
Return netInfo:

the network interface information

is_local(message)[source]

Return True if the message is a ‘host-local’ for the actor.

join()[source]

Execute a ‘join’ operation on the child subprocess.

main()[source]

Main method of the subprocess. Creates the component instances, then launches a message handler for commands coming from the parent process.

run()[source]

Start running the actor (i.e. its components)

setup()[source]

Execute the ‘setup’ operation for the actor. Launches a subprocess that runs the components.

terminate()[source]

Terminate the actor (i.e. ist components)