Example #1
0
 protected function _registerTasksInQueue(Queue $queue)
 {
     // We are just one task, so use simple add-me-to-the-queue mode
     // This will ensure we'll get a call for first and next scheduling
     // and also this will CREATE our Stat provider ID! which is the id
     // in the db queue.
     $this->flagEnabled(TRUE);
     $this->flagInternal(TRUE);
     $queue->queueTask($this);
 }
Example #2
0
 /**
  * Ensure all Helpers (log) are loaded into this object
  *
  */
 public function initHelpers()
 {
     parent::initHelpers();
     $this->logger->log(__METHOD__, NULL, WATCHDOG_DEBUG);
     // register in the Queue of StatsProviders
     $prodQueue = Queue::getInstance();
     $prodQueue->attach($this);
     // register our callback for Cacti Output
     $cactiObservable = Cacti::getInstance();
     $cactiObservable->attach($this);
     return $this;
 }