protected function get_consumer_info() { return PGQ::get_consumer_info($this->log, $this->pg_src_con, $this->qname, $this->cname); }
/** * are we registered already? */ public static function is_registered($log, $pgcon, $qname, $cname) { $infos = PGQ::get_consumer_info($log, $pgcon, $qname, $cname); if ($infos !== False) { $log->debug("is_registered %s", $infos["queue_name"] == $qname && $infos["consumer_name"] == $cname ? "True" : "False"); return $infos["queue_name"] == $qname && $infos["consumer_name"] == $cname; } $log->warning("is_registered: count not get consumer infos."); return False; }