Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     Log::$fileName = "languageStats.log";
     self::$sleepTime = 10;
     //60 * 60 * 24 * 30 * 1;
 }
 public function __construct()
 {
     parent::__construct();
     self::$last_job_file_name = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.lastjobprocessed_jpeer';
     self::$sleepTime = 60 * 60 * 24 * 30 * 1;
     Log::$fileName = "evaluatePEE.log";
 }
Esempio n. 3
0
 protected function __construct($configFile = null, $contextIndex = null)
 {
     $this->_configFile = $configFile;
     $this->_contextIndex = $contextIndex;
     parent::__construct();
     try {
         set_time_limit(0);
         $this->_queueHandler = new AMQHandler();
         $this->_updateConfiguration();
     } catch (Exception $ex) {
         self::_TimeStampMsg(str_pad(" " . $ex->getMessage() . " ", 60, "*", STR_PAD_BOTH));
         self::_TimeStampMsg(str_pad("EXIT", 60, " ", STR_PAD_BOTH));
         die;
     }
 }
Esempio n. 4
0
 protected function __construct($configFile = null)
 {
     parent::__construct();
     $this->_configFile = $configFile;
     Log::resetLogger();
     Log::$fileName = 'fastAnalysis.log';
     try {
         self::$queueHandler = new AMQHandler();
         self::$queueHandler->getRedisClient()->rpush(RedisKeys::FAST_PID_LIST, self::$tHandlerPID);
         $this->_updateConfiguration();
     } catch (Exception $ex) {
         self::_TimeStampMsg(str_pad(" " . $ex->getMessage() . " ", 60, "*", STR_PAD_BOTH));
         self::_TimeStampMsg(str_pad("EXIT", 60, " ", STR_PAD_BOTH));
         die;
     }
 }