Esempio n. 1
0
 /**
  * Constructor
  *
  * @access public
  */
 public function LoopDetection()
 {
     // initialize super parameters
     $this->allocate = 204800;
     // 200 KB
     $this->type = 1337;
     parent::__construct();
     $this->ignore_messageid = false;
 }
 /**
  * Constructor
  *
  * @access public
  */
 public function PingTracking()
 {
     // initialize super parameters
     $this->allocate = 512000;
     // 500 KB
     $this->type = 2;
     parent::__construct();
     $this->initPing();
 }
Esempio n. 3
0
 /**
  * Constructor
  *
  * @access public
  */
 public function __construct()
 {
     // initialize super parameters
     $this->allocate = 1024000;
     // 1 MB
     $this->type = 1337;
     parent::__construct();
     $this->ignore_messageid = false;
 }
 /**
  * Initializes internal parameters
  *
  * @access public
  * @return boolean
  */
 public function InitializeParams()
 {
     if (!isset(self::$devid)) {
         self::$devid = Request::GetDeviceID();
         self::$pid = @getmypid();
         self::$user = Request::GetAuthUser();
         self::$start = time();
     }
     return true;
 }
Esempio n. 5
0
 /**
  * Constructor
  */
 public function SimpleMutex()
 {
     // initialize super parameters
     $this->allocate = 64;
     $this->type = 5173;
     parent::__construct();
     if (!$this->IsActive()) {
         ZLog::Write(LOGLEVEL_ERROR, "SimpleMutex not available as InterProcessData is not available. This is not recommended on duty systems and may result in corrupt user/device linking.");
     }
 }
 /**
  * Constructor
  *
  * @access public
  */
 public function TopCollector()
 {
     // initialize super parameters
     $this->allocate = 2097152;
     // 2 MB
     $this->type = 20;
     parent::__construct();
     // initialize params
     $this->InitializeParams();
     $this->preserved = array();
     // static vars come from the parent class
     $this->latest = array("pid" => self::$pid, "ip" => Request::GetRemoteAddr(), "user" => self::$user, "start" => self::$start, "devtype" => Request::GetDeviceType(), "devid" => self::$devid, "devagent" => Request::GetUserAgent(), "command" => Request::GetCommandCode(), "ended" => 0, "push" => false);
     $this->AnnounceInformation("initializing");
 }
Esempio n. 7
0
 /**
  * Reinitializes the IPC data.
  *
  * @access public
  * @return boolean
  */
 public function ReInitIPC()
 {
     $status = parent::ReInitIPC();
     if (!status) {
         $this->SetData(array(), self::TOPDATA);
     }
     return $status;
 }