def __init__(self, brokerName, brokerHost, 
              critical=60,
              destclientname='consumerService',
              destination='/queue/monitor.test.consumerService',
              hostcert=None, 
              hostkey=None,
              logfile='/tmp/monitor.test.consumerService_dev',
              port=6163, 
              serverid='opsmonitor_dev',
              timeout=15,
              warning=30,
              **opts):
     MultipleProducerConsumer.__init__(self)
     
     self.brokerName = brokerName
     self.brokerHost = brokerHost
     self.critical = critical
     self.destclientname = destclientname
     self.destination = destination
     self.hostcert = hostcert
     self.hostkey = hostkey
     self.logfile = logfile
     self.port = port
     self.serverid = serverid
     self.timeout = timeout
     self.warning = warning
     
     self.avgDelay = None
     self.results = dict()
Example #2
0
 def __init__(self, brokerName, brokerHost, port=6163, destination='/queue/test.topic', hostcert=None, hostkey=None, timeout=15, messages=1):
     MultipleProducerConsumer.__init__(self)
     
     self.brokerName = brokerName
     self.brokerHost = brokerHost
     self.port = port
     self.destination = destination
     self.hostcert = hostcert
     self.hostkey = hostkey
     self.timeout = timeout
     self.messages = messages
 def __init__(self, mainBrokerName, mainBrokerHost, otherBrokers, port, destination='test.topic', hostcert=None, hostkey=None, messages=10, timeout=15):
     MultipleProducerConsumer.__init__(self)
     
     self.mainBrokerName = mainBrokerName
     self.mainBrokerHost = mainBrokerHost
     self.otherBrokers = otherBrokers
     self.port = port
     self.destination = destination
     self.hostcert = hostcert
     self.hostkey = hostkey
     self.messages = messages
     self.timeout = timeout
Example #4
0
    def __init__(self,
                 mainBrokerName,
                 mainBrokerHost,
                 otherBrokers,
                 port=6163,
                 destination='test.virtualtopic',
                 vtPrefix='Consumer',
                 hostcert=None,
                 hostkey=None,
                 messages=10,
                 timeout=15):
        MultipleProducerConsumer.__init__(self)

        self.mainBrokerName = mainBrokerName
        self.mainBrokerHost = mainBrokerHost
        self.otherBrokers = otherBrokers
        self.port = port
        self.destination = destination
        self.vtPrefix = vtPrefix
        self.hostcert = hostcert
        self.hostkey = hostkey
        self.messages = messages
        self.timeout = timeout
 def __init__(self, brokerName, brokerHost, 
              destclientname='consumerService',
              destination='/queue/monitor.test.consumerService',
              hostcert=None, 
              hostkey=None,
              logfile='/tmp/monitor.test.consumerService_dev',
              port=6163, 
              replyto='/queue/monitor.test.consumerService', 
              serverid='opsmonitor_dev',
              timeout=15,
              **opts):
     MultipleProducerConsumer.__init__(self)
     
     self.brokerName = brokerName
     self.brokerHost = brokerHost
     self.destclientname = destclientname
     self.destination = destination
     self.hostcert = hostcert
     self.hostkey = hostkey
     self.logfile = logfile
     self.port = port
     self.replyto = replyto
     self.serverid = serverid
     self.timeout = timeout