Пример #1
0
    def __init__(self, config, generator):
        """
        couch - instance of CouchServer class

        """
        BasePoller.__init__(self, config, generator)
        self.couch = None
        self._query = "/_stats" # couch query to retrieve statistics
        self._setUp()
Пример #2
0
    def __init__(self, config, generator):
        """
        couch - instance of CouchServer class

        """
        BasePoller.__init__(self, config, generator)
        self.couch = None
        self._query = "/_stats"  # couch query to retrieve statistics
        self._setUp()
Пример #3
0
    def __init__(self, config, generator, unitSelection = 3):
        """
        Size units selection:
        0 = Bytes, 1 = kiloBytes, , 2 = MegaBytes, 3 = GigaBytes

        """
        BasePoller.__init__(self, config, generator)
        # set size units
        self._unitSelection = unitSelection
        self._sizeUnitsAll = ("B", "kB", "MB", "GB")
        self._prefixBytesFactor = float(1024 ** self._unitSelection)
        self._currSizeUnit = self._sizeUnitsAll[self._unitSelection]
        self._myName = self.__class__.__name__
Пример #4
0
 def __init__(self, config, generator):
     BasePoller.__init__(self, config, generator)