2 Created on Mar 13, 2014 6 @link: http://hierarchical-cluster-engine.com/ 7 @copyright: Copyright © 2013-2014 IOIX Ukraine 8 @license: http://hierarchical-cluster-engine.com/license/ 29 self.
resources[resources.nodeId] = resources
48 for resourceItem
in self.
resources.values():
49 if resourceItem.state == EventObjects.Resource.STATE_ACTIVE:
58 if rCount == 0
or resourceItem.uDate < self.
resourcesAVG.uDate:
def addUpdateResources(self, resources)
Class ResourcesRecalculating, that contains recalcularing algorithm of resource data.
def __init__(self)
constructor initialise all class variable and recieve config as param
ResourcesAVG event object, represents summary of the EE resources utilization.
def recalculate(self)
recalculate method recalculate method calls outside and performs recalculate processing, now it's empty
def getResourcesAVG(self)