Example #1
0
    def __init__(self, dmd, instance, deviceProxyAttributes=()):
        """
        Constructs a new CollectorConfig instance.

        Subclasses must call this __init__ method but cannot do so with
        the super() since parents of this class are not new-style classes.

        @param dmd: the Zenoss DMD reference
        @param instance: the collector instance name
        @param deviceProxyAttributes: a tuple of names for device attributes
               that should be copied to every device proxy created
        @type deviceProxyAttributes: tuple
        """
        HubService.__init__(self, dmd, instance)

        self._deviceProxyAttributes = BASE_ATTRIBUTES + deviceProxyAttributes

        # Get the collector information (eg the 'localhost' collector)
        self._prefs = self.dmd.Monitors.Performance._getOb(self.instance)
        self.config = self._prefs # TODO fix me, needed for ThresholdMixin
        self.configFilter = None

        # When about to notify daemons about device changes, wait for a little
        # bit to batch up operations.
        self._procrastinator = Procrastinate(self._pushConfig)
        self._reconfigProcrastinator = Procrastinate(self._pushReconfigure)

        self._notifier = component.getUtility(IBatchNotifier)
Example #2
0
 def __init__(self, dmd, instance):
     HubService.__init__(self, dmd, instance)
     self.config = self.dmd.Monitors.Performance._getOb(self.instance)
     self.methodPriorityMap = {
         'sendEvent': 0.0,
         'sendEvents': 0.0,
     }
Example #3
0
    def __init__(self, dmd, instance, deviceProxyAttributes=()):
        """
        Constructs a new CollectorConfig instance.

        Subclasses must call this __init__ method but cannot do so with
        the super() since parents of this class are not new-style classes.

        @param dmd: the Zenoss DMD reference
        @param instance: the collector instance name
        @param deviceProxyAttributes: a tuple of names for device attributes
               that should be copied to every device proxy created
        @type deviceProxyAttributes: tuple
        """
        HubService.__init__(self, dmd, instance)

        self._deviceProxyAttributes = BASE_ATTRIBUTES + deviceProxyAttributes

        # Get the collector information (eg the 'localhost' collector)
        self._prefs = self.dmd.Monitors.Performance._getOb(self.instance)
        self.config = self._prefs # TODO fix me, needed for ThresholdMixin

        # When about to notify daemons about device changes, wait for a little
        # bit to batch up operations.
        self._procrastinator = Procrastinate(self._pushConfig)
        self._reconfigProcrastinator = Procrastinate(self._pushReconfigure)

        self._notifier = component.getUtility(IBatchNotifier)
Example #4
0
 def __init__(self, dmd, instance):
     HubService.__init__(self, dmd, instance)
     self.config = self.dmd.Monitors.Performance._getOb(self.instance)
     self.methodPriorityMap = {
         'sendEvent': 0.0,
         'sendEvents': 0.0,
         }
    def __init__(self, dmd, instance):
        """
        Create the service (Called by the hub)

        param dmd: root db node
        type instance: string
        param instance: Perf Monitor (Collector) name for this service
        """
        HubService.__init__(self, dmd, instance)
        self.log.debug('__init__():initializing AppEngineConfigService')
        self.config = self.dmd.Monitors.Performance._getOb(self.instance)
Example #6
0
 def __init__(self, dmd, instance):
     HubService.__init__(self, dmd, instance)
     self.config = self.dmd.Monitors.Performance._getOb(self.instance)
     self.procrastinator = Procrastinate(self.pushConfig)
     self._collectorMap = {}
     self._notifier = component.getUtility(IBatchNotifier)
 def __init__(self, dmd, instance):
     HubService.__init__(self, dmd, instance)
     self.config = self.dmd.Monitors.Performance._getOb(self.instance)
     self.procrastinator = Procrastinate(self.pushConfig)
     self._collectorMap = {}
     self._notifier = component.getUtility(IBatchNotifier)
Example #8
0
 def __init__(self, dmd, instance):
     HubService.__init__(self, dmd, instance)
     self.config = self.dmd.Monitors.Performance._getOb(self.instance)
Example #9
0
 def __init__(self, dmd, instance):
     HubService.__init__(self, dmd, instance)
     self.config = self.dmd.Monitors.Performance._getOb(self.instance)