riaps.run.part module

Part class Created on Oct 9, 2016

@author: run

class riaps.run.part.Part(parentActor, iTypeDef, iName, iTypeName, iArgs)[source]

Bases: object

Part class to encapsulate and manage component (and its thread)

class State(value)[source]

Bases: Enum

An enumeration.

Active = 3
Checkpointing = 4
Destroyed = 7
Inactive = 5
Initial = 1
Passive = 6
Ready = 2
Starting = 0
activate()[source]

Activate this part

buildAllPorts(portSpecs)[source]

Build all the ports of the part

buildPorts(res, key, ports, class_)[source]

Build the port objects of a kind of this part

checkpoint()[source]
deactivate()[source]
destroy()[source]
getActorID()[source]
getActorName()[source]
getAppName()[source]
getName()[source]
getTypeName()[source]
getUUID()[source]
handleCPULimit()[source]
handleMemLimit()[source]
handleNICStateChange(state)[source]
handleNetLimit()[source]
handlePeerStateChange(state, uuid)[source]
handlePortUpdate(portName, host, port)[source]

Handle a port update message coming from the discovery service

handleReinstate()[source]

Reinstate providers with a restarted disco

handleSpcLimit()[source]
load()[source]

Load the component implementation code

property mods
passivate()[source]
reactivate()[source]
sendControl(cmd, timeOut)[source]

Send a control message to component thread

setup(control_)[source]

Set up the part and change its state to Ready

setupPorts(ports)[source]

Set up all the ports of this part

terminate()[source]