riaps.deplo.cpumon module

Resource monitors

Created on Nov 23, 2017

@author: riaps

class riaps.deplo.cpumon.CPUMonitorThread(parent, interval, usage)[source]

Bases: Thread

Thread for monitoring an actor and enforcing resource limits.

addClientDevice(appName, actorName, device)[source]
is_running()[source]
restart()[source]
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

setup(proc)[source]
stop()[source]
terminate()[source]